public abstract class SchemaLocationBase extends AnnotatedBase
| 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| Modifier | Constructor and Description |
|---|---|
protected |
SchemaLocationBase(int type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getEffectiveNamespace()
Get the effective namespace to be applied to the referenced schema.
|
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(String location)
Set 'schemaLocation' attribute value.
|
protected void |
setReferencedSchema(SchemaElement schema)
Set referenced schema.
|
getAnnotation, getId, prevalidate, setAnnotation, setIdaddExtraAttribute, 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
protected SchemaLocationBase(int type)
type - element typeprotected abstract String getEffectiveNamespace()
protected SchemaElement readSchema(ValidationContext vctx, ISchemaResolver resolver) throws JiBXException, IOException
vctx - validation contextresolver - JiBXExceptionIOExceptionpublic String getLocation()
public void setLocation(String location)
location - 'schemaLocation' valueprotected void setReferencedSchema(SchemaElement schema)
schema - schema elementpublic SchemaElement getReferencedSchema()
null if loading failed)Copyright © 2005-2013 jibx.org. All Rights Reserved.