Package com.adobe.xfa.configuration
Class ConfigurationSchema
- java.lang.Object
-
- com.adobe.xfa.Schema
-
- com.adobe.xfa.configuration.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.
-
-
Field Summary
-
Fields inherited from class com.adobe.xfa.Schema
XFAAVAILABILITY_ALL, XFAAVAILABILITY_CORE, XFAAVAILABILITY_DEPRECATED, XFAAVAILABILITY_DYNAMIC, XFAAVAILABILITY_PLUGIN, XFAAVAILABILITY_XFADESIGNER, XFAAVAILABILITY_XFAF, XFAAVAILABILITY_XFASUBSET, XFAVERSION_10, XFAVERSION_21, XFAVERSION_22, XFAVERSION_23, XFAVERSION_24, XFAVERSION_25, XFAVERSION_26, XFAVERSION_27, XFAVERSION_28, XFAVERSION_29, XFAVERSION_30, XFAVERSION_31, XFAVERSION_32, XFAVERSION_33, XFAVERSION_34, XFAVERSION_35, XFAVERSION_CONFIGURATIONHEAD, XFAVERSION_CONNECTIONSETHEAD, XFAVERSION_HEAD, XFAVERSION_LOCALESETHEAD, XFAVERSION_OBS, XFAVERSION_SOURCESETHEAD
-
-
Constructor Summary
Constructors Constructor Description ConfigurationSchema()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attribute
defaultAttribute(int eAttrTag, int eClassTag)
Return a default attribute valueAttribute
newAttribute(int eAttrTag, java.lang.String value, int eClassTag)
Create a new attribute value.java.lang.String
printConfigSchema(java.lang.String sSchemaName, java.lang.String sUri, boolean bWriteToStdout)
Print out the default configuration schema.-
Methods inherited from class com.adobe.xfa.Schema
addForeignSchema, getAtom, getAttributeTag, getElementTag, getInstance, getNodeSchema, getNS, nullSchema, putForeignElement
-
-
-
-
Method Detail
-
defaultAttribute
public Attribute defaultAttribute(int eAttrTag, int eClassTag)
Description copied from class:Schema
Return a default attribute value- Overrides:
defaultAttribute
in classSchema
- Parameters:
eAttrTag
- the name of the attribute. For efficiency, this name should come from XFANamespaceeClassTag
- Identify which schema element this attribute belongs to- Returns:
- The default value for this attribute.
-
newAttribute
public Attribute newAttribute(int eAttrTag, java.lang.String value, int eClassTag)
Create a new attribute value.- Overrides:
newAttribute
in classSchema
- Parameters:
eAttrTag
- The name of the attribute to create. For efficiency, this name should come from XFANamespacevalue
- the value to assign to the new attributeeClassTag
- Identify which schema element this attribute belongs to- Returns:
- a new Attribute.
-
printConfigSchema
public java.lang.String printConfigSchema(java.lang.String sSchemaName, java.lang.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.
-
-