A DTO describing Tomato identifiers The TomatoId should be used as a general class describing identifiers like the OfferId and the CostEstimateId. It consists of a random part, a project conserved part and a version. Furthermore, the type is also part of the identifier. @since: 1.12.0
Modifiers | Name | Description |
---|---|---|
private java.lang.String |
projectConserved |
Conserved part of a project which is the name of the customer |
private java.lang.String |
random |
Random part of the identifier which should follow the Regex [a-x0-9]{4} |
private java.lang.String |
type |
The type of the identifier is defined by the implementing identifier |
private java.lang.String |
version |
Version of the identifier |
Constructor and description |
---|
TomatoId
(java.lang.String type, java.lang.String projectConservedPart, java.lang.String randomPart, java.lang.String version) Creates an identifier object with the |
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.String |
getIdentifier() Assembles the identifier from the class attributes. |
|
java.lang.String |
getProjectConservedPart() Returns the project conserved part of the identifier |
|
java.lang.String |
getRandomPart() Returns the random part of the identifier |
|
java.lang.String |
getType() Returns the type of the identifier @return |
|
java.lang.String |
getVersion() Returns the version of the identifier @return |
|
java.lang.String |
toString() Returns a String representation in the format: |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Conserved part of a project which is the name of the customer
Random part of the identifier which should follow the Regex [a-x0-9]{4}
The type of the identifier is defined by the implementing identifier
Version of the identifier
Creates an identifier object with the
type
- describing the type of the underlying identifierprojectConservedPart
- describes the project conserved part of the identifierrandomPart
- describes the random part of the identifierversion
- describes the version of the identifierAssembles the identifier from the class attributes. This method determines how the identifier looks like for all implementing classes to provide a uniform identifier format
Returns the project conserved part of the identifier
Returns the random part of the identifier
Returns the type of the identifier
Returns the version of the identifier
Returns a String representation in the format: [type]_[project conserved part]_[random id]_[version]