public class LocalDocumentReference extends AbstractLocalizedEntityReference
LOCALETOSTRING_SERIALIZER| Constructor and Description |
|---|
LocalDocumentReference(DocumentReference documentReference) |
LocalDocumentReference(EntityReference reference) |
LocalDocumentReference(EntityReference reference,
EntityReference parent)
Clone an LocalDocumentReference, but use the specified parent for its new parent.
|
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 |
|---|---|
LocalDocumentReference |
replaceParent(EntityReference newParent)
Return a clone of this reference, but with its parent replaced by the passed one.
|
String |
toString() |
getLocale, setLocale, setParameterappendParent, compareTo, equals, equals, equals, equalsNonRecursive, extractFirstReference, extractReference, getName, getParameter, getParameters, getParent, getReversedReferenceChain, getRoot, getType, hashCode, hasParent, removeParent, replaceParent, setName, setParameters, setParent, setType, sizepublic 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 nullpublic LocalDocumentReference(EntityReference reference, EntityReference parent)
reference - the reference to cloneparent - the new parent to usepublic LocalDocumentReference replaceParent(EntityReference newParent)
EntityReferencereplaceParent in class EntityReferencenewParent - the new parent that will replace the parentpublic String toString()
toString in class EntityReferenceCopyright © 2004–2022 XWiki. All rights reserved.