org.inria.ns.reflex.processor
Class ModuleBuilder

java.lang.Object
  extended by org.inria.ns.reflex.processor.catalog.Builder
      extended by org.inria.ns.reflex.processor.ModuleBuilder
Direct Known Subclasses:
NoModule

public class ModuleBuilder
extends Builder

A ModuleBuilder creates a Module.

Author:
Philippe Poulard
See Also:
Module

Constructor Summary
ModuleBuilder(Module module)
          Simply create a wrapper for the module given.
ModuleBuilder(Object name, Object input, ProcessorInstance creator)
          Create a builder that build a module.
 
Method Summary
 boolean equals(Object obj)
           
 String getNamespaceURI()
          Return the namespace URI of the module.
 
Methods inherited from class org.inria.ns.reflex.processor.catalog.Builder
getInstance, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleBuilder

public ModuleBuilder(Module module)
Simply create a wrapper for the module given.

Parameters:
module - The module to wrap.

ModuleBuilder

public ModuleBuilder(Object name,
                     Object input,
                     ProcessorInstance creator)
Create a builder that build a module.

Parameters:
name - The name of the module.
input - The input to use for building the module. Usually it is a path to a file to unmarshall.
creator - The processor instance that create this builder. A new processor instance based on this creator will be used to unmarshal the underlying module.
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Builder
See Also:
Object.equals(java.lang.Object)

getNamespaceURI

public String getNamespaceURI()
Return the namespace URI of the module.

Returns:
The namespace URI of the module.