| java.lang.Object it.businesslogic.ireport.compiler.ErrorLocator
ErrorLocator | public class ErrorLocator (Code) | | author: gtoffoli author: Please not that this class is not thread safe. |
Method Summary | |
public Object[] | addSectionHyperlinkExpressionsInfo(Object[] startingExpressionInfo, String xpath) Append to startingExpressionInfo all the IDs required to show the error of the sectionHyperlink
It is used for charts only. | final public static Object[] | appendToArray(Object[] array, Object element) | final public String | childNode(String exp) | public ReportElement | findElement(Vector elements, String xpath) | public ReportElement | findElement(Vector elements, String xpath, CrosstabCell cell) | public String | getErrorString() | public JReportFrame | getJReportFrame() | final public int | getNodeIndex(String exp) This method get the index of the first node specified. | public Object[] | parseDataset(String xpath) | public void | parseElement(ReportElement re, String xpath, CrosstabReportElement cre) parse element specific errors like the content of
a crosstab, an image expression, a textfield expression, etc... | public void | parseError(String xpath, String errormsg) This method get a JReportFrame and an xpath expression and tries to locate the referenced error
opening the right windows if necessary and hilighting the error position... | public void | parseParameter(SubDataset subDataset, JRParameter param, String xpath) | public void | parseVariable(SubDataset subDataset, JRVariable variable, String xpath) | public void | setErrorString(String errorString) | public void | setJReportFrame(JReportFrame jReportFrame) |
ErrorLocator | public ErrorLocator()(Code) | | Creates a new instance of ErrorLocator
|
addSectionHyperlinkExpressionsInfo | public Object[] addSectionHyperlinkExpressionsInfo(Object[] startingExpressionInfo, String xpath)(Code) | | Append to startingExpressionInfo all the IDs required to show the error of the sectionHyperlink
It is used for charts only.
|
appendToArray | final public static Object[] appendToArray(Object[] array, Object element)(Code) | | Append element at the end of array, returning a new array with lenght
equals to array.length + 1
|
childNode | final public String childNode(String exp)(Code) | | This method get the child node (the next step in the path)
ex:
/a/b returns b
a/b returns b
/ returns ""
/a returns ""
"" returns ""
a returns ""
//b returns b
|
findElement | public ReportElement findElement(Vector elements, String xpath)(Code) | | This method finds the element pointed by the first node of xpath in the given vector
In the element is not found, the method returns null
|
findElement | public ReportElement findElement(Vector elements, String xpath, CrosstabCell cell)(Code) | | This method finds the element pointed by the first node of xpath in the given vector
having (if not null) the cell as parent cell
|
getNodeIndex | final public int getNodeIndex(String exp)(Code) | | This method get the index of the first node specified. Please note: node 0 = 1
ex:
/variable[1] will return 0
/variable[2] will return 1
/variable will return 0;
/a/b[7] return 0
/a[7] return 6
null return 0
[] return 0
|
parseError | public void parseError(String xpath, String errormsg)(Code) | | This method get a JReportFrame and an xpath expression and tries to locate the referenced error
opening the right windows if necessary and hilighting the error position...
|
parseParameter | public void parseParameter(SubDataset subDataset, JRParameter param, String xpath)(Code) | | Open the parameter dialog and highlights the bagous expression
|
parseVariable | public void parseVariable(SubDataset subDataset, JRVariable variable, String xpath)(Code) | | Opens the variable dialog and highlights the bagous expression
|
setErrorString | public void setErrorString(String errorString)(Code) | | |
|
|