org.apache.commons.betwixt.io.read
Class MappingAction
java.lang.Object
|
+--org.apache.commons.betwixt.io.read.MappingAction
- Direct Known Subclasses:
- MappingAction.Base
- public abstract class MappingAction
- extends java.lang.Object
Executes mapping action for a subgraph.
It is intended that most MappingAction's will not need to maintain state.
- Version:
- $Revision: 155402 $
- Author:
- Jakarta Commons Team
Method Summary |
abstract MappingAction |
begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes,
ReadContext context)
Executes mapping action on new element. |
abstract void |
body(java.lang.String text,
ReadContext context)
Executes mapping action for element body text |
abstract void |
end(ReadContext context)
Executes mapping action one element ends |
abstract MappingAction |
next(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes,
ReadContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final MappingAction EMPTY
IGNORE
public static final MappingAction IGNORE
MappingAction
public MappingAction()
next
public abstract MappingAction next(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes,
ReadContext context)
throws java.lang.Exception
begin
public abstract MappingAction begin(java.lang.String namespace,
java.lang.String name,
org.xml.sax.Attributes attributes,
ReadContext context)
throws java.lang.Exception
- Executes mapping action on new element.
- Parameters:
namespace
- name
- attributes
- Attributes not nullcontext
- Context not null- Returns:
- the MappingAction to be used to map the sub-graph
under this element
- Throws:
java.lang.Exception
-
body
public abstract void body(java.lang.String text,
ReadContext context)
throws java.lang.Exception
- Executes mapping action for element body text
- Parameters:
text
- context
- - Throws:
java.lang.Exception
-
end
public abstract void end(ReadContext context)
throws java.lang.Exception
- Executes mapping action one element ends
- Parameters:
context
- - Throws:
java.lang.Exception
-
Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.