Class Developer

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

Information about one of the committers on this project.
See Also:
  • Constructor Details

  • Method Details

    • getId

      public String getId()
      The unique ID of the developer in the SCM.
      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 Contributor
    • getLocationKeys

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

      @Nonnull public Developer.Builder with()
      Creates a new builder with this object as the basis.
      Overrides:
      with in class Contributor
      Returns:
      a Builder
    • withName

      @Nonnull public Developer withName(String name)
      Creates a new Developer instance using the specified name.
      Overrides:
      withName in class Contributor
      Parameters:
      name - the new String to use
      Returns:
      a Developer with the specified name
    • withEmail

      @Nonnull public Developer withEmail(String email)
      Creates a new Developer instance using the specified email.
      Overrides:
      withEmail in class Contributor
      Parameters:
      email - the new String to use
      Returns:
      a Developer with the specified email
    • withUrl

      @Nonnull public Developer withUrl(String url)
      Creates a new Developer instance using the specified url.
      Overrides:
      withUrl in class Contributor
      Parameters:
      url - the new String to use
      Returns:
      a Developer with the specified url
    • withOrganization

      @Nonnull public Developer withOrganization(String organization)
      Creates a new Developer instance using the specified organization.
      Overrides:
      withOrganization in class Contributor
      Parameters:
      organization - the new String to use
      Returns:
      a Developer with the specified organization
    • withOrganizationUrl

      @Nonnull public Developer withOrganizationUrl(String organizationUrl)
      Creates a new Developer instance using the specified organizationUrl.
      Overrides:
      withOrganizationUrl in class Contributor
      Parameters:
      organizationUrl - the new String to use
      Returns:
      a Developer with the specified organizationUrl
    • withRoles

      @Nonnull public Developer withRoles(Collection<String> roles)
      Creates a new Developer instance using the specified roles.
      Overrides:
      withRoles in class Contributor
      Parameters:
      roles - the new Collection<String> to use
      Returns:
      a Developer with the specified roles
    • withTimezone

      @Nonnull public Developer withTimezone(String timezone)
      Creates a new Developer instance using the specified timezone.
      Overrides:
      withTimezone in class Contributor
      Parameters:
      timezone - the new String to use
      Returns:
      a Developer with the specified timezone
    • withProperties

      @Nonnull public Developer withProperties(Map<String,String> properties)
      Creates a new Developer instance using the specified properties.
      Overrides:
      withProperties in class Contributor
      Parameters:
      properties - the new Map<String, String> to use
      Returns:
      a Developer with the specified properties
    • withId

      @Nonnull public Developer withId(String id)
      Creates a new Developer instance using the specified id.
      Parameters:
      id - the new String to use
      Returns:
      a Developer with the specified id
    • newInstance

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

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

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

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

      @Nonnull public static Developer.Builder newBuilder(Developer from, boolean forceCopy)
      Creates a new Developer builder instance using the specified object as a basis.
      Parameters:
      from - the Developer 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 Contributor
      See Also: