org.xwiki.model.reference
Class LocalDocumentReference

java.lang.Object
  extended by org.xwiki.model.reference.EntityReference
      extended by 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

Field Summary
 
Fields inherited from class org.xwiki.model.reference.EntityReference
TOSTRING_SERIALIZER
 
Constructor Summary
LocalDocumentReference(DocumentReference documentReference)
           
LocalDocumentReference(EntityReference reference)
           
LocalDocumentReference(EntityReference entityReference, Locale locale)
           
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.
 
Method Summary
 Locale getLocale()
           
 WikiReference getWikiReference()
           
protected  void setLocale(Locale locale)
          Set the locale of this document reference.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 null
pageName - 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 null
pageName - the name of the document, must not be null
locale - 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 reference
locale - the new locale for this reference, if null, locale is removed
Since:
5.3RC1
Method Detail

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.