Class RepositoryImpl

  • All Implemented Interfaces:
    Repository

    public class RepositoryImpl
    extends java.lang.Object
    implements Repository
    • Field Detail

      • m_name

        private java.lang.String m_name
      • m_lastmodified

        private long m_lastmodified
      • m_uri

        private java.lang.String m_uri
      • m_resources

        private Resource[] m_resources
      • m_referrals

        private Referral[] m_referrals
      • m_resourceSet

        private java.util.Set m_resourceSet
    • Constructor Detail

      • RepositoryImpl

        public RepositoryImpl()
      • RepositoryImpl

        public RepositoryImpl​(Resource[] resources)
    • Method Detail

      • getURI

        public java.lang.String getURI()
        Description copied from interface: Repository
        Return the associated URL for the repository.
        Specified by:
        getURI in interface Repository
      • setURI

        protected void setURI​(java.lang.String uri)
      • addResource

        public void addResource​(Resource resource)
      • getReferrals

        public Referral[] getReferrals()
      • addReferral

        public void addReferral​(Referral referral)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getName

        public java.lang.String getName()
        Description copied from interface: Repository
        Return the name of this repository.
        Specified by:
        getName in interface Repository
        Returns:
        a non-null name
      • setName

        public void setName​(java.lang.String name)
      • getLastModified

        public long getLastModified()
        Description copied from interface: Repository
        Return the last modification date of this repository
        Specified by:
        getLastModified in interface Repository
        Returns:
        the last modification date
      • setLastModified

        public void setLastModified​(long lastModified)
      • setLastModified

        public void setLastModified​(java.lang.String s)
      • put

        protected java.lang.Object put​(java.lang.Object key,
                                       java.lang.Object value)
        Default setter method when setting parsed data from the XML file, which currently ignores everything.