org.inria.ns.reflex.processor
Class Module.DeferredModule

java.lang.Object
  extended by org.inria.ns.reflex.processor.Module
      extended by org.inria.ns.reflex.processor.Module.DeferredModule
Enclosing class:
Module

public static class Module.DeferredModule
extends Module

A module that unmarshals itself only when it is invoked.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.inria.ns.reflex.processor.Module
Module.DeferredModule
 
Constructor Summary
Module.DeferredModule(String ns, String version, ModuleAction moduleAction, Element element)
          Creates a new module.
 
Method Summary
 AbstractAction getAction(QName activeTagName, AbstractAction parent, Element element)
          Gets the concrete action class or factory class that corresponds to the qualified name given.
 XPathFunction getExtendedFunction(QName functionName)
          Gets the concrete foreign attribute class or factory class that corresponds to the qualified name given.
 ForeignAttribute getForeignAttribute(QName attributeName, String value)
          Gets the concrete foreign attribute class or factory class that corresponds to the qualified name given.
 PropertyResolver getPropertyResolver(QName predefinedProperty)
          Return the property resolver for the specified QName key if it exists, or with the namespace URI of the QName key.
 
Methods inherited from class org.inria.ns.reflex.processor.Module
addAction, addExtendedFunction, addFactory, addForeignAttribute, addPropertyResolver, addPropertyResolver, getNamespaceURI, getVersion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Module.DeferredModule

public Module.DeferredModule(String ns,
                             String version,
                             ModuleAction moduleAction,
                             Element element)
Creates a new module.

Parameters:
ns - The universal key (namespace URI) of the module.
version - The version of the module.
moduleAction - The action that hosts the definition of the module.
element - The <exp:module> element that defines the module.
Method Detail

getAction

public AbstractAction getAction(QName activeTagName,
                                AbstractAction parent,
                                Element element)
                         throws XMLException
Gets the concrete action class or factory class that corresponds to the qualified name given.

Overrides:
getAction in class Module
Parameters:
activeTagName - The qualified named of the active tag.
parent - The action depending from.
element - The active tag.
Returns:
The class that corresponds to the qualified name registered, or null. The class must have the following method signature : unmarshall(AbstractAction parent, Element e) that must return an AbstractAction.
Throws:
XMLException

getPropertyResolver

public PropertyResolver getPropertyResolver(QName predefinedProperty)
                                     throws UnrecoverableException
Return the property resolver for the specified QName key if it exists, or with the namespace URI of the QName key.

Overrides:
getPropertyResolver in class Module
Parameters:
predefinedProperty - The qualified name of the predefined property to resolve.
Returns:
The property resolver for the specified QName key or its namespace, or null if none entry found. If a property resolver doesn't exist for a QName, those bound to its namespace is returned if it exists.
Throws:
UnrecoverableException

getExtendedFunction

public XPathFunction getExtendedFunction(QName functionName)
                                  throws UnrecoverableException
Gets the concrete foreign attribute class or factory class that corresponds to the qualified name given.

Overrides:
getExtendedFunction in class Module
Parameters:
attributeName - The qualified named of the foreign attribute.
Returns:
The class that corresponds to the qualified name registered, or null.
Throws:
UnrecoverableException

getForeignAttribute

public ForeignAttribute getForeignAttribute(QName attributeName,
                                            String value)
                                     throws UnrecoverableException
Gets the concrete foreign attribute class or factory class that corresponds to the qualified name given.

Overrides:
getForeignAttribute in class Module
Parameters:
attributeName - The qualified named of the foreign attribute.
value - The value of the foreign attribute.
Returns:
The foreign attribute that corresponds to the qualified name registered, or null.
Throws:
UnrecoverableException