IComponentImportElement, SchemaLocationRequiredBasepublic abstract class SchemaLocationBase extends AnnotatedBase
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.String |
m_location |
'schemaLocation' attribute value.
|
private SchemaElement |
m_schema |
Referenced schema definition.
|
static StringArray |
s_allowedAttributes |
List of allowed attribute names.
|
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| Modifier | Constructor | Description |
|---|---|---|
protected |
SchemaLocationBase(int type) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract java.lang.String |
getEffectiveNamespace() |
Get the effective namespace to be applied to the referenced schema.
|
java.lang.String |
getLocation() |
Get 'schemaLocation' attribute value.
|
SchemaElement |
getReferencedSchema() |
Get referenced schema.
|
protected SchemaElement |
readSchema(ValidationContext vctx,
ISchemaResolver resolver) |
Load a schema from a resolver.
|
void |
setLocation(java.lang.String location) |
Set 'schemaLocation' attribute value.
|
protected void |
setReferencedSchema(SchemaElement schema) |
Set referenced schema.
|
getAnnotation, getId, prevalidate, setAnnotation, setIdclone, 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, preset, readNamespaces, setExtension, setParent, type, validate, validateAttributes, writeNamespacespublic static final StringArray s_allowedAttributes
private java.lang.String m_location
private SchemaElement m_schema
protected SchemaLocationBase(int type)
type - element typeprotected abstract java.lang.String getEffectiveNamespace()
protected SchemaElement readSchema(ValidationContext vctx, ISchemaResolver resolver) throws JiBXException, java.io.IOException
vctx - validation contextresolver - JiBXExceptionjava.io.IOExceptionpublic java.lang.String getLocation()
public void setLocation(java.lang.String location)
location - 'schemaLocation' valueprotected void setReferencedSchema(SchemaElement schema)
schema - schema elementpublic SchemaElement getReferencedSchema()
null if loading failed)