Package org.apache.maven.api.model
Class CiManagement
java.lang.Object
org.apache.maven.api.model.CiManagement
- All Implemented Interfaces:
Serializable,InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class CiManagement
extends Object
implements Serializable, InputLocationTracker
The
<ciManagement> element contains information required to the
continuous integration system of the project.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create CiManagement instances. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCiManagement(CiManagement.Builder builder) Constructor for this class, to be called from its subclasses andCiManagement.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.Configuration for notifying developers/users when a build is unsuccessful, including user information and notification mode.The name of the continuous integration system, e.g.getUrl()URL for the continuous integration system used by the project if it has a web interface.static CiManagement.BuilderCreates a newCiManagementbuilder instance.static CiManagement.BuildernewBuilder(boolean withDefaults) Creates a newCiManagementbuilder instance using default values or not.static CiManagement.BuildernewBuilder(CiManagement from) Creates a newCiManagementbuilder instance using the specified object as a basis.static CiManagement.BuildernewBuilder(CiManagement from, boolean forceCopy) Creates a newCiManagementbuilder instance using the specified object as a basis.static CiManagementCreates a newCiManagementinstance.static CiManagementnewInstance(boolean withDefaults) Creates a newCiManagementinstance using default values or not.with()Creates a new builder with this object as the basis.withNotifiers(Collection<Notifier> notifiers) Creates a newCiManagementinstance using the specified notifiers.withSystem(String system) Creates a newCiManagementinstance using the specified system.Creates a newCiManagementinstance using the specified url.
-
Constructor Details
-
CiManagement
Constructor for this class, to be called from its subclasses andCiManagement.Builder.- See Also:
-
-
Method Details
-
getSystem
The name of the continuous integration system, e.g.continuum.- Returns:
- a
String
-
getUrl
URL for the continuous integration system used by the project if it has a web interface.- Returns:
- a
String
-
getNotifiers
Configuration for notifying developers/users when a build is unsuccessful, including user information and notification mode.- Returns:
- a
List<Notifier>
-
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
-
withSystem
Creates a newCiManagementinstance using the specified system.- Parameters:
system- the newStringto use- Returns:
- a
CiManagementwith the specified system
-
withUrl
Creates a newCiManagementinstance using the specified url.- Parameters:
url- the newStringto use- Returns:
- a
CiManagementwith the specified url
-
withNotifiers
Creates a newCiManagementinstance using the specified notifiers.- Parameters:
notifiers- the newCollection<Notifier>to use- Returns:
- a
CiManagementwith the specified notifiers
-
newInstance
Creates a newCiManagementinstance. Equivalent tonewInstance(true).- Returns:
- a new
CiManagement - See Also:
-
newInstance
Creates a newCiManagementinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
CiManagement
-
newBuilder
Creates a newCiManagementbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newCiManagementbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newCiManagementbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theCiManagementinstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newCiManagementbuilder instance using the specified object as a basis.- Parameters:
from- theCiManagementinstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-