|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.umlv.tatoo.cc.common.xml.XMLDigester fr.umlv.tatoo.cc.common.xml.AbstractXMLDigester
public abstract class AbstractXMLDigester
XML Digester that register
AbstractXMLDigester.SAXlet
used to process XML tags.
Nested Class Summary | |
---|---|
static class |
AbstractXMLDigester.DefaultSAXlet
Default AbstractXMLDigester.SAXlet implementation that can be used to
recognized one XML element. |
static interface |
AbstractXMLDigester.SAXlet
Processing unit used to process one or more XML element. |
Constructor Summary | |
---|---|
protected |
AbstractXMLDigester()
Creates a digester that use AbstractXMLDigester.SAXlet . |
Method Summary | |
---|---|
abstract String |
getRootElementName()
Retruns the name of the root element of the XML file. |
protected abstract AbstractXMLDigester.SAXlet[] |
getSAXLets()
Retruns the saxlets registered by the digester. |
abstract Unit |
getUnit()
Retruns the corresponding unit type. |
DefaultHandler |
handler()
This implementation ensures that if no saxlet is registered, the saxlets returned by getSAXLets() are registered before return the handler. |
boolean |
isSaxletsRegistered()
Returns true if at least a saxlet is registered. |
void |
registerSaxlets(AbstractXMLDigester.SAXlet... saxlets)
Register saxlets used to parse the XML file. |
void |
unregisterSaxlets(AbstractXMLDigester.SAXlet... saxlets)
Unregister saxlets used to parse the XML file. |
Methods inherited from class fr.umlv.tatoo.cc.common.xml.XMLDigester |
---|
computeId, computeId, computeId, computeId, convert, convert, getLocator, parse, parse, reportError, reportError, setLocator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractXMLDigester()
AbstractXMLDigester.SAXlet
.
Method Detail |
---|
public void registerSaxlets(AbstractXMLDigester.SAXlet... saxlets)
saxlets
- the saxlets to register.getSAXLets()
public void unregisterSaxlets(AbstractXMLDigester.SAXlet... saxlets)
saxlets
- the saxlets to unregister.getSAXLets()
public boolean isSaxletsRegistered()
public abstract Unit getUnit()
protected abstract AbstractXMLDigester.SAXlet[] getSAXLets()
public abstract String getRootElementName()
public DefaultHandler handler()
getSAXLets()
are registered before return the handler.
handler
in class XMLDigester
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |