@NotStorableClass public abstract class AbstractCurrentHandler extends Object implements ICurrentHandler
Modifier and Type | Field and Description |
---|---|
protected ClassInfoFactory |
classInfoFactory |
protected static String |
END_ELEMENT_ERROR |
protected JoafipLogger |
logger |
protected static String |
START_ELEMENT_ERROR |
protected XmlImporter |
xmlImporter |
Constructor and Description |
---|
AbstractCurrentHandler(XmlImporter xmlImporter) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertNumberOfAttribute(int numberOfAttributes,
int expectedNumberOfAttributes) |
protected void |
assertNumberOfAttribute(int numberOfAttributes,
int expectedMinNumberOfAttributes,
int expectedMaxNumberOfAttributes) |
protected String |
attribute(Map<String,String> attsMap,
String attributeName) |
protected Map<String,String> |
attributeMap(Attributes atts) |
protected Boolean |
booleanAttribute(Map<String,String> attsMap,
String attributeName) |
void |
characters(char[] chars,
int start,
int length) |
protected ClassDef |
classAttribute(Map<String,String> attsMap,
String attributeName) |
protected DataRecordIdentifier |
dataRecordIdentifierAttribute(Map<String,String> attsMap,
String attributeName) |
void |
endElement(String uri,
String localName,
String name,
Object data) |
protected ClassDef |
fieldDeclaringClassAttribute(ObjectModelForImport objectOwningField,
String fieldName,
Map<String,String> attsMap) |
Object |
getData() |
protected int |
intAttribute(Map<String,String> attsMap,
String attributeName) |
protected String |
location() |
protected long |
longAttribute(Map<String,String> attsMap,
String attributeName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
startElement
protected final JoafipLogger logger
protected static final String START_ELEMENT_ERROR
protected static final String END_ELEMENT_ERROR
protected final XmlImporter xmlImporter
protected final ClassInfoFactory classInfoFactory
public AbstractCurrentHandler(XmlImporter xmlImporter)
public void endElement(String uri, String localName, String name, Object data) throws SAXException
endElement
in interface ICurrentHandler
SAXException
public void characters(char[] chars, int start, int length) throws SAXException
characters
in interface ICurrentHandler
SAXException
public Object getData()
getData
in interface ICurrentHandler
protected Map<String,String> attributeMap(Attributes atts)
protected String attribute(Map<String,String> attsMap, String attributeName) throws SAXException
SAXException
protected int intAttribute(Map<String,String> attsMap, String attributeName) throws SAXException
SAXException
protected Boolean booleanAttribute(Map<String,String> attsMap, String attributeName) throws SAXException
SAXException
protected long longAttribute(Map<String,String> attsMap, String attributeName) throws SAXException
SAXException
protected DataRecordIdentifier dataRecordIdentifierAttribute(Map<String,String> attsMap, String attributeName) throws SAXException
SAXException
protected ClassDef classAttribute(Map<String,String> attsMap, String attributeName) throws SAXException
SAXException
protected ClassDef fieldDeclaringClassAttribute(ObjectModelForImport objectOwningField, String fieldName, Map<String,String> attsMap) throws SAXException
SAXException
protected void assertNumberOfAttribute(int numberOfAttributes, int expectedNumberOfAttributes) throws SAXException
SAXException
protected void assertNumberOfAttribute(int numberOfAttributes, int expectedMinNumberOfAttributes, int expectedMaxNumberOfAttributes) throws SAXException
SAXException
protected String location()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.