Package org.gedcomx.conclusion
Class Identifier
java.lang.Object
org.gedcomx.conclusion.Identifier
- All Implemented Interfaces:
HasJsonKey
An identifier for a resource.
- Author:
- Ryan Heaton
-
Constructor Summary
ConstructorsConstructorDescriptionIdentifier(URI value) Identifier(URI value, IdentifierType knownType) Identifier(Identifier copy) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe enum referencing a known identifier type.getType()The type of the id.getValue()The id value.inthashCode()booleanvoidsetJsonKey(String jsonKey) voidsetKnownType(IdentifierType knownType) Set the value of the id type from a known identifier type.voidThe type of the id.voidThe type of the id.voidThe id value.toString()Provide a simple toString() method.Build up this identifier with a type.type(IdentifierType type) Build up this identifier with a type.Build up this identifier with a value.
-
Constructor Details
-
Identifier
public Identifier() -
Identifier
-
Identifier
-
Identifier
-
-
Method Details
-
getValue
The id value.- Returns:
- The id value.
-
setValue
The id value.- Parameters:
value- The id value.
-
value
Build up this identifier with a value.- Parameters:
value- The value.- Returns:
- this.
-
getType
The type of the id.- Returns:
- The type of the id.
-
setType
The type of the id.- Parameters:
type- The type of the id.
-
type
Build up this identifier with a type.- Parameters:
type- The type.- Returns:
- this.
-
type
Build up this identifier with a type.- Parameters:
type- The type.- Returns:
- this.
-
setType
The type of the id.- Parameters:
type- The type of the id.unique- Whether the type of this identifier implies that the value is unique among all other identifiers of the same type.
-
getKnownType
The enum referencing a known identifier type.- Returns:
- The enum referencing a known identifier type, or
IdentifierType.OTHERif not known.
-
setKnownType
Set the value of the id type from a known identifier type.- Parameters:
knownType- The known identifier type.
-
isHasUniqueKey
public boolean isHasUniqueKey()- Specified by:
isHasUniqueKeyin interfaceHasJsonKey
-
getJsonKey
- Specified by:
getJsonKeyin interfaceHasJsonKey
-
setJsonKey
- Specified by:
setJsonKeyin interfaceHasJsonKey
-
toString
Provide a simple toString() method. -
equals
-
hashCode
public int hashCode()
-