Package org.trustdeck.model
Class IdentifierItem
java.lang.Object
org.trustdeck.model.IdentifierItem
IdentifierItem object encapsulating the actual identifier and its type.
- Author:
- Armin Müller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanEnsure that the item's values are not null nor empty.booleanEnsure that the item's values are null or empty.Creates a readable string representation.validate()
-
Constructor Details
-
IdentifierItem
public IdentifierItem()
-
-
Method Details
-
toRepresentationString
Creates a readable string representation.- Returns:
- a string representation of the item's contents.
-
validate
-
isNullOrEmpty
public boolean isNullOrEmpty()Ensure that the item's values are null or empty.- Returns:
trueif any of the item's attributes are null or empty,falseotherwise
-
isNotNullNorEmpty
public boolean isNotNullNorEmpty()Ensure that the item's values are not null nor empty.- Returns:
trueif none of the item's attributes are null or empty,falseotherwise
-