|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.openharbor.beck.map.DefaultMapper com.openharbor.beck.configure.MappingMapper
For directions, see Configuration.MAP_FROM_XML
.
This is class is required to be thread-safe (unlike DefaultMapper),
to support concurrent usage of Configuration.MAP_FROM_XML.
The authors have tried to make this class thread-safe, but it's possible they've failed.
Nested Class Summary |
Nested classes inherited from class com.openharbor.beck.map.MapFromXML |
MapFromXML.Aware, MapFromXML.Source |
Nested classes inherited from class com.openharbor.beck.map.MapToXML |
MapToXML.Source |
Field Summary | |
protected ObjectFactory |
factory
|
Fields inherited from class com.openharbor.beck.map.DefaultMapper |
arrayMarshaller, CLASS_TO_PROPERTY_TO_SETTER, class2property2setter, collectionMarshaller, configurationMemo, dateMarshaller, defaultMarshaller, globalSelector, listMarshaller, log, mapMarshaller, marshalSelector, primitiveMarshaller, primitiveUnmarshallers, PROPERTIES, singletons, stringMarshaller, unmarshallerClass2Pool, unmarshalSelector |
Constructor Summary | |
MappingMapper()
|
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. |
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. |
java.lang.Object |
newObject(Unmarshaller unmarshaller)
Instantiate an object for the given unmarshaller. |
XMLReceiver |
newReceiver(XMLThing source)
|
void |
recycle(Unmarshaller unmarshaller)
Make a Unmarshaller available for serial re-use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final ObjectFactory factory
Constructor Detail |
public MappingMapper()
Method Detail |
public XMLReceiver newReceiver(XMLThing source)
newReceiver
in interface MapFromXML
newReceiver
in class DefaultMapper
public java.lang.Class getObjectClass(Unmarshaller parent, XMLThing source)
MapFromXML
getObjectClass
in interface MapFromXML
getObjectClass
in class DefaultMapper
public java.lang.String getPropertyName(Unmarshaller parent, XMLThing source)
MapFromXML
getPropertyName
in interface MapFromXML
getPropertyName
in class DefaultMapper
public java.lang.String getText(Unmarshaller parent)
MapFromXML
getText
in interface MapFromXML
getText
in class DefaultMapper
public Setter getSetter(Unmarshaller parent, XMLThing source, Unmarshaller child)
MapFromXML
getSetter
in interface MapFromXML
getSetter
in class DefaultMapper
public java.lang.Object newObject(Unmarshaller unmarshaller) throws java.lang.Exception
MapFromXML
newObject
in interface MapFromXML
newObject
in class DefaultMapper
java.lang.Exception
public Unmarshaller getUnmarshaller(Unmarshaller parent, XMLThing source, XMLContext context)
MapFromXML
MapFromXML.putUnmarshaller(com.openharbor.beck.unmarshal.Unmarshaller)
after it has processed the XML source.
getUnmarshaller
in interface MapFromXML
getUnmarshaller
in class DefaultMapper
public void recycle(Unmarshaller unmarshaller) throws java.lang.Exception
MapFromXML
recycle
in interface MapFromXML
recycle
in class DefaultMapper
java.lang.Exception
public Identifier getIdentifier(Unmarshaller parent, XMLThing source, java.lang.Class objectClass)
getIdentifier
in interface MapFromXML
getIdentifier
in class DefaultMapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |