public class DocumentVersionReference extends DocumentReference
TYPE_PROVIDER
TOSTRING_SERIALIZER
Constructor and Description |
---|
DocumentVersionReference(DocumentReference documentReference)
Cast a
DocumentReference to a DocumentVersionReference . |
DocumentVersionReference(DocumentReference documentReference,
Serializable version)
Creates a new reference to the specified document version.
|
Modifier and Type | Method and Description |
---|---|
Serializable |
getVersion() |
DocumentReference |
removeVersion() |
getLastSpaceReference, getLocalDocumentReference, getLocale, getLocaleDocumentReference, getSpaceReferences, getWikiReference, replaceParent, setLocale, setParent, setType, setWikiReference, toString
appendParent, compareTo, equals, equals, equals, equalsNonRecursive, extractFirstReference, extractReference, getName, getParameter, getParent, getReversedReferenceChain, getRoot, getType, hashCode, hasParent, removeParent, setName, setParameter, setParameters, size
public DocumentVersionReference(DocumentReference documentReference, Serializable version)
documentReference
- the document referenceversion
- the document versionpublic DocumentVersionReference(DocumentReference documentReference)
DocumentReference
to a DocumentVersionReference
.documentReference
- the document reference to castpublic Serializable getVersion()
public DocumentReference removeVersion()
DocumentReference
without the versionCopyright © 2004–2017 XWiki. All rights reserved.