|
||||||||||
| 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 | |
|---|---|
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 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. |
| 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
| Constructor Detail |
|---|
protected SchemaLocationBase(int type)
type - element type| Method Detail |
|---|
protected abstract String getEffectiveNamespace()
protected SchemaElement readSchema(ValidationContext vctx,
ISchemaResolver resolver)
throws JiBXException,
IOException
vctx - validation contextresolver -
JiBXException
IOExceptionpublic String getLocation()
public void setLocation(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 | |||||||||