org.xmlcml.cml
Class DefaultCMLDOMSAXBuilder
java.lang.Object
|
+--org.xml.sax.HandlerBase
|
+--uk.co.demon.ursus.dom.SAXAdapter
|
+--uk.co.demon.ursus.dom.SAXDOMBuilder
|
+--org.xmlcml.cml.CMLDOMSAXBuilderImpl
|
+--org.xmlcml.cml.DefaultCMLDOMSAXBuilder
- public class DefaultCMLDOMSAXBuilder
- extends CMLDOMSAXBuilderImpl
Builds a CMLDOM from SAX events
| Fields inherited from class uk.co.demon.ursus.dom.SAXAdapter |
AELFRED,
defaultParserClassName,
defaultParserType,
DXP,
LARK,
MSXML,
nParserTypes,
parser,
parserTypeStrings,
reader,
urlString,
XERCESNV,
XERCESSAX,
XML4J,
XP |
|
Method Summary |
void |
endDocument()
end of document. |
void |
endElement(java.lang.String name)
end of Element. |
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList attributes)
Receive notification of the start of an element. |
| Methods inherited from class uk.co.demon.ursus.dom.SAXAdapter |
addAttributes,
attributeString,
elementCounter,
error,
fatalError,
getErrorMessage,
ignorableWhitespace,
notationDecl,
parse,
parse,
parse,
resolveEntity,
setDocumentLocator,
setParser,
setParser,
unparsedEntityDecl,
warning |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DefaultCMLDOMSAXBuilder
public DefaultCMLDOMSAXBuilder()
DefaultCMLDOMSAXBuilder
public DefaultCMLDOMSAXBuilder(java.lang.String parserClassName)
throws java.lang.Exception
DefaultCMLDOMSAXBuilder
public DefaultCMLDOMSAXBuilder(org.xml.sax.Parser parser)
throws java.lang.Exception
startElement
public void startElement(java.lang.String name,
org.xml.sax.AttributeList attributes)
throws org.xml.sax.SAXException
- Description copied from class: SAXAdapter
- Receive notification of the start of an element.
By default, do nothing. Application writers may override this
method in a subclass to take specific actions at the start of
each element (such as allocating a new tree node or writing
output to a file).
- Overrides:
- startElement in class CMLDOMSAXBuilderImpl
- Parameters:
name - The element type name.attributes - The specified or defaulted attributes.- Throws:
- org.xml.sax.SAXException - IO problems or parsing errors
- See Also:
DocumentHandler.startElement(java.lang.String, org.xml.sax.AttributeList)
endElement
public void endElement(java.lang.String name)
throws org.xml.sax.SAXException
- Description copied from class: CMLDOMSAXBuilderImpl
- end of Element. Special actions (in order):
- processDOM()
- appends element to parent using newElement.appendTo(parent).
This allows for element-specific additons (or non-additions)
- Overrides:
- endElement in class CMLDOMSAXBuilderImpl
- Parameters:
name - The element type name.attributes - The specified or defaulted attributes.- Throws:
- org.xml.sax.SAXException - IO problems or parsing errors
- See Also:
DocumentHandler.endElement(java.lang.String)
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- Description copied from class: CMLDOMSAXBuilderImpl
- end of document. Default actions are:
- processDescendants() for complete document. Although most elements
are processed at creation (and processFlag then = false), some (e.g. Bonds from BondArray) may
need to be reprocessed. Only elements with processFlag=true are processed
- runExecute()
- Overrides:
- endDocument in class CMLDOMSAXBuilderImpl
- Tags copied from class: CMLDOMSAXBuilderImpl
- Throws:
- org.xml.sax.SAXException - IO problems or parsing errors