Class RepositoryBase

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, InputLocationTracker
    Direct Known Subclasses:
    Repository

    public class RepositoryBase
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable, InputLocationTracker
    A repository contains the information needed for establishing connections with remote repository.
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RepositoryBase()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RepositoryBase clone()
      Method clone.
      boolean equals​(java.lang.Object other)
      Method equals.
      java.lang.String getId()
      Get a unique identifier for a repository.
      java.lang.String getLayout()
      Get the type of layout this repository uses for locating and storing artifacts - can be legacy or default.
      InputLocation getLocation​(java.lang.Object key)
      Gets the location of the specified field in the input source.
      java.lang.String getName()
      Get human readable name of the repository.
      java.lang.String getUrl()
      Get the url of the repository, in the form protocol://hostname/path.
      int hashCode()
      Method hashCode.
      void setId​(java.lang.String id)
      Set a unique identifier for a repository.
      void setLayout​(java.lang.String layout)
      Set the type of layout this repository uses for locating and storing artifacts - can be legacy or default.
      void setLocation​(java.lang.Object key, InputLocation location)
      Sets the location of the specified field.
      void setName​(java.lang.String name)
      Set human readable name of the repository.
      void setOtherLocation​(java.lang.Object key, InputLocation location)  
      void setUrl​(java.lang.String url)
      Set the url of the repository, in the form protocol://hostname/path.
      java.lang.String toString()
      Method toString.
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RepositoryBase

        public RepositoryBase()
    • Method Detail

      • clone

        public RepositoryBase clone()
        Method clone.
        Overrides:
        clone in class java.lang.Object
        Returns:
        RepositoryBase
      • equals

        public boolean equals​(java.lang.Object other)
        Method equals.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        other - a other object.
        Returns:
        boolean
      • getId

        public java.lang.String getId()
        Get a unique identifier for a repository. This is used to match the repository to configuration in the settings.xml file, for example. Furthermore, the identifier is used during POM inheritance and profile injection to detect repositories that should be merged.
        Returns:
        String
      • getLayout

        public java.lang.String getLayout()
        Get the type of layout this repository uses for locating and storing artifacts - can be legacy or default.
        Returns:
        String
      • getName

        public java.lang.String getName()
        Get human readable name of the repository.
        Returns:
        String
      • setOtherLocation

        public void setOtherLocation​(java.lang.Object key,
                                     InputLocation location)
        Parameters:
        key - a key object.
        location - a location object.
      • getUrl

        public java.lang.String getUrl()
        Get the url of the repository, in the form protocol://hostname/path.
        Returns:
        String
      • hashCode

        public int hashCode()
        Method hashCode.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        int
      • setId

        public void setId​(java.lang.String id)
        Set a unique identifier for a repository. This is used to match the repository to configuration in the settings.xml file, for example. Furthermore, the identifier is used during POM inheritance and profile injection to detect repositories that should be merged.
        Parameters:
        id - a id object.
      • setLayout

        public void setLayout​(java.lang.String layout)
        Set the type of layout this repository uses for locating and storing artifacts - can be legacy or default.
        Parameters:
        layout - a layout object.
      • setName

        public void setName​(java.lang.String name)
        Set human readable name of the repository.
        Parameters:
        name - a name object.
      • setUrl

        public void setUrl​(java.lang.String url)
        Set the url of the repository, in the form protocol://hostname/path.
        Parameters:
        url - a url object.
      • toString

        public java.lang.String toString()
        Method toString.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String