org.apache.commons.betwixt.io.read
Class MappingAction

java.lang.Object
  extended by 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: 561314 $
Author:
Apache Commons Team

Nested Class Summary
static class MappingAction.Base
          Basic action.
 
Field Summary
static MappingAction EMPTY
           
static MappingAction IGNORE
           
 
Constructor Summary
MappingAction()
           
 
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
 

Field Detail

EMPTY

public static final MappingAction EMPTY

IGNORE

public static final MappingAction IGNORE
Constructor Detail

MappingAction

public MappingAction()
Method Detail

next

public abstract MappingAction next(java.lang.String namespace,
                                   java.lang.String name,
                                   org.xml.sax.Attributes attributes,
                                   ReadContext context)
                            throws java.lang.Exception
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 null
context - 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-2008 The Apache Software Foundation. All Rights Reserved.