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 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
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 |
DEFAULT
public static final ActionMappingStrategy DEFAULT
- Default
ActionMappingStrategy
used by betwixt
ActionMappingStrategy
public ActionMappingStrategy()
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 nullname
- not nullattributes
- Attributes
, not nullcontext
- ReadContext
, not null
- Returns:
MappingAction
, not null
- Throws:
java.lang.Exception
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.