public class OasisXmlHandler
extends org.xml.sax.helpers.DefaultHandler
| Constructor and Description |
|---|
OasisXmlHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] chars,
int startIdx,
int endIdx) |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qualifiedName)
This collects the tag/values until it hits the ASSESSMENT end tag, at
which point is creates the internal HH record and converts the data to
the fields in the record.
|
void |
fillInRecord(HomeHealthRecordIF record)
this loops through the keys in the tagValues and applies their values to
the supplied record.
|
void |
fillInRecordValue(HomeHealthRecordIF record,
java.lang.String tag,
java.lang.String value)
Given a specific record, it associates the named (tag) value to the
related field.
|
java.util.List<HomeHealthRecordIF> |
getRecords() |
protected java.lang.reflect.Method |
getSetMethod(java.lang.Object obj,
java.lang.String fieldName,
java.lang.Class[] params)
This assumes that the methods are overloaded, so there is only one per
field name.
|
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes arg3) |
public java.util.List<HomeHealthRecordIF> getRecords()
public void characters(char[] chars,
int startIdx,
int endIdx)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qualifiedName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandleruri - localName - qualifiedName - org.xml.sax.SAXExceptionpublic void fillInRecord(HomeHealthRecordIF record)
record - public void fillInRecordValue(HomeHealthRecordIF record, java.lang.String tag, java.lang.String value)
record - tag - value - public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes arg3)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionprotected java.lang.reflect.Method getSetMethod(java.lang.Object obj,
java.lang.String fieldName,
java.lang.Class[] params)
throws java.lang.NoSuchMethodException
fieldName - params - java.lang.NoSuchMethodException