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 class
DocRef.Builder
Builder for constructing adocRef
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CLASS_DESC
-
Method Summary
Modifier and Type Method Description int
compareTo(DocRef o)
boolean
equals(java.lang.Object o)
java.lang.String
getDisplayValue()
java.lang.String
getName()
java.lang.String
getType()
java.lang.String
getUuid()
int
hashCode()
void
setName(java.lang.String name)
void
setType(java.lang.String type)
void
setUuid(java.lang.String uuid)
java.lang.String
toInfoString()
java.lang.String
toString()
-
-
-
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:
getDisplayValue
in interfaceHasDisplayValue
- Returns:
- The string label/description of this object.
-
compareTo
public int compareTo(DocRef o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<DocRef>
-
toInfoString
public java.lang.String toInfoString()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-