Class RepositoryBase

All Implemented Interfaces:
Serializable, InputLocationTracker
Direct Known Subclasses:
Repository

Repository contains the information needed for establishing connections with remote repository
See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Human readable name of the repository.
      Returns:
      a String
    • getUrl

      public String getUrl()
      The url of the repository.
      Returns:
      a String
    • getLayout

      public String getLayout()
      The type of layout this repository uses for locating and storing artifacts - can be "legacy" or "default".
      Returns:
      a String
    • getLocation

      public InputLocation getLocation(Object key)
      Gets the location of the specified field in the input source.
      Specified by:
      getLocation in interface InputLocationTracker
      Overrides:
      getLocation in class IdentifiableBase
    • getLocationKeys

      public Set<Object> getLocationKeys()
      Gets the keys of the locations of the input source.
      Overrides:
      getLocationKeys in class IdentifiableBase
    • with

      Creates a new builder with this object as the basis.
      Overrides:
      with in class IdentifiableBase
      Returns:
      a Builder
    • withId

      @Nonnull public RepositoryBase withId(String id)
      Creates a new RepositoryBase instance using the specified id.
      Overrides:
      withId in class IdentifiableBase
      Parameters:
      id - the new String to use
      Returns:
      a RepositoryBase with the specified id
    • withName

      @Nonnull public RepositoryBase withName(String name)
      Creates a new RepositoryBase instance using the specified name.
      Parameters:
      name - the new String to use
      Returns:
      a RepositoryBase with the specified name
    • withUrl

      @Nonnull public RepositoryBase withUrl(String url)
      Creates a new RepositoryBase instance using the specified url.
      Parameters:
      url - the new String to use
      Returns:
      a RepositoryBase with the specified url
    • withLayout

      @Nonnull public RepositoryBase withLayout(String layout)
      Creates a new RepositoryBase instance using the specified layout.
      Parameters:
      layout - the new String to use
      Returns:
      a RepositoryBase with the specified layout
    • newInstance

      @Nonnull public static RepositoryBase newInstance()
      Creates a new RepositoryBase instance. Equivalent to newInstance(true).
      Returns:
      a new RepositoryBase
      See Also:
    • newInstance

      @Nonnull public static RepositoryBase newInstance(boolean withDefaults)
      Creates a new RepositoryBase instance using default values or not. Equivalent to newBuilder(withDefaults).build().
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new RepositoryBase
    • newBuilder

      @Nonnull public static RepositoryBase.Builder newBuilder()
      Creates a new RepositoryBase builder instance. Equivalent to newBuilder(true).
      Returns:
      a new Builder
      See Also:
    • newBuilder

      @Nonnull public static RepositoryBase.Builder newBuilder(boolean withDefaults)
      Creates a new RepositoryBase builder instance using default values or not.
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static RepositoryBase.Builder newBuilder(RepositoryBase from)
      Creates a new RepositoryBase builder instance using the specified object as a basis. Equivalent to newBuilder(from, false).
      Parameters:
      from - the RepositoryBase instance to use as a basis
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static RepositoryBase.Builder newBuilder(RepositoryBase from, boolean forceCopy)
      Creates a new RepositoryBase builder instance using the specified object as a basis.
      Parameters:
      from - the RepositoryBase instance to use as a basis
      forceCopy - the boolean indicating if a copy should be forced
      Returns:
      a new Builder