|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.importer.parser.ImporterEnvironment
public class ImporterEnvironment
This class holds all the settings made by the user in the Editor. It also store the settings of the node to import. It has a method to save the settings to a XML-File todo: logging of user feedback should be done in the different import modules, not here. It is currently very badly implemented.
| Nested Class Summary | |
|---|---|
class |
ImporterEnvironment.ImportLogRecord
warning record Can be of different text types like INFO, WARNING, ... todo: full list? |
| Field Summary | |
|---|---|
private ArrayList |
ethernetWarnings
Warnings for ethernet import. |
Hashtable |
interfacesTable
a table mapping interface names to the identifier used in ImportHardware table is filled in ImportHardware and used in Iptable keys: interface names values: id value of the interface |
private ArrayList |
iptablesWarnings
Warnings for iptables import. |
PCNode |
node
The node to attach the imported configuration to. |
Random |
rand
Used to create unique id's. |
ImporterDialog.SettingsPanelBase |
settings
The currently active panel. |
boolean |
windows
Operating system. todo: make this more flexible |
| Constructor Summary | |
|---|---|
ImporterEnvironment()
Create an environment without node. |
|
ImporterEnvironment(PCNode node)
Create an environment with node. |
|
| Method Summary | |
|---|---|
void |
addInfo(String type,
String name,
String text)
Methode to save infos |
void |
addWarning(String type,
String name,
String text)
Methode to save warnings |
String |
getEthernetWarnings()
Get the warnigs caused by the importation of ethernet config files. |
String |
getIptablesWarnings()
Get the warnigs caused by the importation of iptables settings. |
void |
setNode(PCNode node)
Set the node for this import. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean windows
public Hashtable interfacesTable
public PCNode node
public ImporterDialog.SettingsPanelBase settings
private ArrayList ethernetWarnings
private ArrayList iptablesWarnings
public Random rand
| Constructor Detail |
|---|
public ImporterEnvironment(PCNode node)
node - The node to attach the created configuration to.public ImporterEnvironment()
setNode(verinec.gui.core.PCNode).
| Method Detail |
|---|
public void setNode(PCNode node)
node - The new node.
public void addWarning(String type,
String name,
String text)
type - The type of the warning "file" for ethernet, "table" for iptables and "parser" for the iptables parser.name - The name for the warning.text - The warning message.
public void addInfo(String type,
String name,
String text)
type - The type of the information "file" or "table"name - The name for the info.text - The info message.public String getEthernetWarnings()
public String getIptablesWarnings()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||