org.apache.commons.betwixt.strategy
Class DefaultActionMappingStrategy

java.lang.Object
  extended byorg.apache.commons.betwixt.strategy.ActionMappingStrategy
      extended byorg.apache.commons.betwixt.strategy.DefaultActionMappingStrategy

public class DefaultActionMappingStrategy
extends ActionMappingStrategy

Version:
$Revision: 438373 $
Author:
Jakarta Commons Team

Field Summary
 
Fields inherited from class org.apache.commons.betwixt.strategy.ActionMappingStrategy
DEFAULT
 
Constructor Summary
DefaultActionMappingStrategy()
           
 
Method Summary
 MappingAction getMappingAction(java.lang.String namespace, java.lang.String name, org.xml.sax.Attributes attributes, ReadContext context)
          Gets the mapping action to map the given element.
private  boolean isArrayDescriptor(ElementDescriptor descriptor)
          Is the give
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultActionMappingStrategy

public DefaultActionMappingStrategy()
Method Detail

getMappingAction

public MappingAction getMappingAction(java.lang.String namespace,
                                      java.lang.String name,
                                      org.xml.sax.Attributes attributes,
                                      ReadContext context)
                               throws java.lang.Exception
Gets the mapping action to map the given element.

Specified by:
getMappingAction in class ActionMappingStrategy
Parameters:
namespace - not null
name - not null
attributes - Attributes, not null
context - ReadContext, not null
Returns:
MappingAction, not null
Throws:
java.lang.Exception

isArrayDescriptor

private boolean isArrayDescriptor(ElementDescriptor descriptor)
Is the give

Parameters:
descriptor - ElementDescriptor, possibly null
Returns:
true if the descriptor describes an array property, if null returns false