|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.conclusion.Identifier
public final class Identifier
An identifier for a resource.
| Constructor Summary | |
|---|---|
Identifier()
|
|
Identifier(URI value)
|
|
Identifier(URI value,
IdentifierType knownType)
|
|
| Method Summary | |
|---|---|
String |
getJsonKey()
|
IdentifierType |
getKnownType()
The enum referencing a known identifier type. |
URI |
getType()
The type of the id. |
URI |
getValue()
The id value. |
boolean |
isHasUniqueKey()
|
void |
setJsonKey(String jsonKey)
|
void |
setKnownType(IdentifierType knownType)
Set the value of the id type from a known identifier type. |
void |
setType(URI type)
The type of the id. |
void |
setType(URI type,
boolean unique)
The type of the id. |
void |
setValue(URI value)
The id value. |
String |
toString()
Provide a simple toString() method. |
Identifier |
type(IdentifierType type)
Build up this identifier with a type. |
Identifier |
type(URI type)
Build up this identifier with a type. |
Identifier |
value(URI value)
Build up this identifier with a value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Identifier()
public Identifier(URI value)
public Identifier(URI value,
IdentifierType knownType)
| Method Detail |
|---|
public URI getValue()
public void setValue(URI value)
value - The id value.public Identifier value(URI value)
value - The value.
public URI getType()
public void setType(URI type)
type - The type of the id.public Identifier type(URI type)
type - The type.
public Identifier type(IdentifierType type)
type - The type.
public void setType(URI type,
boolean unique)
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.public IdentifierType getKnownType()
IdentifierType.OTHER if not known.public void setKnownType(IdentifierType knownType)
knownType - The known identifier type.public boolean isHasUniqueKey()
isHasUniqueKey in interface HasJsonKeypublic String getJsonKey()
getJsonKey in interface HasJsonKeypublic void setJsonKey(String jsonKey)
setJsonKey in interface HasJsonKeypublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||