Class RepositoryBase

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

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

    • getName Link icon

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

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

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

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

      @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 Link icon

      @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 Link icon

      @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 Link icon

      @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 Link icon

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

      @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 Link icon

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

      @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 Link icon

      @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 Link icon

      @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