Package org.apache.maven.api.model
Class Organization
java.lang.Object
org.apache.maven.api.model.Organization
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Organization
extends Object
implements Serializable, InputLocationTracker
Specifies the organization that produces this project.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder class used to create Organization instances. -
Method Summary
Modifier and TypeMethodDescriptiongetLocation
(Object key) Gets the ___location of the specified field in the input source.getName()
The full name of the organization.getUrl()
The URL to the organization's home page.static Organization.Builder
Creates a newOrganization
builder instance.static Organization.Builder
newBuilder
(boolean withDefaults) Creates a newOrganization
builder instance using default values or not.static Organization.Builder
newBuilder
(Organization from) Creates a newOrganization
builder instance using the specified object as a basis.static Organization.Builder
newBuilder
(Organization from, boolean forceCopy) Creates a newOrganization
builder instance using the specified object as a basis.static Organization
Creates a newOrganization
instance.static Organization
newInstance
(boolean withDefaults) Creates a newOrganization
instance using default values or not.toString()
with()
Creates a new builder with this object as the basis.Creates a newOrganization
instance using the specified name.Creates a newOrganization
instance using the specified url.
-
Method Details
-
getName
The full name of the organization.- Returns:
- a
String
-
getUrl
The URL to the organization's home page.- Returns:
- a
String
-
getLocation
Gets the ___location of the specified field in the input source.- Specified by:
getLocation
in interfaceInputLocationTracker
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withName
Creates a newOrganization
instance using the specified name.- Parameters:
name
- the newString
to use- Returns:
- a
Organization
with the specified name
-
withUrl
Creates a newOrganization
instance using the specified url.- Parameters:
url
- the newString
to use- Returns:
- a
Organization
with the specified url
-
newInstance
Creates a newOrganization
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
Organization
- See Also:
-
newInstance
Creates a newOrganization
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Organization
-
newBuilder
Creates a newOrganization
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newOrganization
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newOrganization
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theOrganization
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newOrganization
builder instance using the specified object as a basis.- Parameters:
from
- theOrganization
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
toString
-