fr.umlv.tatoo.cc.common.xml
Class XMLDigester
java.lang.Object
fr.umlv.tatoo.cc.common.xml.XMLDigester
- Direct Known Subclasses:
- AbstractXMLDigester, DispatchXMLDigester
public abstract class XMLDigester
- extends Object
- Author:
- Remi Forax
Method Summary |
String |
computeId(Attributes atts)
|
String |
computeId(Attributes atts,
boolean validate)
|
String |
computeId(Attributes atts,
String attsName,
boolean validate)
|
String |
computeId(Attributes atts,
String attsName,
String defaultValue)
|
|
convert(Attributes attrs,
String name,
Class<T> clazz)
|
|
convert(Attributes attrs,
String name,
Class<T> clazz,
T defaultValue)
|
Locator |
getLocator()
|
protected abstract DefaultHandler |
handler()
|
void |
parse(File file,
boolean validating)
|
void |
parse(Reader reader,
Object resource,
boolean validating)
|
void |
reportError(Level type,
String message)
|
void |
reportError(Level type,
Throwable e)
|
void |
setLocator(Locator locator)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLDigester
protected XMLDigester()
parse
public void parse(File file,
boolean validating)
throws ParserConfigurationException,
SAXException,
IOException
- Throws:
ParserConfigurationException
SAXException
IOException
parse
public void parse(Reader reader,
Object resource,
boolean validating)
throws ParserConfigurationException,
SAXException,
IOException
- Throws:
ParserConfigurationException
SAXException
IOException
handler
protected abstract DefaultHandler handler()
setLocator
public void setLocator(Locator locator)
getLocator
public Locator getLocator()
reportError
public void reportError(Level type,
Throwable e)
throws SAXException
- Throws:
SAXException
reportError
public void reportError(Level type,
String message)
throws SAXException
- Throws:
SAXException
computeId
public String computeId(Attributes atts)
computeId
public String computeId(Attributes atts,
boolean validate)
computeId
public String computeId(Attributes atts,
String attsName,
boolean validate)
computeId
public String computeId(Attributes atts,
String attsName,
String defaultValue)
convert
public <T> T convert(Attributes attrs,
String name,
Class<T> clazz)
convert
public <T> T convert(Attributes attrs,
String name,
Class<T> clazz,
T defaultValue)