Class Identifier

java.lang.Object
com.mooltiverse.oss.nyx.entities.Identifier

public class Identifier extends Object
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.
  • Constructor Details

    • Identifier

      public Identifier()
      Default constructor.
    • Identifier

      public Identifier(String qualifier, String value, Identifier.Position position)
      Standard constructor.
      Parameters:
      qualifier - the identifier qualifier
      value - the identifier value
      position - the identifier position
  • Method Details

    • getQualifier

      public String getQualifier()
      Returns the identifier qualifier
      Returns:
      the identifier qualifier
    • setQualifier

      public void setQualifier(String qualifier)
      Sets the identifier qualifier
      Parameters:
      qualifier - the identifier qualifier
    • getValue

      public String getValue()
      Returns the identifier value
      Returns:
      the identifier value
    • setValue

      public void setValue(String value)
      Sets the identifier value
      Parameters:
      value - the identifier value
    • getPosition

      public Identifier.Position getPosition()
      Returns the identifier position
      Returns:
      the identifier position
    • setPosition

      public void setPosition(Identifier.Position position)
      Sets the identifier position
      Parameters:
      position - the identifier position