public class LocalDocumentReference extends EntityReference
TOSTRING_SERIALIZER
Constructor and Description |
---|
LocalDocumentReference(DocumentReference documentReference) |
LocalDocumentReference(EntityReference reference) |
LocalDocumentReference(EntityReference entityReference,
Locale locale) |
LocalDocumentReference(Iterable<String> spaceNames,
String pageName)
Create a new Document reference in the current wiki.
|
LocalDocumentReference(String pageName,
EntityReference spaceReference)
Create a new Document reference in the current wiki.
|
LocalDocumentReference(String spaceName,
String pageName)
Create a new Document reference in the current wiki.
|
LocalDocumentReference(String spaceName,
String pageName,
Locale locale)
Create a new Document reference in the current wiki.
|
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale() |
protected void |
setLocale(Locale locale)
Set the locale of this document reference.
|
appendParent, compareTo, equals, equals, equals, equalsNonRecursive, extractFirstReference, extractReference, getName, getParameter, getParent, getReversedReferenceChain, getRoot, getType, hashCode, hasParent, removeParent, replaceParent, setName, setParameter, setParameters, setParent, setType, size, toString
public LocalDocumentReference(String spaceName, String pageName)
spaceName
- the name of the space containing the document, must not be nullpageName
- the name of the document, must not be nullpublic LocalDocumentReference(Iterable<String> spaceNames, String pageName)
spaceNames
- an ordered list of the names of the spaces containing the document from root space to last one,
must not be nullpageName
- the name of the documentpublic LocalDocumentReference(String spaceName, String pageName, Locale locale)
spaceName
- the name of the space containing the document, must not be nullpageName
- the name of the document, must not be nulllocale
- the new locale for this referencepublic LocalDocumentReference(DocumentReference documentReference)
documentReference
- the full document referencepublic LocalDocumentReference(EntityReference reference)
reference
- the reference to clonepublic LocalDocumentReference(EntityReference entityReference, Locale locale)
entityReference
- the referencelocale
- the new locale for this reference, if null, locale is removedpublic LocalDocumentReference(String pageName, EntityReference spaceReference)
pageName
- the name of the document, must not be nullspaceReference
- the reference of the space, must not be nullCopyright © 2004–2016 XWiki. All rights reserved.