|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This represents a node in the dataset. Every time a forEach loop is entered one of these nodes must be created and is pushed on to the stack of forEach nodes. When a forEach is exited, the node is pop'ed off the stack. The base node is the DataSourceProvider.getRootNode().
| Method Summary | |
void |
addQuery(QueryTag tag,
DataSourceNode[] stack)
Called for a query tag. |
void |
addSet(SetTag tag,
DataSourceNode[] stack)
Called for a set tag. |
java.lang.String |
adjustSelect(java.lang.String select,
DataSourceNode[] stack)
This method is only called by AutoTag. |
void |
close()
We are done with this node. |
boolean |
evaluate(java.lang.String text,
DataSourceNode[] stack)
Evaluate an expression for the boolean result. |
java.io.InputStream |
getBitmap(OutTag tag,
DataSourceNode[] stack)
Called when tag is of type BITMAP. |
net.windward.chart.ChartDataSet |
getData(ChartTag tag,
DataSourceNode[] stack,
java.util.Locale locale)
Returns a set of data used to create a chart. |
java.lang.String |
getEscape(EscapeTag tag,
DataSourceNode[] stack)
Called for an escape tag. |
java.lang.Object |
getForEach(ForEachTag tag,
DataSourceNode[] stack)
This method is only called by AutoTag. |
java.lang.String[] |
getFunction(FunctionTag tag,
DataSourceNode[] stack)
Called for a function tag. |
java.lang.String |
getHtml(HtmlTag tag,
DataSourceNode[] stack)
Called for an html tag. |
java.lang.String |
getImport(ImportTag tag,
DataSourceNode[] stack)
Called for an import tag. |
DataSourceIterator |
getIterator()
Returns the iterator presently in use for this node. |
java.lang.String |
getLink(LinkTag tag,
DataSourceNode[] stack)
Called for a link tag. |
MetaDataElement[] |
getMetaData(BaseTag tag,
int index,
DataSourceNode[] stack)
This method is only called by AutoTag. |
java.lang.String |
getOut(OutTag tag,
DataSourceNode[] stack,
java.util.Locale locale)
Called for an out tag. |
java.io.InputStream |
getOutStream(OutTag tag,
DataSourceNode[] stack)
Called for an out tag. |
java.lang.Object |
getQuery(QueryTag tag,
DataSourceNode[] stack)
This method is only called by AutoTag. |
java.lang.String |
getSet(SetTag tag,
DataSourceNode[] stack)
This method is only called by AutoTag. |
boolean |
isExistingNode(BaseTag tag,
DataSourceNode[] stack)
Return true if the passed in node exists. |
boolean |
isIf(IfTag tag,
DataSourceNode[] stack)
Called for an if tag. |
boolean |
isSelect(java.lang.String select)
|
DataSourceIterator |
iterator(ForEachTag tag,
DataSourceNode[] stack)
Called for a forEach tag. |
| Method Detail |
public MetaDataElement[] getMetaData(BaseTag tag,
int index,
DataSourceNode[] stack)
throws DataSourceException
tag - The tag to run.index - For a chart tag this is which graph in the chart to run the select on.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - If anything goes wrong.
public java.lang.Object getForEach(ForEachTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The tag to run.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - If anything goes wrong.
public java.lang.String adjustSelect(java.lang.String select,
DataSourceNode[] stack)
throws DataSourceException
select - The select to adjuststack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - If anything goes wrong.
public java.lang.Object getQuery(QueryTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The tag to run.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - If anything goes wrong.
public java.lang.String getSet(SetTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The tag to run.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - If anything goes wrong.public boolean isSelect(java.lang.String select)
public void addQuery(QueryTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public void addSet(SetTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The name value pair.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public java.io.InputStream getBitmap(OutTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public java.lang.String getEscape(EscapeTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public java.lang.String[] getFunction(FunctionTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public java.lang.String getHtml(HtmlTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public java.lang.String getImport(ImportTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public java.lang.String getLink(LinkTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public java.lang.String getOut(OutTag tag,
DataSourceNode[] stack,
java.util.Locale locale)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.locale - The locale to produce the output in.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public java.io.InputStream getOutStream(OutTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public boolean isExistingNode(BaseTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public boolean evaluate(java.lang.String text,
DataSourceNode[] stack)
throws DataSourceException
text - The expression to evaluate.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public boolean isIf(IfTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public DataSourceIterator iterator(ForEachTag tag,
DataSourceNode[] stack)
throws DataSourceException
tag - The values that identify the datasource node to read.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public DataSourceIterator getIterator()
throws DataSourceException
DataSourceException - Could not retrieve the data. Generally wraps a SqlException or XpathException.
public void close()
throws DataSourceException
DataSourceException - Could not retrieve the data.
public net.windward.chart.ChartDataSet getData(ChartTag tag,
DataSourceNode[] stack,
java.util.Locale locale)
throws DataSourceException
tag - The wr:chart tag with the select setting to use.stack - The stack of forEach loops in at this point. Node [0] is the root document node so this will always
have length of at least 1.locale - The locale to produce the output in.DataSourceException - Could not retrieve the data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||