org.xwiki.model.reference
Class LocalDocumentReference
java.lang.Object
org.xwiki.model.reference.EntityReference
org.xwiki.model.reference.LocalDocumentReference
- All Implemented Interfaces:
- Serializable, Cloneable, Comparable<EntityReference>
public class LocalDocumentReference
- extends EntityReference
Represents a reference to a document in the current wiki.
- Since:
- 5.0M1
- Version:
- $Id: 634cb8baffade1bcd15e13ab774e34bd0b611d41 $
- See Also:
- Serialized Form
| Methods inherited from class org.xwiki.model.reference.EntityReference |
appendParent, compareTo, equals, extractReference, getName, getParameter, getParent, getReversedReferenceChain, getRoot, getType, hashCode, removeParent, replaceParent, setName, setParameter, setParameters, setParent, setType, toString |
LocalDocumentReference
public LocalDocumentReference(String spaceName,
String pageName)
- Create a new Document reference in the current wiki.
- Parameters:
spaceName - the name of the space containing the document, must not be nullpageName - the name of the document, must not be null
LocalDocumentReference
public LocalDocumentReference(String spaceName,
String pageName,
Locale locale)
- Create a new Document reference in the current wiki.
- Parameters:
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 reference- Since:
- 5.3RC1
LocalDocumentReference
public LocalDocumentReference(DocumentReference documentReference)
- Parameters:
documentReference - the full document reference- Since:
- 5.2M2
LocalDocumentReference
public LocalDocumentReference(EntityReference reference)
- Parameters:
reference - the reference to clone- Since:
- 5.4RC1
LocalDocumentReference
public LocalDocumentReference(EntityReference entityReference,
Locale locale)
- Parameters:
entityReference - the referencelocale - the new locale for this reference, if null, locale is removed- Since:
- 5.3RC1
getWikiReference
public WikiReference getWikiReference()
- Returns:
- the wiki reference of this document reference
- Since:
- 5.3RC1
getLocale
public Locale getLocale()
- Returns:
- the locale of this document reference
- Since:
- 5.3RC1
setLocale
protected void setLocale(Locale locale)
- Set the locale of this document reference.
- Parameters:
locale - the locale of this document reference- Since:
- 5.3RC1
Copyright © 2004–2014 XWiki. All rights reserved.