|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.inria.ns.reflex.processor.asl.GlobalSchema
public class GlobalSchema
A GlobalSchema holds all the schema instances of a given namespace URI.
A schema instance is looked up in the catalog if it is unknown of this global schema
and if the expected resource has not been found ;
the catalog to lookup is those of the processor instance used to build the global schema
(adding a catalog can be done with ProcessorInstance.addCatalogReference(String)).
In a way, a global schema contains several Schema bound to the same namespace URI,
that can be DTD instances,
Active Schema instances, W3C XML Schema instances, Relax NG instances, TREX instances, or whatever can be compiled to a schema.
MasterSchema| Constructor Summary | |
|---|---|
GlobalSchema(ProcessorInstance pi,
Schema schema)
Create a new global schema. |
|
GlobalSchema(ProcessorInstance pi,
String namespaceURI)
Create a new empty global schema. |
|
| Method Summary | |
|---|---|
AttributeDefinition |
getAttributeDefinition(Attr attribute)
Retrieve an attribute definition. |
AttributeDefinition |
getAttributeDefinition(QName name)
Retrieve an attribute definition. |
ElementDefinition |
getElementDefinition(Element element)
Retrieve an element definition. |
ElementDefinition |
getElementDefinition(ElementDefinition elementDefinition)
Retrieve the next element definition that has the same name of the element definition given. |
ElementDefinition |
getElementDefinition(QName name)
Retrieve an element definition. |
ElementDefinition |
getElementDefinition(String namespaceURI)
Return the fallback element definition. |
Identifiable |
getIdentifiable(QName id)
Retrieve an identifiable object. |
XFile |
getLocation()
This implementation is not localizable. |
String |
getTargetNamespaceURI()
Return the target namespace URI of this schema. |
Type |
getTypeDefinition(QName name)
Retrieve a type. |
Type |
getTypeDefinition(String namespaceURI)
Return the fallback type. |
Type |
getTypeDefinition(Type type)
Retrieve the next type that has the same name of the type given. |
boolean |
isLocalizable()
Indicates that this instance is not localizable. |
Schema |
next(Schema schema)
Lookup for the next schema instance. |
void |
setLocation(XFile location)
This implementation is not localizable. |
void |
storeSchemaInstance(Schema schema)
Stores a schema instance in this global schema. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GlobalSchema(ProcessorInstance pi,
String namespaceURI)
pi - The non-null processor instance that creates this global schema.namespaceURI - The namespaceURI of this global schema.
public GlobalSchema(ProcessorInstance pi,
Schema schema)
pi - The non-null processor instance that creates this global schema.schema - The first schema to store.
This global schema endorse the same namespace URI of the first schema.| Method Detail |
|---|
public void storeSchemaInstance(Schema schema)
schema - The schema to store. null is ignored.public String getTargetNamespaceURI()
getTargetNamespaceURI in interface SchemaSchema.getTargetNamespaceURI()public Type getTypeDefinition(Type type)
type - The non-null>/tt> type from which starting to search.
Anonymous type are ignored.
public Type getTypeDefinition(QName name)
getTypeDefinition in interface Schemaname - The name of the type to retrieve.
Schema.getTypeDefinition(org.inria.ns.reflex.xml.QName)public Type getTypeDefinition(String namespaceURI)
getTypeDefinition in interface SchemanamespaceURI - The namespace URI of this global schema.
Schema.getTypeDefinition(java.lang.String)public ElementDefinition getElementDefinition(ElementDefinition elementDefinition)
elementDefinition - The non-null>/tt> element definition from which starting to search.
public ElementDefinition getElementDefinition(QName name)
getElementDefinition in interface Schemaname - The name of the element definition to retrieve.
Schema.getElementDefinition(org.inria.ns.reflex.xml.QName)public ElementDefinition getElementDefinition(Element element)
getElementDefinition in interface Schemaname - The name of the element definition to retrieve.
Schema.getElementDefinition(org.w3c.dom.Element)public ElementDefinition getElementDefinition(String namespaceURI)
getElementDefinition in interface SchemanamespaceURI - The namespace URI of this global schema.
Schema.getElementDefinition(java.lang.String)public AttributeDefinition getAttributeDefinition(QName name)
getAttributeDefinition in interface Schemaname - The name of the attribute definition to retrieve.
Schema.getAttributeDefinition(org.inria.ns.reflex.xml.QName)public AttributeDefinition getAttributeDefinition(Attr attribute)
getAttributeDefinition in interface Schemaname - The name of the attribute definition to retrieve.
Schema.getAttributeDefinition(org.w3c.dom.Attr)public Identifiable getIdentifiable(QName id)
getIdentifiable in interface Schemaid - The ID of the identifiable object to retrieve.
Schema.getIdentifiable(org.inria.ns.reflex.xml.QName)public Schema next(Schema schema)
schema - The schema that may have a next schema.
public final XFile getLocation()
throws UnlocalizableException
getLocation in interface Localizablenull.
UnlocalizableException - Always thrown.Localizable.getLocation()public boolean isLocalizable()
isLocalizable in interface LocalizablefalseLocalizable.isLocalizable()
public final void setLocation(XFile location)
throws UnlocalizableException
setLocation in interface Localizablelocation - Not used.
UnlocalizableException - Always thrown.Localizable.setLocation(org.inria.ns.reflex.modules.io.XFile)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||