org.apache.commons.betwixt.io.read
Class BeanBindAction
java.lang.Object
org.apache.commons.betwixt.io.read.MappingAction
org.apache.commons.betwixt.io.read.MappingAction.Base
org.apache.commons.betwixt.io.read.BeanBindAction
public class BeanBindAction
- extends MappingAction.Base
Action that creates and binds a new bean instance.
- Version:
- $Revision: 561314 $
- Author:
- Apache Commons Team
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final BeanBindAction INSTANCE
- Singleton instance
BeanBindAction
public BeanBindAction()
begin
public MappingAction begin(String namespace,
String name,
Attributes attributes,
ReadContext context)
throws Exception
- Begins a new element which is to be bound to a bean.
- Overrides:
begin
in class MappingAction.Base
attributes
- Attributes not nullcontext
- Context not null
- Returns:
- the MappingAction to be used to map the sub-graph
under this element
- Throws:
Exception
- See Also:
MappingAction.begin(String, String, Attributes, ReadContext)
body
public void body(String text,
ReadContext context)
throws Exception
- Description copied from class:
MappingAction
- Executes mapping action for element body text
- Overrides:
body
in class MappingAction.Base
- Throws:
Exception
- See Also:
MappingAction.body(String, ReadContext)
end
public void end(ReadContext context)
throws Exception
- Description copied from class:
MappingAction
- Executes mapping action one element ends
- Overrides:
end
in class MappingAction.Base
- Throws:
Exception
- See Also:
MappingAction.end(ReadContext)
createBean
protected Object createBean(String namespace,
String name,
Attributes attributes,
ElementDescriptor descriptor,
ReadContext context)
- Factory method to create new bean instances
- Parameters:
namespace
- the namespace for the elementname
- the local nameattributes
- the Attributes
used to match ID/IDREF
- Returns:
- the created bean
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.