public class

BeanBindAction

extends MappingAction.Base
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

Class Overview

Action that creates and binds a new bean instance.

Summary

Fields
public static final BeanBindAction INSTANCE Singleton instance
[Expand]
Inherited Fields
From class org.apache.commons.betwixt.io.read.MappingAction
Public Constructors
BeanBindAction()
Public Methods
MappingAction begin(String namespace, String name, Attributes attributes, ReadContext context)
Begins a new element which is to be bound to a bean.
void body(String text, ReadContext context)
Executes mapping action for element body text
void end(ReadContext context)
Executes mapping action one element ends
Protected Methods
Object createBean(String namespace, String name, Attributes attributes, ElementDescriptor descriptor, ReadContext context)
Factory method to create new bean instances
[Expand]
Inherited Methods
From class org.apache.commons.betwixt.io.read.MappingAction.Base
From class org.apache.commons.betwixt.io.read.MappingAction
From class java.lang.Object

Fields

public static final BeanBindAction INSTANCE

Singleton instance

Public Constructors

public BeanBindAction ()

Public Methods

public MappingAction begin (String namespace, String name, Attributes attributes, ReadContext context)

Begins a new element which is to be bound to a bean.

Parameters
attributes Attributes not null
context Context not null
Returns
  • the MappingAction to be used to map the sub-graph under this element
Throws
Exception

public void body (String text, ReadContext context)

Executes mapping action for element body text

Throws
Exception

public void end (ReadContext context)

Executes mapping action one element ends

Throws
Exception

Protected Methods

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 element
name the local name
attributes the Attributes used to match ID/IDREF
Returns
  • the created bean