|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Objectf_object
f_xmlDigester
public class f_xmlDigester
XML Digester
| Method Summary | |
|---|---|
void |
f_addCallMethod(String pattern,
Function method,
any parameters)
|
void |
f_addObjectCreate(String pattern,
f_class clazz,
any attributeName)
|
void |
f_addSetNextRule(String pattern,
String name)
|
void |
f_addSetProperties(String pattern,
any attributes)
|
void |
f_addSetProperty(String pattern,
String name,
String value,
String name2,
String value2)
|
void |
f_addSetTopRule(String pattern,
String name)
|
void |
f_clear()
Clear the current contents of the object stack. |
Number |
f_getCount(String name)
Return the current depth of the element stack. |
any |
f_getRoot()
This method allows you to access the root object that has been created after parsing. |
boolean |
f_isEmpty(String name)
Is the stack with the given name empty? |
any |
f_parse(Object source)
Parse the content of the specified URI using this Digester. |
any |
f_peek(Number index,
String name)
Return the n'th object down the stack, where 0 is the top element and [getCount()-1] is the bottom element. |
any |
f_peekParams(Number index)
Return the n'th object down the parameters stack, where 0 is the top element and [getCount()-1] is the bottom element. |
any |
f_pop(String name)
Pops (gets and removes) the top object from the stack with the given name. |
any |
f_popParams()
Pop the top object off of the parameters stack, and return it. |
void |
f_push(any object,
String name)
Push a new object onto the top of the object stack. |
void |
f_pushParams(any object)
Push a new object onto the top of the parameters stack. |
| Methods inherited from class f_object |
|---|
f_getClass, toString |
| Methods inherited from class Object |
|---|
toString |
| Method Detail |
|---|
public void f_addSetProperty(String pattern,
String name,
String value,
String name2,
String value2)
pattern - name - value - (if NULL take name as value !)name2 - value2 - public boolean f_isEmpty(String name)
name - The name of the stack whose emptiness should be evaluated.
true if the given stack if empty
public void f_addSetProperties(String pattern,
any attributes)
pattern -
public void f_addObjectCreate(String pattern,
f_class clazz,
any attributeName)
pattern - clazz - f_class or a javascript class.public any f_getRoot()
public Number f_getCount(String name)
name - The name of the stack whose depth should be evaluated.
public void f_push(any object,
String name)
object - The new objectname - Name of stack
public void f_addCallMethod(String pattern,
Function method,
any parameters)
pattern - method - parameters - public void f_clear()
Calling this method might allow another document of the same type to be correctly parsed. However this method was not intended for this purpose. In general, a separate Digester object should be created for each document to be parsed.
public void f_addSetTopRule(String pattern,
String name)
pattern - name - Name of method to call to append the second top object of the stack, to the top object.public any f_pop(String name)
name - Name of stack
public any f_popParams()
public void f_pushParams(any object)
object - The new object
public any f_peek(Number index,
String name)
index - Index of the desired element, where 0 is the top of the stack, 1 is the next element down, and so on.name - Name of stackpublic any f_parse(Object source)
source - XML data to be parsed.
public any f_peekParams(Number index)
index - Index of the desired element, where 0 is the top of the stack, 1 is the next element down, and so on.
public void f_addSetNextRule(String pattern,
String name)
pattern - name - Name of method to call to append top object of the stack, to the previous top object.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||