public class PartialEntityReference extends EntityReference
EntityReference
used to match another one.
The PartialEntityReference
can be partial or contain holes, for example if only the space regex reference is
provided it will tries to match only space part of the provided reference and consider other parts as matched.
It's of course possible to mix regex and "normal" EntityReference
member. In that case normal member
equals(Object)
method behave as usual and then call following member equals(Object)
etc.
TOSTRING_SERIALIZER
Constructor and Description |
---|
PartialEntityReference(String name,
EntityType type)
Create a new root EntityReference.
|
PartialEntityReference(String name,
EntityType type,
EntityReference parent)
Create a new EntityReference.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
protected boolean |
isNameEqual(String name) |
appendParent, compareTo, equals, equals, equalsNonRecursive, extractFirstReference, extractReference, getName, getParameter, getParameters, getParent, getReversedReferenceChain, getRoot, getType, hasParent, removeParent, replaceParent, replaceParent, setName, setParameter, setParameters, setParent, setType, size, toString
public PartialEntityReference(String name, EntityType type)
name
- name for the newly created entity reference, could not be null.type
- type for the newly created entity reference, could not be null.public PartialEntityReference(String name, EntityType type, EntityReference parent)
name
- name for the newly created entity reference, could not be null.type
- type for the newly created entity reference, could not be null.parent
- parent reference for the newly created entity reference, may be null.public int hashCode()
hashCode
in class EntityReference
public boolean equals(Object obj)
This equals method actually skip null elements.
equals
in class EntityReference
EntityReference.equals(java.lang.Object)
protected boolean isNameEqual(String name)
name
- the name to compare to this nameCopyright © 2004–2021 XWiki. All rights reserved.