|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.model.reference.EntityReference
org.xwiki.model.reference.WikiReference
public class WikiReference
Represents a reference to a wiki (wiki name). This is the topmost reference and it doesn't have a parent reference.
| Constructor Summary | |
|---|---|
WikiReference(EntityReference reference)
Special constructor that transforms a generic entity reference into a WikiReference. |
|
WikiReference(String wikiName)
|
|
| Method Summary | |
|---|---|
protected void |
setParent(EntityReference parent)
Entity reference are immutable since 3.3M2, so this method is now protected. |
protected void |
setType(EntityType type)
Entity reference are immutable since 3.3M2, so this method is now protected. |
| Methods inherited from class org.xwiki.model.reference.EntityReference |
|---|
appendParent, compareTo, equals, extractReference, getName, getParameter, getParent, getReversedReferenceChain, getRoot, getType, hashCode, replaceParent, setName, setParameter, setParameters, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WikiReference(EntityReference reference)
WikiReference. It checks the
validity of the passed reference (ie correct type).
reference - the raw reference to build this wiki reference from
IllegalArgumentException - if the passed reference is not a valid wiki referencepublic WikiReference(String wikiName)
wikiName - the name of the wiki referenced| Method Detail |
|---|
protected void setType(EntityType type)
Overridden in order to verify the validity of the passed type.
setType in class EntityReferencetype - the type for this entity
IllegalArgumentException - if the passed type is not a wiki typeprotected void setParent(EntityReference parent)
Overridden in order to verify the validity of the passed parent.
setParent in class EntityReferenceparent - the parent for this entity, may be null for a root entity.
IllegalArgumentException - if the passed type is not a wiki type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||