|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Maps from XML to Java.
Nested Class Summary | |
static interface |
MapFromXML.Aware
Refers to a MapFromXML via a JavaBean-style property. |
static interface |
MapFromXML.Source
A source of MapFromXML objects. |
Method Summary | |
Identifier |
getIdentifier(Unmarshaller parent,
XMLThing source,
java.lang.Class objectClass)
|
java.lang.Class |
getObjectClass(Unmarshaller parent,
XMLThing source)
Choose the Java class for an XML attribute or element. |
Prefixer |
getPrefixer()
Choose a mapping from namespace URI to preferred XML prefix. |
java.lang.String |
getPropertyName(Unmarshaller parent,
XMLThing source)
Choose the JavaBean property name for an XML attribute or element. |
Setter |
getSetter(Unmarshaller parent,
XMLThing source,
Unmarshaller child)
Choose the algorithm for creating a reference from a parent object to a child object. |
java.lang.String |
getText(Unmarshaller parent)
Choose the Java property to be copied from XML text. |
Unmarshaller |
getUnmarshaller(Unmarshaller parent,
XMLThing source,
XMLContext context)
Engage an unmarshaller for the given XML source. |
SAXContentHandler |
newContentHandler()
|
org.xml.sax.ErrorHandler |
newErrorHandler()
|
java.lang.Object |
newObject(Unmarshaller unmarshaller)
Instantiate an object for the given unmarshaller. |
XMLReceiver |
newReceiver(XMLThing source)
|
void |
putUnmarshaller(Unmarshaller unmarshaller)
Disengage an Unmarshaller from its XML source. |
void |
recycle(Unmarshaller unmarshaller)
Make a Unmarshaller available for serial re-use. |
Method Detail |
public SAXContentHandler newContentHandler()
public org.xml.sax.ErrorHandler newErrorHandler()
public XMLReceiver newReceiver(XMLThing source)
public Prefixer getPrefixer()
public java.lang.Class getObjectClass(Unmarshaller parent, XMLThing source)
source
- to be mapped from XMLparent
- mapped from the element that contains source
public java.lang.String getPropertyName(Unmarshaller parent, XMLThing source)
source
- to be mapped from XMLparent
- mapped from the element that contains source
public java.lang.String getText(Unmarshaller parent)
public Setter getSetter(Unmarshaller parent, XMLThing source, Unmarshaller child)
source
- to be mapped to childchild
- may be null, e.g. when choosing a child class for instantiation.public java.lang.Object newObject(Unmarshaller unmarshaller) throws java.lang.Exception
java.lang.Exception
public Unmarshaller getUnmarshaller(Unmarshaller parent, XMLThing source, XMLContext context)
putUnmarshaller(com.openharbor.beck.unmarshal.Unmarshaller)
after it has processed the XML source.
source
- to be mapped to Javaparent
- mapped from the element that contains source. null if source is the root element.
public void putUnmarshaller(Unmarshaller unmarshaller) throws java.lang.Exception
java.lang.Exception
public void recycle(Unmarshaller unmarshaller) throws java.lang.Exception
java.lang.Exception
public Identifier getIdentifier(Unmarshaller parent, XMLThing source, java.lang.Class objectClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |