public class WikiReference extends EntityReference
TOSTRING_SERIALIZER| Constructor and Description |
|---|
WikiReference(EntityReference reference)
Special constructor that transforms a generic entity reference into a
WikiReference. |
WikiReference(String wikiName) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
appendParent, compareTo, equals, extractReference, getName, getParameter, getParent, getReversedReferenceChain, getRoot, getType, hashCode, removeParent, replaceParent, setName, setParameter, setParameters, toStringpublic WikiReference(EntityReference reference)
WikiReference. It checks the
validity of the passed reference (ie correct type).reference - the raw reference to build this wiki reference fromIllegalArgumentException - if the passed reference is not a valid wiki referencepublic WikiReference(String wikiName)
wikiName - the name of the wiki referencedprotected void setType(EntityType type)
Overridden in order to verify the validity of the passed type.
setType in class EntityReferencetype - the type for this entityIllegalArgumentException - 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 typeCopyright © 2004–2014 XWiki. All rights reserved.