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
Modifier and TypeClassDescriptionstatic class
Builder class used to create Organization instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
Organization
(Organization.Builder builder) Constructor for this class, to be called from its subclasses andOrganization.Builder
. -
Method Summary
Modifier and TypeMethodDescriptionGets the input location that caused this model to be read.getLocation
(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of 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.
-
Constructor Details
-
Organization
Constructor for this class, to be called from its subclasses andOrganization.Builder
.- See Also:
-
-
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
-
getLocationKeys
Gets the keys of the locations of the input source. -
getLocationKeyStream
-
getImportedFrom
Gets the input location that caused this model to be read.- Specified by:
getImportedFrom
in interfaceInputLocationTracker
- Returns:
- InputLocation
-
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
-