Package dk.vajhoej.model.graphic.config
Class AllGraphicConfig
- java.lang.Object
-
- 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
Constructors Constructor Description AllGraphicConfig()Create instance of AllGraphicConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AllGraphicConfigclone()NameValuePairListgetAttributes()Get all single value fields.GraphicConfiggetBoxConfig(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.GraphicConfiggetComponentConfig(java.lang.String vendor)Get component config.java.util.List<java.lang.String>getComponents()Get list of component vendor names.GraphicConfiggetConnectionConfig()Get connection config.java.lang.StringgetId()Get id identifying object.GraphicConfiggetModelConfig()Get model config.GraphicConfiggetPaletteConfig()Get palette config.GraphicConfiggetStandardConfig()Get standard config.java.lang.StringgetStore()Get store.java.lang.StringgetType()Get type (XML element name / database table name not Java class name).booleanisGrayPassive()Is gray passive set.voidsetAttributes(NameValuePairList attr)Set all single value fields.voidsetBoxConfig(java.lang.String vendor, GraphicConfig cfg)Set box config.voidsetChildren(java.util.List<java.util.List<Persistable>> childs)Set all multi value fields.voidsetComponentConfig(java.lang.String vendor, GraphicConfig cfg)Set component config.voidsetConnectionConfig(GraphicConfig cfg)Set connection config.voidsetGrayPassive(boolean grayPassive)Set gray passive.voidsetModelConfig(GraphicConfig cfg)Set model config.voidsetPaletteConfig(GraphicConfig cfg)Set palette config.voidsetStandardConfig(GraphicConfig cfg)Set standard config.voidsetStore(java.lang.String store)Set store.java.lang.StringtoString()
-
-
-
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- vendorcfg- box config
-
setComponentConfig
public void setComponentConfig(java.lang.String vendor, GraphicConfig cfg)Set component config.- Parameters:
vendor- vendorcfg- 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:
clonein classjava.lang.Object
-
getId
public java.lang.String getId()
Description copied from interface:PersistableGet id identifying object.- Specified by:
getIdin interfacePersistable- Returns:
- id
-
getType
public java.lang.String getType()
Description copied from interface:PersistableGet type (XML element name / database table name not Java class name).- Specified by:
getTypein interfacePersistable- Returns:
- type
-
getStore
public java.lang.String getStore()
Description copied from interface:SeparatePersistableGet store.- Specified by:
getStorein interfaceSeparatePersistable- Returns:
- store
-
setStore
public void setStore(java.lang.String store)
Description copied from interface:SeparatePersistableSet store.- Specified by:
setStorein interfaceSeparatePersistable- Parameters:
store- store
-
getAttributes
public NameValuePairList getAttributes()
Description copied from interface:PersistableGet all single value fields.- Specified by:
getAttributesin interfacePersistable- Returns:
- name value pair list
-
getChildren
public java.util.List<java.util.List<Persistable>> getChildren()
Description copied from interface:PersistableGet all multi value fields.- Specified by:
getChildrenin interfacePersistable- Returns:
- list of list of persistable objects
-
setAttributes
public void setAttributes(NameValuePairList attr) throws ModelException
Description copied from interface:PersistableSet all single value fields.- Specified by:
setAttributesin interfacePersistable- 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:PersistableSet all multi value fields.- Specified by:
setChildrenin interfacePersistable- Parameters:
childs- list of list of persistable objects- Throws:
ModelException- if problems
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-