| Modifier and Type | Field and Description |
|---|---|
int |
id
each constraint instance in a xmldog is assigned a unique id by
XPathParser. |
static int |
ID_COMMENT
used by
Text |
static int |
ID_ELEMENT
used by
ParentNode |
static int |
ID_NODE
There are few subclasses of Constraint which are sigletons.
|
static int |
ID_PARENTNODE
used by
Node |
static int |
ID_PI
used by
Comment |
static int |
ID_STAR
used by
Element |
static int |
ID_START
the ids of constraints which are non-singletons
start from ID_START(inclusive)
|
static int |
ID_TEXT
used by
Star |
| Modifier | Constructor and Description |
|---|---|
protected |
Constraint(int id) |
public static final int ID_NODE
public static final int ID_PARENTNODE
Nodepublic static final int ID_ELEMENT
ParentNodepublic static final int ID_STAR
Elementpublic static final int ID_TEXT
Starpublic static final int ID_COMMENT
Textpublic static final int ID_PI
Commentpublic static final int ID_START
public final int id
XPathParser.
this unique id is used as hascode for fast lookup.Copyright © 2021. All rights reserved.