public final class ElementId extends Object
Instances can be in one of 2 modes: either in fully defined mode, in which case information refers to location where value was defined (ie. we had id as a value of ID type attribute); or in undefined mode, in which case information refers to the first reference.
Note: this class is designed to be used with ElementIdMap
,
and as a result has some information specifically needed by the
map implementation (such as collision links).
Modifier and Type | Method and Description |
---|---|
PrefixedName |
getAttrName() |
PrefixedName |
getElemName() |
String |
getId() |
Location |
getLocation() |
boolean |
idMatches(char[] buf,
int start,
int len) |
boolean |
idMatches(String idStr) |
boolean |
isDefined() |
protected void |
linkUndefined(ElementId undefined) |
void |
markDefined(Location defLoc) |
ElementId |
nextColliding() |
ElementId |
nextUndefined() |
protected void |
setNextColliding(ElementId nextColl) |
String |
toString() |
protected void linkUndefined(ElementId undefined)
protected void setNextColliding(ElementId nextColl)
public String getId()
public Location getLocation()
public PrefixedName getElemName()
public PrefixedName getAttrName()
public boolean isDefined()
public boolean idMatches(char[] buf, int start, int len)
public boolean idMatches(String idStr)
public ElementId nextUndefined()
public ElementId nextColliding()
public void markDefined(Location defLoc)
Copyright © 2018 FasterXML. All rights reserved.