|
Xerces 3.1.1 API: Class XMLContentSpec
org.apache.xerces.framework
|
Inner Class Summary | |
static interface |
XMLContentSpec.Provider
Provides a means for walking the structure built out of content spec "nodes". |
Field Summary | |
static int |
CONTENTSPECNODE_ANY
Represents any namespace specified namespace. |
static int |
CONTENTSPECNODE_ANY_LAX
prcessContent is 'lax' |
static int |
CONTENTSPECNODE_ANY_LOCAL
Represents any local element (XML Schema: ##local). |
static int |
CONTENTSPECNODE_ANY_LOCAL_LAX
|
static int |
CONTENTSPECNODE_ANY_LOCAL_SKIP
|
static int |
CONTENTSPECNODE_ANY_OTHER
Represents any other namespace (XML Schema: ##other). |
static int |
CONTENTSPECNODE_ANY_OTHER_LAX
|
static int |
CONTENTSPECNODE_ANY_OTHER_SKIP
|
static int |
CONTENTSPECNODE_ANY_SKIP
processContent is 'skip' |
static int |
CONTENTSPECNODE_CHOICE
Represents choice, '|'. |
static int |
CONTENTSPECNODE_LEAF
Name or #PCDATA. |
static int |
CONTENTSPECNODE_ONE_OR_MORE
Represents a one or more occurence count, '+'. |
static int |
CONTENTSPECNODE_SEQ
Represents sequence, ','. |
static int |
CONTENTSPECNODE_ZERO_OR_MORE
Represents a zero or more occurence count, '*'. |
static int |
CONTENTSPECNODE_ZERO_OR_ONE
Represents a zero or one occurence count, '?'. |
int |
otherValue
The "right hand" value of the content spec node. |
int |
type
The content spec node type. |
int |
value
The "left hand" value of the content spec node. |
Constructor Summary | |
XMLContentSpec()
Default constructor. |
|
XMLContentSpec(int type,
int value,
int otherValue)
Constructs a content spec with the specified values. |
|
XMLContentSpec(XMLContentSpec.Provider provider,
int contentSpecIndex)
Constructs a content spec from the values specified by the given content spec provider and identifier. |
|
XMLContentSpec(XMLContentSpec contentSpec)
Constructs a content spec from the values in the specified content spec. |
Method Summary | |
void |
clear()
Clears the values. |
boolean |
equals(java.lang.Object object)
Returns true if the two objects are equal. |
int |
hashCode()
Returns a hash code for this node. |
void |
setValues(int type,
int value,
int otherValue)
Sets the values. |
void |
setValues(XMLContentSpec.Provider provider,
int contentSpecIndex)
Sets the values from the values specified by the given content spec provider and identifier. |
void |
setValues(XMLContentSpec contentSpec)
Sets the values of the specified content spec. |
static java.lang.String |
toString(XMLContentSpec.Provider provider,
org.apache.xerces.utils.StringPool stringPool,
int contentSpecIndex)
Returns a string representation of the specified content spec identifier in the form of a DTD element content model. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int CONTENTSPECNODE_LEAF
public static final int CONTENTSPECNODE_ZERO_OR_ONE
public static final int CONTENTSPECNODE_ZERO_OR_MORE
public static final int CONTENTSPECNODE_ONE_OR_MORE
public static final int CONTENTSPECNODE_CHOICE
public static final int CONTENTSPECNODE_SEQ
public static final int CONTENTSPECNODE_ANY
otherValue
will contain the name of the namespace.
If otherValue
is -1
then the element
can be from any namespace.
Lists of valid namespaces are created from choice content spec nodes that have any content spec nodes as children.
public static final int CONTENTSPECNODE_ANY_OTHER
When the content spec node type is set to CONTENTSPECNODE_ANY_OTHER,
value
will contain the namespace that cannot
occur.
public static final int CONTENTSPECNODE_ANY_LOCAL
public static final int CONTENTSPECNODE_ANY_LAX
public static final int CONTENTSPECNODE_ANY_OTHER_LAX
public static final int CONTENTSPECNODE_ANY_LOCAL_LAX
public static final int CONTENTSPECNODE_ANY_SKIP
public static final int CONTENTSPECNODE_ANY_OTHER_SKIP
public static final int CONTENTSPECNODE_ANY_LOCAL_SKIP
public int type
CONTENTSPECNODE_LEAF
,
CONTENTSPECNODE_ZERO_OR_ONE
,
CONTENTSPECNODE_ZERO_OR_MORE
,
CONTENTSPECNODE_ONE_OR_MORE
,
CONTENTSPECNODE_CHOICE
,
CONTENTSPECNODE_SEQ
public int value
public int otherValue
Constructor Detail |
public XMLContentSpec()
public XMLContentSpec(int type, int value, int otherValue)
public XMLContentSpec(XMLContentSpec contentSpec)
public XMLContentSpec(XMLContentSpec.Provider provider, int contentSpecIndex)
Method Detail |
public void clear()
public void setValues(int type, int value, int otherValue)
public void setValues(XMLContentSpec contentSpec)
public void setValues(XMLContentSpec.Provider provider, int contentSpecIndex)
public static java.lang.String toString(XMLContentSpec.Provider provider, org.apache.xerces.utils.StringPool stringPool, int contentSpecIndex)
Note: This method is not namespace aware.
public int hashCode()
public boolean equals(java.lang.Object object)
|
Xerces 3.1.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |