public abstract class Schema extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
XFAAVAILABILITY_ALL
Sum of all availability masks.
|
static int |
XFAAVAILABILITY_CORE |
static int |
XFAAVAILABILITY_DEPRECATED |
static int |
XFAAVAILABILITY_DYNAMIC |
static int |
XFAAVAILABILITY_PLUGIN |
static int |
XFAAVAILABILITY_XFADESIGNER |
static int |
XFAAVAILABILITY_XFAF |
static int |
XFAAVAILABILITY_XFASUBSET |
static int |
XFAVERSION_10
XFA version 1.0.
|
static int |
XFAVERSION_21
XFA version 2.1.
|
static int |
XFAVERSION_22
XFA version 2.2.
|
static int |
XFAVERSION_23
XFA version 2.3.
|
static int |
XFAVERSION_24
XFA version 2.4.
|
static int |
XFAVERSION_25
XFA version 2.5.
|
static int |
XFAVERSION_26
XFA version 2.6.
|
static int |
XFAVERSION_27
XFA version 2.7.
|
static int |
XFAVERSION_28
XFA version 2.8.
|
static int |
XFAVERSION_29
XFA version 2.9.
|
static int |
XFAVERSION_30
XFA version 3.0.
|
static int |
XFAVERSION_31
XFA version 3.1.
|
static int |
XFAVERSION_32
XFA version 3.1.
|
static int |
XFAVERSION_33
XFA version 3.3.
|
static int |
XFAVERSION_34
XFA version 3.4.
|
static int |
XFAVERSION_35
XFA version 3.5.
|
static int |
XFAVERSION_CONFIGURATIONHEAD
ConfigurationHead XFA version.
|
static int |
XFAVERSION_CONNECTIONSETHEAD
ConnectionSetHead XFA version.
|
static int |
XFAVERSION_HEAD
Head XFA version.
|
static int |
XFAVERSION_LOCALESETHEAD
LocaleSetHead XFA version.
|
static int |
XFAVERSION_OBS
Obsolete XFA version.
|
static int |
XFAVERSION_SOURCESETHEAD
SourceSetHead XFA version.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addForeignSchema(Schema schema) |
Attribute |
defaultAttribute(int attrName,
int eClassTag)
Return a default attribute value
|
String |
getAtom(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 XFA
|
int |
getAttributeTag(String aNS,
String aAttrName)
Find a schema tag given an atom representing an attribute name
|
int |
getElementTag(String aNS,
String aNodeName)
Find a schema tag given an atom representing an element name
|
Element |
getInstance(int eTag,
Model model,
Element parent,
Node prevSibling,
boolean bDoVersionCheck)
Create an instance of a node.
|
NodeSchema |
getNodeSchema(int eClassTag)
Get the schema for a node.
|
String |
getNS()
Get the namespace string for the model
|
Attribute |
newAttribute(int attrName,
String value,
int eClassTag)
Create a new attribute value
|
static NodeSchema |
nullSchema()
Return a default (null) schema.
|
void |
putForeignElement(int eParent,
int eChild,
ChildReln relation,
Schema foreignSchema,
int nVersionIntro,
int nAvailability,
int nVersionDep) |
public static final int XFAAVAILABILITY_ALL
public static final int XFAAVAILABILITY_CORE
public static final int XFAAVAILABILITY_DEPRECATED
public static final int XFAAVAILABILITY_DYNAMIC
public static final int XFAAVAILABILITY_PLUGIN
public static final int XFAAVAILABILITY_XFAF
public static final int XFAAVAILABILITY_XFASUBSET
public static final int XFAAVAILABILITY_XFADESIGNER
public static final int XFAVERSION_10
public static final int XFAVERSION_21
public static final int XFAVERSION_22
public static final int XFAVERSION_23
public static final int XFAVERSION_24
public static final int XFAVERSION_25
public static final int XFAVERSION_26
public static final int XFAVERSION_27
public static final int XFAVERSION_28
public static final int XFAVERSION_29
public static final int XFAVERSION_30
public static final int XFAVERSION_31
public static final int XFAVERSION_32
public static final int XFAVERSION_33
public static final int XFAVERSION_34
public static final int XFAVERSION_35
public static final int XFAVERSION_HEAD
public static final int XFAVERSION_LOCALESETHEAD
public static final int XFAVERSION_SOURCESETHEAD
public static final int XFAVERSION_CONNECTIONSETHEAD
public static final int XFAVERSION_CONFIGURATIONHEAD
public static final int XFAVERSION_OBS
public static final NodeSchema nullSchema()
public void addForeignSchema(Schema schema)
public Attribute defaultAttribute(int attrName, int eClassTag)
attrName - the name of the attribute. For efficiency, this name should
come from XFANamespaceeClassTag - Identify which schema element this attribute belongs topublic String getAtom(int classTag)
classTag - the class tag to look uppublic int getAttributeTag(String aNS, String aAttrName)
aNS - the namespace for this attribute. This String must be interned.aAttrName - the input attribute name to search for. This String must be interned.public int getElementTag(String aNS, String aNodeName)
aNS - the namespace for this elementaNodeName - the input element name to search forpublic final Element getInstance(int eTag, Model model, Element parent, Node prevSibling, boolean bDoVersionCheck)
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 efficientpublic final NodeSchema getNodeSchema(int eClassTag)
eClassTag - The name of the schema element to query. This method gets best
performance if the provided name is from XFANamespacepublic String getNS()
public Attribute newAttribute(int attrName, String value, int eClassTag)
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 toCopyright © 2010 - 2020 Adobe. All Rights Reserved