Package org.apache.maven.api.settings
Class IdentifiableBase
java.lang.Object
org.apache.maven.api.settings.TrackableBase
org.apache.maven.api.settings.IdentifiableBase
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
- Direct Known Subclasses:
- Mirror,- Profile,- Proxy,- RepositoryBase,- Server
@Experimental
@Generated
@ThreadSafe
@Immutable
public class IdentifiableBase
extends TrackableBase
implements Serializable, InputLocationTracker
Base class for 
Mirror, Profile, Proxy and Server.- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create IdentifiableBase instances.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedIdentifiableBase(IdentifiableBase.Builder builder) Constructor for this class, to be called from its subclasses andIdentifiableBase.Builder.
- 
Method SummaryModifier and TypeMethodDescriptiongetId()Item identifier.getLocation(Object key) Gets the location of the specified field in the input source.Gets the keys of the locations of the input source.static IdentifiableBase.BuilderCreates a newIdentifiableBasebuilder instance.static IdentifiableBase.BuildernewBuilder(boolean withDefaults) Creates a newIdentifiableBasebuilder instance using default values or not.static IdentifiableBase.BuildernewBuilder(IdentifiableBase from) Creates a newIdentifiableBasebuilder instance using the specified object as a basis.static IdentifiableBase.BuildernewBuilder(IdentifiableBase from, boolean forceCopy) Creates a newIdentifiableBasebuilder instance using the specified object as a basis.static IdentifiableBaseCreates a newIdentifiableBaseinstance.static IdentifiableBasenewInstance(boolean withDefaults) Creates a newIdentifiableBaseinstance using default values or not.with()Creates a new builder with this object as the basis.Creates a newIdentifiableBaseinstance using the specified id.Methods inherited from class org.apache.maven.api.settings.TrackableBasegetImportedFrom, newBuilder, newBuilder
- 
Constructor Details- 
IdentifiableBaseConstructor for this class, to be called from its subclasses andIdentifiableBase.Builder.- See Also:
 
 
- 
- 
Method Details- 
getIdItem identifier.- Returns:
- a String
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
- Overrides:
- getLocationin class- TrackableBase
 
- 
getLocationKeysGets the keys of the locations of the input source.- Overrides:
- getLocationKeysin class- TrackableBase
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- TrackableBase
- Returns:
- a Builder
 
- 
withIdCreates a newIdentifiableBaseinstance using the specified id.- Parameters:
- id- the new- Stringto use
- Returns:
- a IdentifiableBasewith the specified id
 
- 
newInstanceCreates a newIdentifiableBaseinstance. Equivalent tonewInstance(true).- Returns:
- a new IdentifiableBase
- See Also:
 
- 
newInstanceCreates a newIdentifiableBaseinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new IdentifiableBase
 
- 
newBuilderCreates a newIdentifiableBasebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newIdentifiableBasebuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newIdentifiableBasebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- IdentifiableBaseinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilder@Nonnull public static IdentifiableBase.Builder newBuilder(IdentifiableBase from, boolean forceCopy) Creates a newIdentifiableBasebuilder instance using the specified object as a basis.- Parameters:
- from- the- IdentifiableBaseinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
 
-