Package com.adobe.xfa

Class 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 Detail

      • NodeSchema

        public NodeSchema​(int nAttributeMin,
                          int nAttributeMax,
                          int nElementMin,
                          int nElementMax)
        Default Constructor.
        Parameters:
        nAttributeMin - - min attribute tag for this schema
        nAttributeMax - - max attribute tag for this schema
        nElementMin - - min element tag for this schema
        nElementMax - - 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 copy
        nAttributeMin - - min attribute tag for this schema
        nAttributeMax - - max attribute tag for this schema
        nElementMin - - min element tag for this schema
        nElementMax - - 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.