Package com.adobe.xfa
Class NodeSchema
- java.lang.Object
-
- com.adobe.xfa.NodeSchema
-
public final class NodeSchema extends java.lang.Object
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
Constructors Constructor Description NodeSchema(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeInfo
getAttributeInfo(int eTag)
Accessor returning the attribute informationChildRelnInfo
getChildRelnInfo(int eTag)
Accessor returning the child relationship informationSchemaPairs
getValidAttributes()
Accessor returning the set of valid attribute namesSchemaPairs
getValidChildren()
Accessor returning the set of valid children
-
-
-
Constructor Detail
-
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 Detail
-
getAttributeInfo
public AttributeInfo getAttributeInfo(int eTag)
Accessor returning the attribute information- Returns:
- a structure containing all the attribute information
-
getChildRelnInfo
public ChildRelnInfo getChildRelnInfo(int eTag)
Accessor returning the child relationship information- Returns:
- a structure containing all the child relationship information
-
getValidAttributes
public SchemaPairs getValidAttributes()
Accessor returning the set of valid attribute names- Returns:
- array of pointers to attribute names
-
getValidChildren
public SchemaPairs getValidChildren()
Accessor returning the set of valid children- Returns:
- a structure containing names and occurrence numbers of the valid children.
-
-