Package com.adobe.xfa
Class Schema
java.lang.Object
com.adobe.xfa.Schema
- Direct Known Subclasses:
AppSchema,ConfigurationSchema,ConnectionSetSchema,DataSchema,LocaleSetSchema,SVGSchema,TemplateSchema
A base class for all model schema definitions. Elements that are common
to all models may be defined here.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSum of all availability masks.static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intXFA version 1.0.static final intXFA version 2.1.static final intXFA version 2.2.static final intXFA version 2.3.static final intXFA version 2.4.static final intXFA version 2.5.static final intXFA version 2.6.static final intXFA version 2.7.static final intXFA version 2.8.static final intXFA version 2.9.static final intXFA version 3.0.static final intXFA version 3.1.static final intXFA version 3.1.static final intXFA version 3.3.static final intXFA version 3.4.static final intXFA version 3.5.static final intConfigurationHead XFA version.static final intConnectionSetHead XFA version.static final intHead XFA version.static final intLocaleSetHead XFA version.static final intObsolete XFA version.static final intSourceSetHead XFA version. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForeignSchema(Schema schema) defaultAttribute(int attrName, int eClassTag) Return a default attribute valuegetAtom(int classTag) Get the Atom corresponding to this class tag Note that this is a schema-specific look-up! We no longer assume all class Tags are defined in XFAintgetAttributeTag(String aNS, String aAttrName) Find a schema tag given an atom representing an attribute nameintgetElementTag(String aNS, String aNodeName) Find a schema tag given an atom representing an element namefinal ElementgetInstance(int eTag, Model model, Element parent, Node prevSibling, boolean bDoVersionCheck) Create an instance of a node.final NodeSchemagetNodeSchema(int eClassTag) Get the schema for a node.getNS()Get the namespace string for the modelnewAttribute(int attrName, String value, int eClassTag) Create a new attribute valuestatic final NodeSchemaReturn a default (null) schema.voidputForeignElement(int eParent, int eChild, ChildReln relation, Schema foreignSchema, int nVersionIntro, int nAvailability, int nVersionDep)
-
Field Details
-
XFAAVAILABILITY_ALL
public static final int XFAAVAILABILITY_ALLSum of all availability masks. Same as Dynamic.- See Also:
-
XFAAVAILABILITY_CORE
public static final int XFAAVAILABILITY_CORE- See Also:
-
XFAAVAILABILITY_DEPRECATED
public static final int XFAAVAILABILITY_DEPRECATED- See Also:
-
XFAAVAILABILITY_DYNAMIC
public static final int XFAAVAILABILITY_DYNAMIC- See Also:
-
XFAAVAILABILITY_PLUGIN
public static final int XFAAVAILABILITY_PLUGIN- See Also:
-
XFAAVAILABILITY_XFAF
public static final int XFAAVAILABILITY_XFAF- See Also:
-
XFAAVAILABILITY_XFASUBSET
public static final int XFAAVAILABILITY_XFASUBSET- See Also:
-
XFAAVAILABILITY_XFADESIGNER
public static final int XFAAVAILABILITY_XFADESIGNER- See Also:
-
XFAVERSION_10
public static final int XFAVERSION_10XFA version 1.0.- See Also:
-
XFAVERSION_21
public static final int XFAVERSION_21XFA version 2.1.- See Also:
-
XFAVERSION_22
public static final int XFAVERSION_22XFA version 2.2.- See Also:
-
XFAVERSION_23
public static final int XFAVERSION_23XFA version 2.3.- See Also:
-
XFAVERSION_24
public static final int XFAVERSION_24XFA version 2.4.- See Also:
-
XFAVERSION_25
public static final int XFAVERSION_25XFA version 2.5.- See Also:
-
XFAVERSION_26
public static final int XFAVERSION_26XFA version 2.6.- See Also:
-
XFAVERSION_27
public static final int XFAVERSION_27XFA version 2.7.- See Also:
-
XFAVERSION_28
public static final int XFAVERSION_28XFA version 2.8.- See Also:
-
XFAVERSION_29
public static final int XFAVERSION_29XFA version 2.9.- See Also:
-
XFAVERSION_30
public static final int XFAVERSION_30XFA version 3.0.- See Also:
-
XFAVERSION_31
public static final int XFAVERSION_31XFA version 3.1.- See Also:
-
XFAVERSION_32
public static final int XFAVERSION_32XFA version 3.1.- See Also:
-
XFAVERSION_33
public static final int XFAVERSION_33XFA version 3.3.- See Also:
-
XFAVERSION_34
public static final int XFAVERSION_34XFA version 3.4.- See Also:
-
XFAVERSION_35
public static final int XFAVERSION_35XFA version 3.5.- See Also:
-
XFAVERSION_HEAD
public static final int XFAVERSION_HEADHead XFA version.- See Also:
-
XFAVERSION_LOCALESETHEAD
public static final int XFAVERSION_LOCALESETHEADLocaleSetHead XFA version.- See Also:
-
XFAVERSION_SOURCESETHEAD
public static final int XFAVERSION_SOURCESETHEADSourceSetHead XFA version.- See Also:
-
XFAVERSION_CONNECTIONSETHEAD
public static final int XFAVERSION_CONNECTIONSETHEADConnectionSetHead XFA version.- See Also:
-
XFAVERSION_CONFIGURATIONHEAD
public static final int XFAVERSION_CONFIGURATIONHEADConfigurationHead XFA version.- See Also:
-
XFAVERSION_OBS
public static final int XFAVERSION_OBSObsolete XFA version.- See Also:
-
-
Method Details
-
nullSchema
Return a default (null) schema. -
addForeignSchema
-
defaultAttribute
Return a default attribute value- Parameters:
attrName- 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.
-
getAtom
Get the Atom corresponding to this class tag Note that this is a schema-specific look-up! We no longer assume all class Tags are defined in XFA- Parameters:
classTag- the class tag to look up- Returns:
- the corresponding Atom
-
getAttributeTag
Find a schema tag given an atom representing an attribute name- Parameters:
aNS- the namespace for this attribute. This String must be interned.aAttrName- the input attribute name to search for. This String must be interned.- Returns:
- integer value of the tag. -1 if not found.
-
getElementTag
Find a schema tag given an atom representing an element name- Parameters:
aNS- the namespace for this elementaNodeName- the input element name to search for- Returns:
- tag number. -1 if not found.
-
getInstance
public final Element getInstance(int eTag, Model model, Element parent, Node prevSibling, boolean bDoVersionCheck) Create an instance of a node.- Parameters:
eTag- The class tag of the XFA node to create.model- the model where this node will belongparent- the parent node to add the new child toprevSibling- the previous sibling -- specifying this makes adding a child more efficient- Returns:
- a new node
-
getNodeSchema
Get the schema for a node.- Parameters:
eClassTag- The name of the schema element to query. This method gets best performance if the provided name is from XFANamespace- Returns:
- An NodeSchema.
-
getNS
Get the namespace string for the model- Returns:
- an interned namespace string
-
newAttribute
Create a new attribute value- Parameters:
attrName- 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.
-
putForeignElement
-