|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.betwixt.io.read.MappingAction
org.apache.commons.betwixt.io.read.MappingAction.Base
org.apache.commons.betwixt.io.read.BeanBindAction
Action that creates and binds a new bean instance.
Nested Class Summary |
Nested classes inherited from class org.apache.commons.betwixt.io.read.MappingAction |
MappingAction.Base |
Field Summary | |
static BeanBindAction |
INSTANCE
Singleton instance |
Fields inherited from class org.apache.commons.betwixt.io.read.MappingAction |
EMPTY, IGNORE |
Constructor Summary | |
BeanBindAction()
|
Method Summary | |
MappingAction |
begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes,
ReadContext context)
Begins a new element which is to be bound to a bean. |
void |
body(java.lang.String text,
ReadContext context)
Executes mapping action for element body text |
protected java.lang.Object |
createBean(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes,
ElementDescriptor descriptor,
ReadContext context)
Factory method to create new bean instances |
void |
end(ReadContext context)
Executes mapping action one element ends |
private ElementDescriptor |
getElementDescriptor(ElementDescriptor propertyDescriptor,
ReadContext context)
Allows the navigation from a reference to a property object to the descriptor defining what the property is. |
private void |
update(ReadContext context,
java.lang.Object value)
|
Methods inherited from class org.apache.commons.betwixt.io.read.MappingAction.Base |
next |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final BeanBindAction INSTANCE
Constructor Detail |
public BeanBindAction()
Method Detail |
public MappingAction begin(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attributes, ReadContext context) throws java.lang.Exception
begin
in class MappingAction.Base
java.lang.Exception
MappingAction.begin(String, String, Attributes, ReadContext)
public void body(java.lang.String text, ReadContext context) throws java.lang.Exception
MappingAction
body
in class MappingAction.Base
java.lang.Exception
MappingAction.body(String, ReadContext)
public void end(ReadContext context) throws java.lang.Exception
MappingAction
end
in class MappingAction.Base
java.lang.Exception
MappingAction.end(ReadContext)
private void update(ReadContext context, java.lang.Object value) throws java.lang.Exception
java.lang.Exception
protected java.lang.Object createBean(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attributes, ElementDescriptor descriptor, ReadContext context)
namespace
- the namespace for the elementname
- the local nameattributes
- the Attributes
used to match ID/IDREF
private ElementDescriptor getElementDescriptor(ElementDescriptor propertyDescriptor, ReadContext context)
propertyDescriptor
- find descriptor for property object
referenced by this descriptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |