org.objectweb.fractal.adl.xml
Interface XMLNodeFactory

All Known Implementing Classes:
XMLNodeFactoryImpl

public interface XMLNodeFactory

Interface to create AST node instance. AST Node structures are described in a DTD file.


Field Summary
static java.lang.String ITF_NAME
          The default name of this interface.
 
Method Summary
 void checkDTD(java.lang.String systemId)
          Parses and checks the DTD pointed by the given systemId.
 java.lang.ClassLoader getClassLoader()
          Gets the class loader used by the XML node factory.
 XMLNode newXMLNode(java.lang.String systemId, java.lang.String qualifiedName)
          Creates a new AST node instance for the given qualifiedName as described in the DTD pointed by the systemId URL.
 XMLNode newXMLNode(java.lang.String systemId, java.lang.String qualifiedName, java.lang.Class<? extends XMLNode> baseNodeClass)
          Creates a new AST node instance for the given qualifiedName as described in the DTD pointed by the systemId URL.
 void setClassLoader(java.lang.ClassLoader loader)
          Sets the class loader used by the XML node factory.
 

Field Detail

ITF_NAME

static final java.lang.String ITF_NAME
The default name of this interface.

See Also:
Constant Field Values
Method Detail

checkDTD

void checkDTD(java.lang.String systemId)
              throws org.xml.sax.SAXException
Parses and checks the DTD pointed by the given systemId.

Parameters:
systemId - the URL of the DTD to check.
Throws:
org.xml.sax.SAXException - if something goes wrong.

newXMLNode

XMLNode newXMLNode(java.lang.String systemId,
                   java.lang.String qualifiedName)
                   throws org.xml.sax.SAXException
Creates a new AST node instance for the given qualifiedName as described in the DTD pointed by the systemId URL.

Parameters:
systemId - the URL of the DTD that describes the AST node.
qualifiedName - the AST node name.
Returns:
a new AST node instance.
Throws:
org.xml.sax.SAXException - if something goes wrong.

newXMLNode

XMLNode newXMLNode(java.lang.String systemId,
                   java.lang.String qualifiedName,
                   java.lang.Class<? extends XMLNode> baseNodeClass)
                   throws org.xml.sax.SAXException
Creates a new AST node instance for the given qualifiedName as described in the DTD pointed by the systemId URL.

Parameters:
systemId - the URL of the DTD that describes the AST node.
qualifiedName - the AST node name.
baseNodeClass - the base class that is extended by the generated class.
Returns:
a new AST node instance.
Throws:
org.xml.sax.SAXException - if something goes wrong.

getClassLoader

java.lang.ClassLoader getClassLoader()
Gets the class loader used by the XML node factory.

Returns:
the class loader used by the XML node factory.

setClassLoader

void setClassLoader(java.lang.ClassLoader loader)
Sets the class loader used by the XML node factory.

Parameters:
loader - the class loader used by the XML node factory.


Copyright © 2001-2010 ObjectWeb Consortium. All Rights Reserved.