org.xwiki.model.reference
Class WikiReference
java.lang.Object
org.xwiki.model.reference.EntityReference
org.xwiki.model.reference.WikiReference
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<EntityReference>
public class WikiReference
- extends EntityReference
Represents a reference to a wiki (wiki name). This is the topmost reference and it doesn't have a parent reference.
- Since:
- 2.2M1
- Version:
- $Id$
- See Also:
- Serialized Form
|
Method Summary |
void |
setType(EntityType type)
Overridden in order to verify the validity of the passed type |
| Methods inherited from class org.xwiki.model.reference.EntityReference |
clone, compareTo, equals, extractReference, getChild, getName, getParent, getRoot, getType, hashCode, setChild, setName, setParent, toString |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
WikiReference
public WikiReference(EntityReference reference)
- Special constructor that transforms a generic entity reference into a
WikiReference. It checks the
validity of the passed reference (ie correct type).
- Throws:
java.lang.IllegalArgumentException - if the passed reference is not a valid wiki reference
WikiReference
public WikiReference(java.lang.String wikiName)
setType
public void setType(EntityType type)
-
Overridden in order to verify the validity of the passed type
- Overrides:
setType in class EntityReference
- Throws:
java.lang.IllegalArgumentException - if the passed type is not a wiki type- See Also:
EntityReference.setType(org.xwiki.model.EntityType)
Copyright © 2004-2011 XWiki. All Rights Reserved.