IComponentpublic class SchemaElement extends OpenAttrBase
| Modifier and Type | Field | Description |
|---|---|---|
private int |
m_attributeFormDefaultType |
'attributeFormDefault' attribute value (
-1 if not set). |
private AllEnumSet |
m_blockDefault |
'blockDefault' attribute value.
|
private LazyList |
m_dependentSchemas |
Schemas which directly reference this schema.
|
private java.lang.String |
m_effectiveNamespace |
Effective namespace overriding the target namespace (
null if unused). |
private int |
m_elementFormDefaultType |
'elementFormDefault' attribute value (
-1 if not set). |
private AllEnumSet |
m_finalDefault |
'finalDefault' attribute value.
|
private java.lang.String |
m_id |
"id" attribute value.
|
private NameRegister |
m_register |
Register for names from this context.
|
private ISchemaResolver |
m_resolver |
Resolver for this schema.
|
private FilteredSegmentList |
m_schemaChildren |
Filtered list of schema reference child elements.
|
private java.lang.String |
m_targetNamespace |
'targetNamespace' attribute value.
|
private FilteredSegmentList |
m_topLevelChildren |
Filtered list of top-level definition child elements.
|
private java.lang.String |
m_version |
'version' attribute value.
|
static StringArray |
s_allowedAttributes |
List of allowed attribute names
|
private static Logger |
s_logger |
Logger for class.
|
private static long |
SCHEMA_REFERENCE_MASK |
Mask bits for schema reference child elements.
|
private static long |
TOP_LEVEL_DEFINITION_MASK |
Mask bits for top-level definition child elements.
|
SCHEMA_NAMESPACEALL_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_TYPE| Constructor | Description |
|---|---|
SchemaElement() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getAttributeFormDefault() |
Get 'attributeFormDefault' attribute type code.
|
java.lang.String |
getAttributeFormDefaultText() |
Get 'attributeFormDefault' attribute text.
|
AllEnumSet |
getBlock() |
Get 'blockDefault' attribute.
|
java.lang.String |
getEffectiveNamespace() |
Get the effective namespace which applies to this schema.
|
int |
getElementFormDefault() |
Get 'elementFormDefault' attribute type code.
|
java.lang.String |
getElementFormDefaultText() |
Get 'elementFormDefault' attribute text.
|
AllEnumSet |
getFinal() |
Get 'finalDefault' attribute.
|
private java.lang.String |
getName() |
Get the schema name for logging validation.
|
NameRegister |
getRegister() |
Get register for named components of schema.
|
ISchemaResolver |
getResolver() |
Get resolver.
|
FilteredSegmentList |
getSchemaChildren() |
Get list of schema-related child elements.
|
java.lang.String |
getTargetNamespace() |
Get 'targetNamespace' attribute.
|
FilteredSegmentList |
getTopLevelChildren() |
Get list of top-level definition child elements.
|
java.lang.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.
|
private void |
setAttributeFormDefaultText(java.lang.String text,
IUnmarshallingContext ictx) |
Set 'attributeFormDefault' attribute text.
|
void |
setEffectiveNamespace(java.lang.String ens) |
Set the effective namespace to be applied to this schema.
|
void |
setElementFormDefault(int type) |
Set 'elementFormDefault' attribute type code.
|
private void |
setElementFormDefaultText(java.lang.String text,
IUnmarshallingContext ictx) |
Set 'elementFormDefault' attribute text.
|
void |
setResolver(ISchemaResolver resolver) |
Set resolver.
|
void |
setTargetNamespace(java.lang.String tns) |
Set 'targetNamespace' attribute.
|
void |
setVersion(java.lang.String version) |
Set 'version' attribute.
|
void |
validate(ValidationContext vctx) |
Validate component information.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddExtraAttribute, clearExtraAttributes, compactChildren, detachChild, getChild, getChildCount, getChildIterator, getChildrenWritable, getExtraAttributes, preget, replaceChild, validateAttributesaddNamespaceDeclaration, bit, clearNamespaceDeclarations, getExtension, getNamespaceDeclarations, getParent, getSchema, isGlobal, name, readNamespaces, setExtension, setParent, type, validateAttributes, writeNamespacesprivate static final Logger s_logger
public static final StringArray s_allowedAttributes
private static final long SCHEMA_REFERENCE_MASK
private static final long TOP_LEVEL_DEFINITION_MASK
private final FilteredSegmentList m_schemaChildren
private final FilteredSegmentList m_topLevelChildren
private final LazyList m_dependentSchemas
private int m_attributeFormDefaultType
-1 if not set).private int m_elementFormDefaultType
-1 if not set).private AllEnumSet m_blockDefault
private AllEnumSet m_finalDefault
private java.lang.String m_id
private java.lang.String m_targetNamespace
private java.lang.String m_effectiveNamespace
null if unused).private java.lang.String m_version
private ISchemaResolver m_resolver
private NameRegister m_register
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 java.lang.String getAttributeFormDefaultText()
null if not set)private void setAttributeFormDefaultText(java.lang.String text,
IUnmarshallingContext ictx)
text - ictx - public int getElementFormDefault()
public void setElementFormDefault(int type)
type - public java.lang.String getElementFormDefaultText()
null if not set)private void setElementFormDefaultText(java.lang.String text,
IUnmarshallingContext ictx)
text - ictx - public AllEnumSet getBlock()
public AllEnumSet getFinal()
public java.lang.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(java.lang.String tns)
tns - target namespace (null if none)public java.lang.String getEffectiveNamespace()
null if none)public void setEffectiveNamespace(java.lang.String ens)
ens - effective namespace (null if the same as 'targetNamespace' attribute)public java.lang.String getVersion()
public void setVersion(java.lang.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 notprivate java.lang.String getName()
public 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 context