public class GenericNode.GenericNodePropertyTable extends NodePropertyTable
GenericNode wsrrTestNode = new GenericNode("SRRetrieveEntity.msgnode"); wsrrTestNode.setNodeName("Test Complex Property Table"); VectorgenericTables = wsrrTestNode.getNodePropertyTables(); GenericNodePropertyTable genericTable = wsrrTestNode.new GenericNodePropertyTable("userPropertiesTable"); GenericNodePropertyRow genericRow = genericTable.createRow(); NodeProperty prop1 = new NodeProperty("propertyName", Usage.OPTIONAL, Type.STRING, ""); prop1.setPropertyValue("NewPropertyName"); NodeProperty prop2 = new NodeProperty("propertyValue", Usage.OPTIONAL, Type.STRING, ""); prop2.setPropertyValue("NewPropertyValue"); genericRow.add(prop1); genericRow.add(prop2); genericTable.addRow(genericRow); genericTables.add(genericTable); mf.addNode(wsrrTestNode);
copyright
Constructor and Description |
---|
GenericNode.GenericNodePropertyTable(java.lang.String tableName) |
Modifier and Type | Method and Description |
---|---|
GenericNode.GenericNodePropertyTable |
addRow(GenericNode.GenericNodePropertyRow row)
Adds a GenericRow to the table
|
GenericNode.GenericNodePropertyRow |
createRow()
Use to create a new row for this table.
|
java.util.Vector<GenericNode.GenericNodePropertyRow> |
getRows() |
GenericNode.GenericNodePropertyTable |
removeRow(GenericNode.GenericNodePropertyRow row)
Remove a GenericRow from the table
|
getTableName
public GenericNode.GenericNodePropertyTable(java.lang.String tableName)
public java.util.Vector<GenericNode.GenericNodePropertyRow> getRows()
getRows
in class NodePropertyTable
public GenericNode.GenericNodePropertyRow createRow()
NodePropertyTable
public GenericNode.GenericNodePropertyTable addRow(GenericNode.GenericNodePropertyRow row)
row
- GenericRow; the row to add to the tablepublic GenericNode.GenericNodePropertyTable removeRow(GenericNode.GenericNodePropertyRow row)
row
- GenericRow; the row to remove from the table