Package stroom.docref
Class DocRef
- java.lang.Object
-
- stroom.docref.DocRef
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DocRef>,HasDisplayValue
public class DocRef extends java.lang.Object implements java.lang.Comparable<DocRef>, HasDisplayValue, java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocRef.BuilderBuilder for constructing adocRef
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLASS_DESC
-
Method Summary
Modifier and Type Method Description intcompareTo(DocRef o)booleanequals(java.lang.Object o)java.lang.StringgetDisplayValue()java.lang.StringgetName()java.lang.StringgetType()java.lang.StringgetUuid()inthashCode()voidsetName(java.lang.String name)voidsetType(java.lang.String type)voidsetUuid(java.lang.String uuid)java.lang.StringtoInfoString()java.lang.StringtoString()
-
-
-
Field Detail
-
CLASS_DESC
public static final java.lang.String CLASS_DESC
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DocRef
public DocRef()
JAXB requires a no-arg constructor.
-
DocRef
public DocRef(java.lang.String type, java.lang.String uuid)- Parameters:
type- The type of the 'document' that this docRef points to an instance of. Supported types are defined outside of this documentation.uuid- A UUID as generated byUUID.randomUUID()
-
DocRef
public DocRef(java.lang.String type, java.lang.String uuid, java.lang.String name)- Parameters:
type- The type of the 'document' that this docRef points to an instance of. Supported types are defined outside of this documentation.uuid- A UUID as generated byUUID.randomUUID()name- The name of the 'document' being referenced
-
-
Method Detail
-
getType
public java.lang.String getType()
- Returns:
- The type of the 'document' that this docRef points to an instance of. Supported types are defined outside of this documentation.
-
setType
public void setType(java.lang.String type)
-
getUuid
public java.lang.String getUuid()
- Returns:
- A UUID as generated by
UUID.randomUUID()
-
setUuid
public void setUuid(java.lang.String uuid)
-
getName
public java.lang.String getName()
- Returns:
- The name of the 'document' being referenced
-
setName
public void setName(java.lang.String name)
-
getDisplayValue
public java.lang.String getDisplayValue()
- Specified by:
getDisplayValuein interfaceHasDisplayValue- Returns:
- The string label/description of this object.
-
compareTo
public int compareTo(DocRef o)
- Specified by:
compareToin interfacejava.lang.Comparable<DocRef>
-
toInfoString
public java.lang.String toInfoString()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-