public class SchemaElement extends OpenAttrBase
| Modifier and Type | Field and Description |
|---|---|
static StringArray |
s_allowedAttributes
List of allowed attribute names
|
ALL_TYPE, ANNOTATION_TYPE, ANY_TYPE, ANYATTRIBUTE_TYPE, APPINFO_TYPE, ATTRIBUTE_TYPE, ATTRIBUTEGROUP_TYPE, CHOICE_TYPE, COMPLEXCONTENT_TYPE, COMPLEXTYPE_TYPE, DOCUMENTATION_TYPE, ELEMENT_MASKS, ELEMENT_NAMES, ELEMENT_TYPE, ENUMERATION_TYPE, EXTENSION_TYPE, FIELD_TYPE, FRACTIONDIGITS_TYPE, GROUP_TYPE, IMPORT_TYPE, INCLUDE_TYPE, KEY_TYPE, KEYREF_TYPE, LENGTH_TYPE, LIST_TYPE, MAXEXCLUSIVE_TYPE, MAXINCLUSIVE_TYPE, MAXLENGTH_TYPE, MINEXCLUSIVE_TYPE, MININCLUSIVE_TYPE, MINLENGTH_TYPE, NOTATION_TYPE, PATTERN_TYPE, REDEFINE_TYPE, RESTRICTION_TYPE, SCHEMA_TYPE, SELECTOR_TYPE, SEQUENCE_TYPE, SIMPLECONTENT_TYPE, SIMPLETYPE_TYPE, TOTALDIGITS_TYPE, UNION_TYPE, UNIQUE_TYPE, WHITESPACE_TYPESCHEMA_NAMESPACE| Constructor and Description |
|---|
SchemaElement()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAttributeFormDefault()
Get 'attributeFormDefault' attribute type code.
|
String |
getAttributeFormDefaultText()
Get 'attributeFormDefault' attribute text.
|
AllEnumSet |
getBlock()
Get 'blockDefault' attribute.
|
String |
getEffectiveNamespace()
Get the effective namespace which applies to this schema.
|
int |
getElementFormDefault()
Get 'elementFormDefault' attribute type code.
|
String |
getElementFormDefaultText()
Get 'elementFormDefault' attribute text.
|
AllEnumSet |
getFinal()
Get 'finalDefault' attribute.
|
NameRegister |
getRegister()
Get register for named components of schema.
|
ISchemaResolver |
getResolver()
Get resolver.
|
FilteredSegmentList |
getSchemaChildren()
Get list of schema-related child elements.
|
String |
getTargetNamespace()
Get 'targetNamespace' attribute.
|
FilteredSegmentList |
getTopLevelChildren()
Get list of top-level definition child elements.
|
String |
getVersion()
Get 'version' attribute.
|
boolean |
isAttributeQualifiedDefault()
Check if attributes are qualified by default.
|
boolean |
isElementQualifiedDefault()
Check if elements are qualified by default.
|
protected void |
preset(IUnmarshallingContext ictx)
Pre-set method to be called by data binding while parsing element start tag.
|
void |
prevalidate(ValidationContext vctx)
Prevalidate component information.
|
void |
setAttributeFormDefault(int type)
Set 'attributeFormDefault' attribute type code.
|
void |
setEffectiveNamespace(String ens)
Set the effective namespace to be applied to this schema.
|
void |
setElementFormDefault(int type)
Set 'elementFormDefault' attribute type code.
|
void |
setResolver(ISchemaResolver resolver)
Set resolver.
|
void |
setTargetNamespace(String tns)
Set 'targetNamespace' attribute.
|
void |
setVersion(String version)
Set 'version' attribute.
|
void |
validate(ValidationContext vctx)
Validate component information.
|
addExtraAttribute, clearExtraAttributes, compactChildren, detachChild, getChild, getChildCount, getChildIterator, getChildrenWritable, getExtraAttributes, preget, replaceChild, validateAttributesaddNamespaceDeclaration, bit, clearNamespaceDeclarations, getExtension, getNamespaceDeclarations, getParent, getSchema, isGlobal, name, readNamespaces, setExtension, setParent, type, validateAttributes, writeNamespacespublic static final StringArray s_allowedAttributes
protected void preset(IUnmarshallingContext ictx) throws JiBXException
SchemaBasepreset in class SchemaBaseictx - unmarshalling contextJiBXException - on errorpublic FilteredSegmentList getSchemaChildren()
public FilteredSegmentList getTopLevelChildren()
public int getAttributeFormDefault()
public void setAttributeFormDefault(int type)
type - public String getAttributeFormDefaultText()
null if not set)public int getElementFormDefault()
public void setElementFormDefault(int type)
type - public String getElementFormDefaultText()
null if not set)public AllEnumSet getBlock()
public AllEnumSet getFinal()
public String getTargetNamespace()
getEffectiveNamespace() method should be used instead, since
that method returns the namespace which should be used for definitions
within this schema.null if none)public void setTargetNamespace(String tns)
tns - target namespace (null if none)public String getEffectiveNamespace()
null if none)public void setEffectiveNamespace(String ens)
ens - effective namespace (null if the same as 'targetNamespace' attribute)public String getVersion()
public void setVersion(String version)
version - public ISchemaResolver getResolver()
public void setResolver(ISchemaResolver resolver)
resolver - public NameRegister getRegister()
public boolean isElementQualifiedDefault()
true if qualified, false if notpublic boolean isAttributeQualifiedDefault()
true if qualified, false if notpublic void validate(ValidationContext vctx)
SchemaBaseSchemaBase.prevalidate(org.jibx.schema.validation.ValidationContext) method will always be called for every
component in the schema definition before this method is called for any component. This empty base class
implementation should be overridden by each subclass that requires validation handling.validate in interface IComponentvalidate in class SchemaBasevctx - validation contextpublic void prevalidate(ValidationContext vctx)
SchemaBaseprevalidate in interface IComponentprevalidate in class SchemaBasevctx - validation contextCopyright © 2005-2013 jibx.org. All Rights Reserved.