org.apache.commons.betwixt.strategy
Class ActionMappingStrategy
java.lang.Object
org.apache.commons.betwixt.strategy.ActionMappingStrategy
- Direct Known Subclasses:
- DefaultActionMappingStrategy
public abstract class ActionMappingStrategy
- extends 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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT
public static final ActionMappingStrategy DEFAULT
- Default
ActionMappingStrategy
used by betwixt
ActionMappingStrategy
public ActionMappingStrategy()
getMappingAction
public abstract MappingAction getMappingAction(String namespace,
String name,
Attributes attributes,
ReadContext context)
throws Exception
- Gets the mapping action to map the given element.
- Parameters:
namespace
- not nullname
- not nullattributes
- Attributes
, not nullcontext
- ReadContext
, not null
- Returns:
MappingAction
, not null
- Throws:
Exception
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.