|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.xml.RegTablesXML
public class RegTablesXML
Class for registry data stored in XML file.
Field Summary | |
---|---|
protected static String |
CLASS
|
protected static String |
CLASS_CLASSNAME
|
protected static String |
CLASS_MOVED_TO
|
protected static String |
GROUP
|
protected static String |
CHANNEL
|
protected static String |
CHANNEL_MODULE_FROM
|
protected static String |
CHANNEL_MODULE_TO
|
protected static String |
CHANNEL_NAME
|
protected static String |
CHANNEL_PLUG_FROM
|
protected static String |
CHANNEL_PLUG_TO
|
protected static String |
MODULE
|
protected static String |
MODULE_CLASSNAME
|
protected static String |
MODULE_KEY
|
protected static String |
MODULE_NAME
|
protected static String |
MODULE_PACKAGENAME
|
protected static String |
MODULE_PARAMS
|
protected static String |
MODULE_PLUGS
|
protected static String |
MODULE_SHAPE
|
protected static String |
MODULE_TEMPLATE
|
protected static String |
PARAM
|
protected static String |
PARAM_DEFAULT
|
protected static String |
PARAM_DESCRIPTION
|
protected static String |
PARAM_MANIPULATOR
|
protected static String |
PARAM_NAME
|
protected static String |
PARAM_TYPE
|
protected static String |
PARAM_VISIBLE
|
protected static String |
PLUG
|
protected static String |
PLUG_DESCRIPTION
|
protected static String |
PLUG_ID
|
protected static String |
PLUG_IFACE
|
protected static String |
PLUG_INPUT
|
protected static String |
PLUG_IO
|
protected static String |
PLUG_MANDATORY
|
protected static String |
PLUG_MULTI
|
protected static String |
PLUG_NAME
|
protected static String |
PLUG_TYPE
|
protected static String |
PLUG_VISIBLE
|
protected static String |
SHAPE_HEIGHT
|
protected static String |
SHAPE_MODE
|
protected static String |
SHAPE_WIDTH
|
protected static String |
SHAPE_X
|
protected static String |
SHAPE_Y
|
protected static String |
TEMPLATE
|
protected static String |
TEMPLATE_CATEGORY
|
protected static String |
TEMPLATE_DESCRIPTION
|
protected static String |
TEMPLATE_NAME
|
protected static String |
TEMPLATE_TEMPLATE_NAME
|
protected static String |
VALUES
|
protected static String |
VALUES_ITEM
|
Fields inherited from interface cz.cuni.jagrlib.reg.RegTables |
---|
MULTI_TEMPLATE |
Constructor Summary | |
---|---|
RegTablesXML()
Default constructor. |
Method Summary | |
---|---|
protected void |
addClass(String _package,
String _class,
String _template,
Node _nodeTemp)
Add node with module into package node. |
Node |
getClass(Node _package,
String _class)
Finds node with the given class. |
HashMapChannels |
getChannels(HashMapModules modules,
Node nodeClass)
Gets information about channels in group. |
InfoModule |
getInfo(String _package,
String _class,
String _template)
Gets information about module or group. |
Set<String> |
getInterfaces()
Returns set of all used interfaces (Plug types). |
HashMapModules |
getModules(Node nodeClass)
Gets information about modules in group. |
Node |
getPackage(String _package)
Finds node with the given package. |
LinkedHashMap<String,InfoParam> |
getParams(Node nodeTemp,
InfoModule _owner)
Gets information about parameters. |
Vector<Map<String,Object>> |
getParamValues(Node _class)
Gets values of parameter. |
Map<String,InfoPlug> |
getPlugs(Node nodeTemp,
InfoModule _owner)
Gets information about plugs. |
AbstractTableModel |
getTableModelModule(SelectFilter _filter)
Gets TableModel for table of modules. |
AbstractTableModel |
getTableModelParam(String _package,
String _class,
String _template)
Gets TableModel for table of parameters. |
AbstractTableModel |
getTableModelPlug(String _package,
String _class,
String _template)
Gets TableModel for table of plugs. |
Node |
getTemplate(Node _class,
String _template)
Finds node with the given template within the given class. |
void |
initGroupModuleShape(Node nodeShape,
InfoModule im)
Read information about shape of module. |
void |
initGroupParams(Node nodeParams,
InfoModule im)
Read information about parameters of group. |
void |
initGroupPlugs(Node nodePlugs,
InfoModule im)
Read information about plugs of group. |
void |
moveModule(InfoModule _info,
String newPackageName)
Move module to diferent package. |
protected Element |
newElement(String _name)
Creates new Element. |
protected Element |
newElement(String _name,
String _value)
Creates new Element with value. |
void |
registerGroup(InfoGroup _info)
Registration of group into registry data. |
void |
registerModule(InfoModule _info)
Registration of Piece into registry data. |
void |
save()
Saves registry data into XML file. |
void |
unregister(InfoModule _info)
Unregistration of Piece into registry data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String MODULE
protected static final String MODULE_PACKAGENAME
protected static final String MODULE_CLASSNAME
protected static final String MODULE_NAME
protected static final String MODULE_SHAPE
protected static final String MODULE_TEMPLATE
protected static final String MODULE_KEY
protected static final String MODULE_PLUGS
protected static final String MODULE_PARAMS
protected static final String SHAPE_MODE
protected static final String SHAPE_X
protected static final String SHAPE_Y
protected static final String SHAPE_WIDTH
protected static final String SHAPE_HEIGHT
protected static final String CLASS
protected static final String CLASS_MOVED_TO
protected static final String CLASS_CLASSNAME
protected static final String TEMPLATE
protected static final String TEMPLATE_TEMPLATE_NAME
protected static final String TEMPLATE_NAME
protected static final String TEMPLATE_CATEGORY
protected static final String TEMPLATE_DESCRIPTION
protected static final String PLUG
protected static final String PLUG_NAME
protected static final String PLUG_IFACE
protected static final String PLUG_TYPE
protected static final String PLUG_ID
protected static final String PLUG_DESCRIPTION
protected static final String PLUG_VISIBLE
protected static final String PLUG_IO
protected static final String PLUG_INPUT
protected static final String PLUG_MANDATORY
protected static final String PLUG_MULTI
protected static final String PARAM
protected static final String PARAM_NAME
protected static final String PARAM_TYPE
protected static final String PARAM_DESCRIPTION
protected static final String PARAM_VISIBLE
protected static final String PARAM_MANIPULATOR
protected static final String PARAM_DEFAULT
protected static final String VALUES
protected static final String VALUES_ITEM
protected static final String CHANNEL
protected static final String CHANNEL_NAME
protected static final String CHANNEL_MODULE_FROM
protected static final String CHANNEL_MODULE_TO
protected static final String CHANNEL_PLUG_FROM
protected static final String CHANNEL_PLUG_TO
protected static final String GROUP
Constructor Detail |
---|
public RegTablesXML()
Method Detail |
---|
public HashMapModules getModules(Node nodeClass)
nodeClass
- Node with group.
public void initGroupPlugs(Node nodePlugs, InfoModule im)
nodePlugs
- Node with plugs.im
- Original owner of Plugs.public void initGroupParams(Node nodeParams, InfoModule im)
nodeParams
- Node with parameters.im
- Original owner of parameters.public void initGroupModuleShape(Node nodeShape, InfoModule im)
nodeShape
- Node with shape.im
- Original module.public HashMapChannels getChannels(HashMapModules modules, Node nodeClass)
nodeClass
- Node with group.modules
- Modules from group.
protected void addClass(String _package, String _class, String _template, Node _nodeTemp)
_package
- Name of package._class
- Name of class._template
- Name of template._nodeTemp
- node with template template.protected Element newElement(String _name)
_name
- Name of Element.
protected Element newElement(String _name, String _value)
_name
- Name of Element._value
- Value of element.
public Node getPackage(String _package)
_package
- Name of package.
public Node getClass(Node _package, String _class)
_package
- Node with package._class
- Name of class.public Node getTemplate(Node _class, String _template)
_class
- Node with class._template
- Name of template.public Vector<Map<String,Object>> getParamValues(Node _class)
_class
- Node with template.
public LinkedHashMap<String,InfoParam> getParams(Node nodeTemp, InfoModule _owner)
nodeTemp
- Node with template._owner
- Owner of parameters.public Map<String,InfoPlug> getPlugs(Node nodeTemp, InfoModule _owner)
nodeTemp
- Node with template._owner
- Owner of plugs.public InfoModule getInfo(String _package, String _class, String _template)
getInfo
in interface RegTables
_package
- Name of package._class
- Name of class._template
- Name of template.
public void moveModule(InfoModule _info, String newPackageName)
moveModule
in interface RegTables
_info
- Information about module.newPackageName
- new package.public void registerModule(InfoModule _info)
registerModule
in interface RegTables
_info
- Information about module.public void registerGroup(InfoGroup _info)
registerGroup
in interface RegTables
_info
- Information about group.public void unregister(InfoModule _info)
unregister
in interface RegTables
_info
- Information about module.public void save()
save
in interface RegTables
public AbstractTableModel getTableModelModule(SelectFilter _filter)
getTableModelModule
in interface RegTables
_filter
- Filter.
public AbstractTableModel getTableModelPlug(String _package, String _class, String _template)
getTableModelPlug
in interface RegTables
_package
- Name of package._class
- Name of class._template
- Name of template.
public AbstractTableModel getTableModelParam(String _package, String _class, String _template)
getTableModelParam
in interface RegTables
_package
- Name of package._class
- Name of class._template
- Name of template.
public Set<String> getInterfaces()
getInterfaces
in interface RegTables
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |