org.inria.ns.reflex.processor.asl
Interface Schema

All Superinterfaces:
Localizable
All Known Implementing Classes:
ActiveSchemaAction, ADTSchema, BuiltinSchema, BuiltinTypeSchema, GlobalSchema, XSSchema

public interface Schema
extends Localizable

A shema holds definitions for elements, types, and attributes.

Author:
Philippe Poulard

Method Summary
 AttributeDefinition getAttributeDefinition(Attr attribute)
          Return an attribute definition defined in this schema.
 AttributeDefinition getAttributeDefinition(QName name)
          Return an attribute definition defined in this schema.
 ElementDefinition getElementDefinition(Element element)
          Return an element definition defined in this schema.
 ElementDefinition getElementDefinition(QName name)
          Return an element definition defined in this schema.
 ElementDefinition getElementDefinition(String namespaceURI)
          Return the fallback element definition defined in this schema.
 Identifiable getIdentifiable(QName id)
          Return a specific identifiable object (usually, an action).
 String getTargetNamespaceURI()
          Return the target namespace URI of this schema.
 Type getTypeDefinition(QName name)
          Return a type definition defined in this schema.
 Type getTypeDefinition(String namespaceURI)
          Return a fallback type definition defined in this schema.
 
Methods inherited from interface org.inria.ns.reflex.structures.Localizable
getLocation, isLocalizable, setLocation
 

Method Detail

getTargetNamespaceURI

String getTargetNamespaceURI()
Return the target namespace URI of this schema.

Returns:
The target namespace URI, that can be the empty string if no namespace URI has been defined.

getTypeDefinition

Type getTypeDefinition(QName name)
Return a type definition defined in this schema.

Parameters:
name - The name of the type.
Returns:
The type definition expected, or null if not found.

getTypeDefinition

Type getTypeDefinition(String namespaceURI)
Return a fallback type definition defined in this schema.

Parameters:
namespaceURI - The namespace URI of the fallback type.
Returns:
The type definition expected, or null if not found.

getElementDefinition

ElementDefinition getElementDefinition(QName name)
Return an element definition defined in this schema.

Parameters:
name - The name of the element.
Returns:
The element definition expected, or null if not found.

getElementDefinition

ElementDefinition getElementDefinition(Element element)
Return an element definition defined in this schema.

Parameters:
element - The element for which the definition has to be retrieved.
Returns:
The element definition expected, or null if not found.

getElementDefinition

ElementDefinition getElementDefinition(String namespaceURI)
Return the fallback element definition defined in this schema.

Parameters:
name - The namespace URI of the fallback element.
Returns:
The element definition expected, or null if not found.

getAttributeDefinition

AttributeDefinition getAttributeDefinition(QName name)
Return an attribute definition defined in this schema.

Parameters:
name - The name of the attribute.
Returns:
The attribute definition expected , or null if not found.

getAttributeDefinition

AttributeDefinition getAttributeDefinition(Attr attribute)
Return an attribute definition defined in this schema.

Parameters:
attribute - The attribute for which the definition has to be retrieved.
Returns:
The attribute definition expected , or null if not found.

getIdentifiable

Identifiable getIdentifiable(QName id)
Return a specific identifiable object (usually, an action).

Parameters:
action - The object that has an ID.
Returns:
The object that has the ID expected.