|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.FieldIterator
A class encapsulating the logic necessary to produce a flat list of Field objects, by walking over the field hierarchy, and processing loops.
Field Summary | |
static java.lang.String |
code_id
|
static int |
MAX_STACK_DEPTH
The maximum allowable recursion depth for the stack, used to catch circular references that would result in an infinite loop. |
static java.lang.String |
PAGE_ATTRIBUTE
The name of the input variable we expect to hold the current page name. |
static java.lang.String[] |
SPECIAL_FORMS
Normally if we come across an unresolved form reference we'll emit a warning message since it is usually significant. |
Constructor Summary | |
FieldIterator(FormState fs)
Build an iterator for a certain form state. |
Method Summary | |
void |
close()
Must be called in a finally block everytime you call FormState.iterate() |
java.lang.Object |
getAnnotation()
Get the annotation from the current stack frame. |
java.lang.String |
getBaseContext()
|
java.lang.String |
getFieldName()
Return the fully qualified name for the last field, including base contexts specifed in references. |
java.lang.String |
getFieldName(java.lang.String name)
Return the fully qualified name for supplied name. |
boolean |
hasNext()
Return true if there is another field. |
boolean |
isSpecialForm(java.lang.String name)
Test to see if a form name is one of the "special" forms that will never be resolved. |
Form.Field |
next()
Return the next field. |
static void |
println(java.lang.String msg)
|
void |
setAnnotation(java.lang.Object o)
Allow stack frame to be annotated with an object. |
void |
setCheckDisabled(boolean b)
|
void |
setIgnoreDisableExpressions(boolean b)
|
void |
setIgnorePages(boolean b)
|
void |
setPage(java.lang.String s)
|
void |
setTrace(boolean b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final int MAX_STACK_DEPTH
public static final java.lang.String PAGE_ATTRIBUTE
public static final java.lang.String[] SPECIAL_FORMS
Constructor Detail |
public FieldIterator(FormState fs) throws WavesetException
Method Detail |
public void close()
public void setTrace(boolean b)
public void setIgnoreDisableExpressions(boolean b)
public void setCheckDisabled(boolean b)
public static void println(java.lang.String msg)
public void setIgnorePages(boolean b)
public void setPage(java.lang.String s)
public boolean hasNext() throws WavesetException
WavesetException
public Form.Field next() throws WavesetException
WavesetException
public java.lang.String getFieldName()
public java.lang.String getFieldName(java.lang.String name)
public void setAnnotation(java.lang.Object o)
public java.lang.Object getAnnotation()
public java.lang.String getBaseContext()
public boolean isSpecialForm(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |