|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.ml.cml.cmlimpl.DocumentFactoryImpl
public class DocumentFactoryImpl
manufactures CMLDocuments
| Field Summary | |
|---|---|
static java.lang.String |
ABSTRACT_CMLDOCUMENT
DOCUMENT ME! |
static java.lang.String |
DEFAULT_CMLDOCUMENT
DOCUMENT ME! |
protected java.lang.String |
documentClassName
Description of the Field |
| Constructor Summary | |
|---|---|
protected |
DocumentFactoryImpl()
Creates a new DocumentFactoryImpl object with default documentClassName |
| Method Summary | |
|---|---|
AbstractCMLDocument |
createDocument()
create a CMLDocument class of document can be set through setDocumentClassName, default is DEFAULT_CMLDOCUMENT, at present org.jscience.ml.cml.cmlimpl.AbstractCMLDocumentImpl |
AbstractCMLDocument |
createDocument(java.lang.String documentClassName)
create a CMLDocument class of document can be set through setDocumentClassName, default is DEFAULT_CMLDOCUMENT, at present org.jscience.ml.cml.cmlimpl.AbstractCMLDocumentImpl |
static AbstractCMLDocument |
createNewDocument()
Creates a new CMLDocument this creates Documents of the subclassed documentClassName NOTE: The default class will create Elements of type CMLBaseImpl, subclassed to fit the schema. |
static CMLDocumentFactory |
newAbstractInstance()
Creates a new DocumentFactory this creates Documents and elements of the abstract documentClassName NOTE: The default class will create Elements of type PMRElement, not subclassed to fit the schema. |
static CMLDocumentFactory |
newInstance()
Creates a new DocumentFactory this creates Documents of the subclassed documentClassName NOTE: The default class will create Elements of type CMLBaseImpl, subclassed to fit the schema. |
static CMLDocumentFactory |
newInstance(java.lang.String documentClassName)
Creates a new DocumentFactory this creates Documents and elements determined by the CMLDocumentImpl If elements of type PMRELementImpl are required use newAbstractInstance(); |
AbstractCMLDocument |
parseSAX(org.xml.sax.InputSource is)
Description of the Method whitespace is ignored |
org.w3c.dom.Element |
parseSAX(org.xml.sax.InputSource is,
AbstractCMLDocument doc)
Description of the Method whitespace is ignored |
org.w3c.dom.Element |
parseSAX(org.xml.sax.InputSource is,
AbstractCMLDocument doc,
boolean debug)
Description of the Method whitespace is ignored |
AbstractCMLDocument |
parseSAX(org.xml.sax.InputSource is,
boolean debug)
Description of the Method whitespace is ignored |
AbstractCMLDocument |
parseString(java.lang.String xmlString)
Convenience method to parseSAX an XML document into a CMLDocument all classes are CML Objects where possible. |
void |
setDocumentClassName(java.lang.String documentClassName)
set the document class name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ABSTRACT_CMLDOCUMENT
public static final java.lang.String DEFAULT_CMLDOCUMENT
protected java.lang.String documentClassName
| Constructor Detail |
|---|
protected DocumentFactoryImpl()
| Method Detail |
|---|
public void setDocumentClassName(java.lang.String documentClassName)
setDocumentClassName in interface CMLDocumentFactorydocumentClassName - the classname with which to create new
Documentspublic AbstractCMLDocument createDocument()
createDocument in interface CMLDocumentFactorypublic AbstractCMLDocument createDocument(java.lang.String documentClassName)
documentClassName - Description of the Parameter
public static CMLDocumentFactory newAbstractInstance()
public static CMLDocumentFactory newInstance()
public static AbstractCMLDocument createNewDocument()
public static CMLDocumentFactory newInstance(java.lang.String documentClassName)
documentClassName - Description of the Parameter
public AbstractCMLDocument parseString(java.lang.String xmlString)
throws CMLException
parseString in interface CMLDocumentFactoryxmlString - represents a well-formed XML document
CMLException - Description of the Exception
public AbstractCMLDocument parseSAX(org.xml.sax.InputSource is)
throws CMLException,
java.io.IOException
parseSAX in interface CMLDocumentFactoryis - Description of the Parameter
java.io.IOException - Description of the Exception
CMLException
public org.w3c.dom.Element parseSAX(org.xml.sax.InputSource is,
AbstractCMLDocument doc)
throws CMLException,
java.io.IOException
parseSAX in interface CMLDocumentFactoryis - Description of the Parameterdoc - Description of the Parameter
java.io.IOException - Description of the Exception
CMLException
public AbstractCMLDocument parseSAX(org.xml.sax.InputSource is,
boolean debug)
throws CMLException,
java.io.IOException
parseSAX in interface CMLDocumentFactoryis - Description of the Parameterdebug - Description of the Parameter
java.io.IOException - Description of the Exception
. - Description of the Exception
CMLException
public org.w3c.dom.Element parseSAX(org.xml.sax.InputSource is,
AbstractCMLDocument doc,
boolean debug)
throws CMLException,
java.io.IOException
parseSAX in interface CMLDocumentFactoryis - inputdoc - document to which element will belongdebug - if true, debug
java.io.IOException
. - any bad CML or XML
CMLException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||