Package com.adobe.xfa

Class NodeSchema

java.lang.Object
com.adobe.xfa.NodeSchema

public final class NodeSchema extends 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 Details

    • 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 Details

    • 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.