Package com.mooltiverse.oss.nyx.entities
Class Identifier
java.lang.Object
com.mooltiverse.oss.nyx.entities.Identifier
This object models a custom identifier to be used in version names. Each custom identifier is made of an optional
qualifier (which will appear as the leftmost identifier, if present), an optional value (which will appear as the
rightmost identifier, if present) and a position, indicating in which part of the version the identifier has to be
placed.
At least one among the qualifier or the value must be present. The qualifier and the value can be templates to be rendered.
At least one among the qualifier or the value must be present. The qualifier and the value can be templates to be rendered.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
This enum maps allowed values for a custom identifier position (where the identifier has to be placed in version names). -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Identifier
(String qualifier, String value, Identifier.Position position) Standard constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the identifier positionReturns the identifier qualifiergetValue()
Returns the identifier valuevoid
setPosition
(Identifier.Position position) Sets the identifier positionvoid
setQualifier
(String qualifier) Sets the identifier qualifiervoid
Sets the identifier value
-
Constructor Details
-
Identifier
public Identifier()Default constructor. -
Identifier
Standard constructor.- Parameters:
qualifier
- the identifier qualifiervalue
- the identifier valueposition
- the identifier position
-
-
Method Details
-
getQualifier
Returns the identifier qualifier- Returns:
- the identifier qualifier
-
setQualifier
Sets the identifier qualifier- Parameters:
qualifier
- the identifier qualifier
-
getValue
Returns the identifier value- Returns:
- the identifier value
-
setValue
Sets the identifier value- Parameters:
value
- the identifier value
-
getPosition
Returns the identifier position- Returns:
- the identifier position
-
setPosition
Sets the identifier position- Parameters:
position
- the identifier position
-