|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.print.PrintData
public class PrintData
Print Data Structure. Created by DataEngine A Structure has rows, wich contain elements. Elements can be end nodes (PrintDataElements) or data structures (PrintData). The row data is sparse - i.e. null if not existing. A Structure has optional meta info about content (PrintDataColumn).
| Field Summary | |
|---|---|
static String |
XML_ATTRIBUTE_COUNT
XML Attribute Count |
static String |
XML_ATTRIBUTE_FUNCTION_ROW
XML Attribute Function Row |
static String |
XML_ATTRIBUTE_NAME
XML Attribute Name |
static String |
XML_ATTRIBUTE_NO
XML Attribute Number |
static String |
XML_ROW_TAG
XML Row Name |
static String |
XML_TAG
XML Element Name |
| Constructor Summary | |
|---|---|
PrintData(Ctx ctx,
String name)
Data Parent Constructor |
|
PrintData(Ctx ctx,
String name,
ArrayList<Object> nodes)
Data Parent Constructor |
|
| Method Summary | |
|---|---|
void |
addNode(PrintData parent)
Add Parent node to Data Structure row |
void |
addNode(PrintDataElement node)
Add node to Data Structure row |
void |
addRow(boolean functionRow,
int levelNo)
Add Row |
boolean |
createXML(StreamResult result)
Create XML representation to StreamResult |
boolean |
createXML(String fileName)
Create XML representation to File |
void |
dump()
Dump All Data - header and rows |
void |
dumpCurrentRow()
Dump All Data |
void |
dumpHeader()
Dump All Data |
PrintDataColumn[] |
getColumnInfo()
Get optional Column Info |
Ctx |
getCtx()
Get Context |
Document |
getDocument()
Get XML Document representation |
int |
getIndex(int AD_Column_ID)
Get Index of Node in Structure (not recursing) row |
int |
getIndex(String columnName)
Get Index of Node in Structure (not recursing) row |
int |
getLineLevelNo()
Get Line Level Number for current row |
String |
getName()
Get Name |
Object |
getNode(int index)
Get Node with index in row |
Object |
getNode(Integer AD_Column_ID)
Get Node with AD_Column_ID in row |
Object |
getNode(String name)
Get Node with Name in row |
int |
getNodeCount()
Return Number of nodes in row |
PrintDataElement |
getPKey()
Get Primary Key in row |
int |
getRowCount()
Get Row Count |
int |
getRowIndex()
Get Current Row Index |
ArrayList<ArrayList<Object>> |
getRows()
|
String |
getSQL()
Get optional SQL |
String |
getTableName()
Get optional TableName |
boolean |
hasLevelNo()
PrintData has Level No |
boolean |
isEmpty()
Returns true if no Nodes in row |
boolean |
isFunctionRow()
Is the current Row a Function Row |
boolean |
isFunctionRow(int row)
Is the Row a Function Row |
boolean |
isPageBreak()
Is the current Row a Function Row |
static void |
main(String[] args)
Test |
static PrintData |
parseXML(Ctx ctx,
File input)
Create PrintData from XML |
void |
setColumnInfo(PrintDataColumn[] newInfo)
Set optional Column Info |
void |
setHasLevelNo(boolean hasLevelNo)
PrintData has Level No |
boolean |
setRowIndex(int row)
Set Row Index |
boolean |
setRowNext()
Set Row Index to next |
void |
setSQL(String sql)
Set SQL (optional) |
void |
setTableName(String TableName)
Set TableName (optional) |
String |
toString()
String representation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String XML_TAG
public static final String XML_ROW_TAG
public static final String XML_ATTRIBUTE_NAME
public static final String XML_ATTRIBUTE_COUNT
public static final String XML_ATTRIBUTE_NO
public static final String XML_ATTRIBUTE_FUNCTION_ROW
| Constructor Detail |
|---|
public PrintData(Ctx ctx,
String name)
ctx - contextname - data element name
public PrintData(Ctx ctx,
String name,
ArrayList<Object> nodes)
ctx - contextname - data element namenodes - ArrayList with nodes (content not checked)| Method Detail |
|---|
public Ctx getCtx()
public String getName()
public void setColumnInfo(PrintDataColumn[] newInfo)
newInfo - Column Infopublic PrintDataColumn[] getColumnInfo()
public void setSQL(String sql)
sql - SQLpublic String getSQL()
public void setTableName(String TableName)
TableName - TableNamepublic String getTableName()
public String toString()
toString in class Objectpublic boolean isEmpty()
public int getNodeCount()
public void addRow(boolean functionRow,
int levelNo)
functionRow - true if function rowlevelNo - Line detail Level Number 0=Normalpublic boolean setRowIndex(int row)
row - row index
public boolean setRowNext()
public int getRowCount()
public int getRowIndex()
public boolean isFunctionRow(int row)
row - row no
public boolean isFunctionRow()
public boolean isPageBreak()
public void setHasLevelNo(boolean hasLevelNo)
hasLevelNo - true if sql contains LevelNopublic boolean hasLevelNo()
public int getLineLevelNo()
public void addNode(PrintData parent)
parent - parentpublic void addNode(PrintDataElement node)
node - nodepublic Object getNode(int index)
index - index
public Object getNode(String name)
name - name
public Object getNode(Integer AD_Column_ID)
AD_Column_ID - AD_Column_ID
public PrintDataElement getPKey()
public int getIndex(String columnName)
columnName - name
public int getIndex(int AD_Column_ID)
AD_Column_ID - AD_Column_ID
public void dump()
public void dumpHeader()
public void dumpCurrentRow()
public Document getDocument()
public boolean createXML(StreamResult result)
result - StreamResult
public boolean createXML(String fileName)
fileName - file name
public static PrintData parseXML(Ctx ctx,
File input)
ctx - contextinput - InputSource
public ArrayList<ArrayList<Object>> getRows()
public static void main(String[] args)
args - test
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||