Class Organization

java.lang.Object
org.apache.maven.api.model.Organization
All Implemented Interfaces:
Serializable, InputLocationTracker

Specifies the organization that produces this project.
See Also:
  • Method Details

    • getName

      public String getName()
      The full name of the organization.
      Returns:
      a String
    • getUrl

      public String getUrl()
      The URL to the organization's home page.
      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
    • with

      Creates a new builder with this object as the basis.
      Returns:
      a Builder
    • withName

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

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

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

      @Nonnull public static Organization newInstance(boolean withDefaults)
      Creates a new Organization 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 Organization
    • newBuilder

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

      @Nonnull public static Organization.Builder newBuilder(boolean withDefaults)
      Creates a new Organization 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 Organization.Builder newBuilder(Organization from)
      Creates a new Organization builder instance using the specified object as a basis. Equivalent to newBuilder( from, false ).
      Parameters:
      from - the Organization instance to use as a basis
      Returns:
      a new Builder
    • newBuilder

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

      public String toString()
      Overrides:
      toString in class Object
      See Also: