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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Site instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSite(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 isStringfor technical reasons, the semantic type is actuallyBooleangetId()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.booleanstatic Site.BuilderCreates a newSitebuilder instance.static Site.BuildernewBuilder(boolean withDefaults) Creates a newSitebuilder instance using default values or not.static Site.BuildernewBuilder(Site from) Creates a newSitebuilder instance using the specified object as a basis.static Site.BuildernewBuilder(Site from, boolean forceCopy) Creates a newSitebuilder instance using the specified object as a basis.static SiteCreates a newSiteinstance.static SitenewInstance(boolean withDefaults) Creates a newSiteinstance using default values or not.with()Creates a new builder with this object as the basis.withChildSiteUrlInheritAppendPath(String childSiteUrlInheritAppendPath) Creates a newSiteinstance using the specified childSiteUrlInheritAppendPath.Creates a newSiteinstance using the specified id.Creates a newSiteinstance using the specified name.Creates a newSiteinstance 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.xmlfile, 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 isStringfor technical reasons, the semantic type is actuallyBooleanDefault 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:
getLocationin 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:
getImportedFromin interfaceInputLocationTracker- Returns:
- InputLocation
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withId
Creates a newSiteinstance using the specified id.- Parameters:
id- the newStringto use- Returns:
- a
Sitewith the specified id
-
withName
Creates a newSiteinstance using the specified name.- Parameters:
name- the newStringto use- Returns:
- a
Sitewith the specified name
-
withUrl
Creates a newSiteinstance using the specified url.- Parameters:
url- the newStringto use- Returns:
- a
Sitewith the specified url
-
withChildSiteUrlInheritAppendPath
Creates a newSiteinstance using the specified childSiteUrlInheritAppendPath.- Parameters:
childSiteUrlInheritAppendPath- the newStringto use- Returns:
- a
Sitewith the specified childSiteUrlInheritAppendPath
-
newInstance
Creates a newSiteinstance. Equivalent tonewInstance(true).- Returns:
- a new
Site - See Also:
-
newInstance
Creates a newSiteinstance 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 newSitebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newSitebuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newSitebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theSiteinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newSitebuilder instance using the specified object as a basis.- Parameters:
from- theSiteinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
isChildSiteUrlInheritAppendPath
public boolean isChildSiteUrlInheritAppendPath()
-