org.apache.commons.betwixt.strategy
Class ActionMappingStrategy

java.lang.Object
  extended by org.apache.commons.betwixt.strategy.ActionMappingStrategy
Direct Known Subclasses:
DefaultActionMappingStrategy

public abstract class ActionMappingStrategy
extends java.lang.Object

Pluggable strategy interface used for free mappings.

Free mappings (ones where the current mapping ) are executed by calling a ActionMappingStrategy implementation. So, using a custom strategy is an easy way to customize the mapping.

Version:
$Revision: 561314 $
Author:
Apache Commons Team

Field Summary
static ActionMappingStrategy DEFAULT
          Default ActionMappingStrategy used by betwixt
 
Constructor Summary
ActionMappingStrategy()
           
 
Method Summary
abstract  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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT

public static final ActionMappingStrategy DEFAULT
Default ActionMappingStrategy used by betwixt

Constructor Detail

ActionMappingStrategy

public ActionMappingStrategy()
Method Detail

getMappingAction

public abstract 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.

Parameters:
namespace - not null
name - not null
attributes - Attributes, not null
context - ReadContext, not null
Returns:
MappingAction, not null
Throws:
java.lang.Exception


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.