|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel javax.swing.table.DefaultTableModel uk.apl.jxc.tools.XMLMapperTableModel
public class XMLMapperTableModel
TableModel representation of an XMLMapper configuration.
Field Summary |
---|
Fields inherited from class javax.swing.table.DefaultTableModel |
---|
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
XMLMapperTableModel()
Constructs a new XMLMapperTableModel |
Method Summary | |
---|---|
void |
applyMappings(java.util.Iterator<AbstractXMLMapping> iterator)
Restores saved mapping values from a mapping iterator. |
boolean |
isCellEditable(int row,
int col)
Returns true if a cell is editable, false otherwise. |
void |
setSourceSchema(XMLSchema schema,
java.lang.String rootElement)
Sets the source XML schema to which the mapping applies. |
void |
setTargetRootElement(java.lang.String targetRootElement)
Sets the root element of the target schema. |
void |
storeMapping(java.io.File mappingFile)
Saves the mapping in a properties file. |
XMLMapper |
toMapper()
Returns the table model contents as an XMLMapper. |
Methods inherited from class javax.swing.table.DefaultTableModel |
---|
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLMapperTableModel()
Method Detail |
---|
public void setSourceSchema(XMLSchema schema, java.lang.String rootElement)
schema
- source XML Schema the mapping applies topublic void setTargetRootElement(java.lang.String targetRootElement)
targetRootElement
- root element of the target schemapublic void applyMappings(java.util.Iterator<AbstractXMLMapping> iterator)
iterator
- the iterator to apply the mappings frompublic boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.DefaultTableModel
row
- the cells rowcol
- the cells column
public XMLMapper toMapper()
public void storeMapping(java.io.File mappingFile) throws java.io.FileNotFoundException, java.io.IOException
mappingFile
- the file to save the filter to
java.io.FileNotFoundException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |