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 | Field and Description |
|---|---|
| private PrefixedName | mAttrName
Name of the attribute that contains this id value (often "id", but need not be) |
| private boolean | mDefined
Flag that indicates whether this Object presents a defined id value (value of an ID attribute) or just a reference to one. |
| private PrefixedName | mElemName
Name of element for which this id refers. |
| private final String | mIdValue
Actual id value |
| private Location | |
| private ElementId | mNextColl
Pointer to the next element within collision chain. |
| private ElementId |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public PrefixedName | |
| public PrefixedName | |
| public String | |
| public Location | |
| public boolean | |
| public boolean | |
| public boolean | |
| protected void | |
| public void | |
| public ElementId | |
| public ElementId | |
| protected void | |
| public String |
| mAttrName | back to summary |
|---|---|
| private PrefixedName mAttrName Name of the attribute that contains this id value (often "id", but need not be) | |
| mDefined | back to summary |
|---|---|
| private boolean mDefined Flag that indicates whether this Object presents a defined id value (value of an ID attribute) or just a reference to one. | |
| mElemName | back to summary |
|---|---|
| private PrefixedName mElemName Name of element for which this id refers. | |
| mIdValue | back to summary |
|---|---|
| private final String mIdValue Actual id value | |
| mLocation | back to summary |
|---|---|
| private Location mLocation Location of either definition (if | |
| mNextColl | back to summary |
|---|---|
| private ElementId mNextColl Pointer to the next element within collision chain. | |
| mNextUndefined | back to summary |
|---|---|
| private ElementId mNextUndefined | |
| ElementId | back to summary |
|---|---|
| pack-priv ElementId(String id, Location loc, boolean defined, PrefixedName elemName, PrefixedName attrName) | |
| getAttrName | back to summary |
|---|---|
| public PrefixedName getAttrName() | |
| getElemName | back to summary |
|---|---|
| public PrefixedName getElemName() | |
| getId | back to summary |
|---|---|
| public String getId() | |
| getLocation | back to summary |
|---|---|
| public Location getLocation() | |
| idMatches | back to summary |
|---|---|
| public boolean idMatches(char[] buf, int start, int len) | |
| idMatches | back to summary |
|---|---|
| public boolean idMatches(String idStr) | |
| isDefined | back to summary |
|---|---|
| public boolean isDefined() | |
| linkUndefined | back to summary |
|---|---|
| protected void linkUndefined(ElementId undefined) | |
| markDefined | back to summary |
|---|---|
| public void markDefined(Location defLoc) | |
| nextColliding | back to summary |
|---|---|
| public ElementId nextColliding() | |
| nextUndefined | back to summary |
|---|---|
| public ElementId nextUndefined() | |
| setNextColliding | back to summary |
|---|---|
| protected void setNextColliding(ElementId nextColl) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |