Class ConfigurationSchema


  • public final class ConfigurationSchema
    extends Schema
    This class defines the valid node relationships in XFA Configuration. It also provides interfaces to determine the default values for attributes.
    • Constructor Detail

      • ConfigurationSchema

        public ConfigurationSchema()
        Default constructor.
    • Method Detail

      • defaultAttribute

        public Attribute defaultAttribute​(int eAttrTag,
                                          int eClassTag)
        Description copied from class: Schema
        Return a default attribute value
        Overrides:
        defaultAttribute in class Schema
        Parameters:
        eAttrTag - the name of the attribute. For efficiency, this name should come from XFANamespace
        eClassTag - Identify which schema element this attribute belongs to
        Returns:
        The default value for this attribute.
      • newAttribute

        public Attribute newAttribute​(int eAttrTag,
                                      String value,
                                      int eClassTag)
        Create a new attribute value.
        Overrides:
        newAttribute in class Schema
        Parameters:
        eAttrTag - The name of the attribute to create. For efficiency, this name should come from XFANamespace
        value - the value to assign to the new attribute
        eClassTag - Identify which schema element this attribute belongs to
        Returns:
        a new Attribute.
      • printConfigSchema

        public String printConfigSchema​(String sSchemaName,
                                        String sUri,
                                        boolean bWriteToStdout)
        Print out the default configuration schema.
        Parameters:
        sSchemaName - the schema to print.
        sUri - the file name.
        bWriteToStdout - do we write to stdout when sUri is null.
        Returns:
        returns the configuration schema.