public class WikiReference extends EntityReference
Modifier and Type | Field and Description |
---|---|
static Type |
TYPE_PROVIDER
The
Type for a Provider<WikiReference> . |
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, equals, equals, equalsNonRecursive, extractFirstReference, extractReference, getName, getParameter, getParameters, getParent, getReversedReferenceChain, getRoot, getType, hashCode, hasParent, removeParent, replaceParent, replaceParent, setName, setParameter, setParameters, size, toString
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 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 EntityReference
type
- 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 EntityReference
parent
- the parent for this entity, may be null for a root entity.IllegalArgumentException
- if the passed type is not a wiki typeCopyright © 2004–2021 XWiki. All rights reserved.