| java.lang.Object pnuts.xml.DigestAction
All known Subclasses: pnuts.xml.action.ElementCallAction, pnuts.xml.action.TextAction, pnuts.xml.action.MapAction, pnuts.xml.action.ParameterAction, pnuts.xml.action.CallAction, pnuts.xml.action.BeanAction, pnuts.xml.action.BeanPropertyAction, pnuts.xml.action.SimpleCallAction, pnuts.xml.action.ListAction,
DigestAction | public class DigestAction (Code) | | A DigestAction is associated with a path pattern and defines an action that
is invoked when a XML parser sees beginning/end of the XML elements that match the pattern.
See Also: DigestHandler |
DigestAction | public DigestAction()(Code) | | |
currentListValue | protected Object currentListValue()(Code) | | Returns the most recent managed list.
the list object |
end | public void end(String path, String key, String text, Object top) throws Exception(Code) | | The method called when XML parser looks an element of the associated path ends.
Parameters: path - the path of the element, which the element hierarchy isdenoted as a '/'-separated string. Parameters: key - the key to acces the result. Parameters: text - the text element as a String object Parameters: top - the top of the value stack. |
getStackTopPath | protected String getStackTopPath()(Code) | | Gets the associated path of the stack top object
the path |
getStackTopValue | protected Object getStackTopValue()(Code) | | Gets the stack top without poping
the object at the stack top |
listAlive | protected boolean listAlive(String path)(Code) | | Checks if the list registered with path is still managed by the DigestReader.
Parameters: path - the path true if it is still managed by the DigestReader. |
pop | protected Object pop()(Code) | | Pops a value from the stack top
the value |
push | protected void push(String path, Object value)(Code) | | Pushes a values to the stack top.
Parameters: path - the associated path Parameters: value - the value to be pushed |
push | protected void push(Object value)(Code) | | Pushes a values to the stack top.
Parameters: value - the value to be pushed |
registerListPath | protected void registerListPath(String path, Object list)(Code) | | Registers list for the specified path.
The registered list is unregistered when different branch from the one
the list is registered with, or an element of parent path is found by the parser.
|
start | public void start(String path, String key, Map attributeMap, Object top) throws Exception(Code) | | The method called when XML parser looks an element of the associated path starts.
Parameters: path - the path of the element, which the element hierarchy isdenoted as a '/'-separated string. Parameters: key - the key to acces the result. Parameters: attributeMap - a Map object created from org.xml.sax.Attributes object. Parameters: top - the top of the value stack. |
|
|