Class DocumentReference
- java.lang.Object
-
- com.iknowbase.api.contentservices.v2.model.ObjectReference
-
- com.iknowbase.api.contentservices.v2.model.DocumentReference
-
- All Implemented Interfaces:
Serializable
public class DocumentReference extends ObjectReference implements Serializable
Java class for documentReference complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="documentReference"> <complexContent> <extension base="{http://www.iknowbase.com/ws/iknowbase-2}objectReference"> <sequence> <element name="version" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Integer
version
-
Fields inherited from class com.iknowbase.api.contentservices.v2.model.ObjectReference
externalKey, guid, id, label
-
-
Constructor Summary
Constructors Constructor Description DocumentReference()
Default no-arg constructorDocumentReference(DocumentReference other)
DocumentReference(ObjectReference other)
DocumentReference(Integer id)
DocumentReference(Integer id, Integer version)
DocumentReference(String externalKey)
DocumentReference(String externalKey, Integer version)
DocumentReference(String guid, Integer id, String externalKey, String label, Integer version)
Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getVersion()
Gets the value of the version property.void
setVersion(Integer value)
Sets the value of the version property.String
toString()
DocumentReference
withExternalKey(String value)
DocumentReference
withGuid(String value)
DocumentReference
withId(Integer value)
DocumentReference
withLabel(String value)
DocumentReference
withVersion(Integer value)
-
Methods inherited from class com.iknowbase.api.contentservices.v2.model.ObjectReference
getExternalKey, getGuid, getId, getLabel, setExternalKey, setGuid, setId, setLabel
-
-
-
-
Field Detail
-
version
protected Integer version
-
-
Constructor Detail
-
DocumentReference
public DocumentReference()
Default no-arg constructor
-
DocumentReference
public DocumentReference(String guid, Integer id, String externalKey, String label, Integer version)
Fully-initialising value constructor
-
DocumentReference
public DocumentReference(Integer id)
-
DocumentReference
public DocumentReference(String externalKey)
-
DocumentReference
public DocumentReference(DocumentReference other)
-
DocumentReference
public DocumentReference(ObjectReference other)
-
-
Method Detail
-
getVersion
public Integer getVersion()
Gets the value of the version property.- Returns:
- possible object is
Integer
-
setVersion
public void setVersion(Integer value)
Sets the value of the version property.- Parameters:
value
- allowed object isInteger
-
withVersion
public DocumentReference withVersion(Integer value)
-
withGuid
public DocumentReference withGuid(String value)
- Overrides:
withGuid
in classObjectReference
-
withId
public DocumentReference withId(Integer value)
- Overrides:
withId
in classObjectReference
-
withExternalKey
public DocumentReference withExternalKey(String value)
- Overrides:
withExternalKey
in classObjectReference
-
withLabel
public DocumentReference withLabel(String value)
- Overrides:
withLabel
in classObjectReference
-
toString
public String toString()
- Overrides:
toString
in classObjectReference
-
-