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, getLocaleDocumentReference, getSpaceReferences, getWikiReference, replaceParent, replaceParent, setParent, setType, setWikiReference, toString, withoutLocale
getLocale, setLocale, setParameter
appendParent, compareTo, equals, equals, equals, equalsNonRecursive, extractFirstReference, extractReference, getName, getParameter, getParameters, getParent, getReversedReferenceChain, getRoot, getType, hashCode, hasParent, removeParent, setName, 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–2022 XWiki. All rights reserved.