Package org.apache.maven.api.model
Class Site
java.lang.Object
org.apache.maven.api.model.Site
- All Implemented Interfaces:
Serializable
,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Site
extends Object
implements Serializable, InputLocationTracker
Contains the information needed for deploying websites.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create Site instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
Site
(Site.Builder builder) Constructor for this class, to be called from its subclasses andSite.Builder
. -
Method Summary
Modifier and TypeMethodDescriptionWhen children inherit from distribution management site url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
getId()
A unique identifier for a deployment location.Gets 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()
Human readable name of the deployment location.getUrl()
The url of the location where website is deployed, in the formprotocol://hostname/path
.boolean
static Site.Builder
Creates a newSite
builder instance.static Site.Builder
newBuilder
(boolean withDefaults) Creates a newSite
builder instance using default values or not.static Site.Builder
newBuilder
(Site from) Creates a newSite
builder instance using the specified object as a basis.static Site.Builder
newBuilder
(Site from, boolean forceCopy) Creates a newSite
builder instance using the specified object as a basis.static Site
Creates a newSite
instance.static Site
newInstance
(boolean withDefaults) Creates a newSite
instance using default values or not.with()
Creates a new builder with this object as the basis.withChildSiteUrlInheritAppendPath
(String childSiteUrlInheritAppendPath) Creates a newSite
instance using the specified childSiteUrlInheritAppendPath.Creates a newSite
instance using the specified id.Creates a newSite
instance using the specified name.Creates a newSite
instance using the specified url.
-
Constructor Details
-
Site
Constructor for this class, to be called from its subclasses andSite.Builder
.- See Also:
-
-
Method Details
-
getId
A unique identifier for a deployment location. This is used to match the site to configuration in thesettings.xml
file, for example.- Returns:
- a
String
-
getName
Human readable name of the deployment location.- Returns:
- a
String
-
getUrl
The url of the location where website is deployed, in the formprotocol://hostname/path
.Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if site's
child.site.url.inherit.append.path="false"
.- Returns:
- a
String
-
getChildSiteUrlInheritAppendPath
When children inherit from distribution management site url, append path or not? Note: While the type of this field isString
for technical reasons, the semantic type is actuallyBoolean
Default value is:
true
- Returns:
- a
String
- Since:
- Maven 3.6.1
-
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
-
withId
Creates a newSite
instance using the specified id.- Parameters:
id
- the newString
to use- Returns:
- a
Site
with the specified id
-
withName
Creates a newSite
instance using the specified name.- Parameters:
name
- the newString
to use- Returns:
- a
Site
with the specified name
-
withUrl
Creates a newSite
instance using the specified url.- Parameters:
url
- the newString
to use- Returns:
- a
Site
with the specified url
-
withChildSiteUrlInheritAppendPath
Creates a newSite
instance using the specified childSiteUrlInheritAppendPath.- Parameters:
childSiteUrlInheritAppendPath
- the newString
to use- Returns:
- a
Site
with the specified childSiteUrlInheritAppendPath
-
newInstance
Creates a newSite
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
Site
- See Also:
-
newInstance
Creates a newSite
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Site
-
newBuilder
Creates a newSite
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newSite
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 newSite
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theSite
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newSite
builder instance using the specified object as a basis.- Parameters:
from
- theSite
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
isChildSiteUrlInheritAppendPath
public boolean isChildSiteUrlInheritAppendPath()
-