Package com.adobe.xfa
Class NodeSchema
java.lang.Object
com.adobe.xfa.NodeSchema
This class describes the schema of a node: What child nodes it may (or may
not) have, as well as what attributes may be set.
-
Constructor Summary
ConstructorsConstructorDescriptionNodeSchema(int nAttributeMin, int nAttributeMax, int nElementMin, int nElementMax) Default Constructor.NodeSchema(NodeSchema other, int nAttributeMin, int nAttributeMax, int nElementMin, int nElementMax) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptiongetAttributeInfo(int eTag) Accessor returning the attribute informationgetChildRelnInfo(int eTag) Accessor returning the child relationship informationAccessor returning the set of valid attribute namesAccessor returning the set of valid children
-
Constructor Details
-
NodeSchema
public NodeSchema(int nAttributeMin, int nAttributeMax, int nElementMin, int nElementMax) Default Constructor.- Parameters:
nAttributeMin- - min attribute tag for this schemanAttributeMax- - max attribute tag for this schemanElementMin- - min element tag for this schemanElementMax- - max element tag for this schema
-
NodeSchema
public NodeSchema(NodeSchema other, int nAttributeMin, int nAttributeMax, int nElementMin, int nElementMax) Copy constructor- Parameters:
other- - the NodeSchema to copynAttributeMin- - min attribute tag for this schemanAttributeMax- - max attribute tag for this schemanElementMin- - min element tag for this schemanElementMax- - max element tag for this schema
-
-
Method Details
-
getAttributeInfo
Accessor returning the attribute information- Returns:
- a structure containing all the attribute information
-
getChildRelnInfo
Accessor returning the child relationship information- Returns:
- a structure containing all the child relationship information
-
getValidAttributes
Accessor returning the set of valid attribute names- Returns:
- array of pointers to attribute names
-
getValidChildren
Accessor returning the set of valid children- Returns:
- a structure containing names and occurrence numbers of the valid children.
-