|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.elements.SchemaBase
org.jibx.schema.elements.OpenAttrBase
org.jibx.schema.elements.AnnotatedBase
org.jibx.schema.elements.SchemaLocationBase
public abstract class SchemaLocationBase
Base class for elements referencing an external schema. Subclasses need to set the referenced schema during the prevalidation pass, so that the referenced schema will be included in the prevalidation processing.
Field Summary | |
---|---|
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. |
Fields inherited from interface org.jibx.schema.IComponent |
---|
SCHEMA_NAMESPACE |
Constructor Summary | |
---|---|
protected |
SchemaLocationBase(int type)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.jibx.schema.elements.AnnotatedBase |
---|
getAnnotation, getId, prevalidate, setAnnotation, setId |
Methods inherited from class org.jibx.schema.elements.OpenAttrBase |
---|
addExtraAttribute, clearExtraAttributes, compactChildren, detachChild, getChild, getChildCount, getChildIterator, getChildrenWritable, getExtraAttributes, preget, replaceChild, validateAttributes |
Methods inherited from class org.jibx.schema.elements.SchemaBase |
---|
addNamespaceDeclaration, bit, clearNamespaceDeclarations, getExtension, getNamespaceDeclarations, getParent, getSchema, isGlobal, name, preset, readNamespaces, setExtension, setParent, type, validate, validateAttributes, writeNamespaces |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final StringArray s_allowedAttributes
private java.lang.String m_location
private SchemaElement m_schema
Constructor Detail |
---|
protected SchemaLocationBase(int type)
type
- element typeMethod Detail |
---|
protected abstract java.lang.String getEffectiveNamespace()
protected SchemaElement readSchema(ValidationContext vctx, ISchemaResolver resolver) throws JiBXException, java.io.IOException
vctx
- validation contextresolver
-
JiBXException
java.io.IOException
public 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)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |