dk.vajhoej.model.graphic.config
Class AllGraphicConfig

java.lang.Object
  extended by dk.vajhoej.model.graphic.config.AllGraphicConfig
All Implemented Interfaces:
Persistable, SeparatePersistable, java.lang.Cloneable

public class AllGraphicConfig
extends java.lang.Object
implements SeparatePersistable, java.lang.Cloneable

Class AllGraphicConfig contains alle graphical configurations.


Constructor Summary
AllGraphicConfig()
          Create instance of AllGraphicConfig.
 
Method Summary
 AllGraphicConfig clone()
           
 NameValuePairList getAttributes()
          Get all single value fields.
 GraphicConfig getBoxConfig(java.lang.String vendor)
          Get box config.
 java.util.List<java.lang.String> getBoxes()
          Get list of box vendor names.
 java.util.List<java.util.List<Persistable>> getChildren()
          Get all multi value fields.
 GraphicConfig getComponentConfig(java.lang.String vendor)
          Get component config.
 java.util.List<java.lang.String> getComponents()
          Get list of component vendor names.
 GraphicConfig getConnectionConfig()
          Get connection config.
 java.lang.String getId()
          Get id identifying object.
 GraphicConfig getModelConfig()
          Get model config.
 GraphicConfig getPaletteConfig()
          Get palette config.
 GraphicConfig getStandardConfig()
          Get standard config.
 java.lang.String getStore()
          Get store.
 java.lang.String getType()
          Get type (XML element name / database table name not Java class name).
 boolean isGrayPassive()
          Is gray passive set.
 void setAttributes(NameValuePairList attr)
          Set all single value fields.
 void setBoxConfig(java.lang.String vendor, GraphicConfig cfg)
          Set box config.
 void setChildren(java.util.List<java.util.List<Persistable>> childs)
          Set all multi value fields.
 void setComponentConfig(java.lang.String vendor, GraphicConfig cfg)
          Set component config.
 void setConnectionConfig(GraphicConfig cfg)
          Set connection config.
 void setGrayPassive(boolean grayPassive)
          Set gray passive.
 void setModelConfig(GraphicConfig cfg)
          Set model config.
 void setPaletteConfig(GraphicConfig cfg)
          Set palette config.
 void setStandardConfig(GraphicConfig cfg)
          Set standard config.
 void setStore(java.lang.String store)
          Set store.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllGraphicConfig

public AllGraphicConfig()
Create instance of AllGraphicConfig.

Method Detail

getStandardConfig

public GraphicConfig getStandardConfig()
Get standard config.

Returns:
standard config

getModelConfig

public GraphicConfig getModelConfig()
Get model config.

Returns:
model config

getPaletteConfig

public GraphicConfig getPaletteConfig()
Get palette config.

Returns:
palette config

getBoxConfig

public GraphicConfig getBoxConfig(java.lang.String vendor)
Get box config.

Parameters:
vendor - vendor
Returns:
box config

getComponentConfig

public GraphicConfig getComponentConfig(java.lang.String vendor)
Get component config.

Parameters:
vendor - vendor
Returns:
component config

getConnectionConfig

public GraphicConfig getConnectionConfig()
Get connection config.

Returns:
connection config

setStandardConfig

public void setStandardConfig(GraphicConfig cfg)
Set standard config.

Parameters:
cfg - standard config

setModelConfig

public void setModelConfig(GraphicConfig cfg)
Set model config.

Parameters:
cfg - model config

setPaletteConfig

public void setPaletteConfig(GraphicConfig cfg)
Set palette config.

Parameters:
cfg - palette config

setBoxConfig

public void setBoxConfig(java.lang.String vendor,
                         GraphicConfig cfg)
Set box config.

Parameters:
vendor - vendor
cfg - box config

setComponentConfig

public void setComponentConfig(java.lang.String vendor,
                               GraphicConfig cfg)
Set component config.

Parameters:
vendor - vendor
cfg - component config

setConnectionConfig

public void setConnectionConfig(GraphicConfig cfg)
Set connection config.

Parameters:
cfg - connection config

isGrayPassive

public boolean isGrayPassive()
Is gray passive set.

Returns:
gray passive

setGrayPassive

public void setGrayPassive(boolean grayPassive)
Set gray passive.

Parameters:
grayPassive - gray passive

getBoxes

public java.util.List<java.lang.String> getBoxes()
Get list of box vendor names.

Returns:
unmodifiable list of box vendor names

getComponents

public java.util.List<java.lang.String> getComponents()
Get list of component vendor names.

Returns:
unmodifiable list of component vendor names

clone

public AllGraphicConfig clone()
Overrides:
clone in class java.lang.Object

getId

public java.lang.String getId()
Description copied from interface: Persistable
Get id identifying object.

Specified by:
getId in interface Persistable
Returns:
id

getType

public java.lang.String getType()
Description copied from interface: Persistable
Get type (XML element name / database table name not Java class name).

Specified by:
getType in interface Persistable
Returns:
type

getStore

public java.lang.String getStore()
Description copied from interface: SeparatePersistable
Get store.

Specified by:
getStore in interface SeparatePersistable
Returns:
store

setStore

public void setStore(java.lang.String store)
Description copied from interface: SeparatePersistable
Set store.

Specified by:
setStore in interface SeparatePersistable
Parameters:
store - store

getAttributes

public NameValuePairList getAttributes()
Description copied from interface: Persistable
Get all single value fields.

Specified by:
getAttributes in interface Persistable
Returns:
name value pair list

getChildren

public java.util.List<java.util.List<Persistable>> getChildren()
Description copied from interface: Persistable
Get all multi value fields.

Specified by:
getChildren in interface Persistable
Returns:
list of list of persistable objects

setAttributes

public void setAttributes(NameValuePairList attr)
                   throws ModelException
Description copied from interface: Persistable
Set all single value fields.

Specified by:
setAttributes in interface Persistable
Parameters:
attr - value pair list
Throws:
ModelException - if problems

setChildren

public void setChildren(java.util.List<java.util.List<Persistable>> childs)
                 throws ModelException
Description copied from interface: Persistable
Set all multi value fields.

Specified by:
setChildren in interface Persistable
Parameters:
childs - list of list of persistable objects
Throws:
ModelException - if problems

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object