dk.vajhoej.model.graphic.config
Class ExtGraphicConfig

java.lang.Object
  extended by dk.vajhoej.model.graphic.config.ExtGraphicConfig
All Implemented Interfaces:
Persistable

public class ExtGraphicConfig
extends java.lang.Object
implements Persistable

Class ExtGraphicConfig extends class GraphicConfig with a key.


Constructor Summary
ExtGraphicConfig()
          Create instance of ExtGraphicConfig.
ExtGraphicConfig(java.lang.String key, GraphicConfig real)
          Create instance of ExtGraphicConfig.
 
Method Summary
 NameValuePairList getAttributes()
          Get all single value fields.
 java.util.List<java.util.List<Persistable>> getChildren()
          Get all multi value fields.
 GraphicConfig getConfig()
          Get GraphicConfig.
 java.lang.String getId()
          Get id identifying object.
 java.lang.String getKey()
          Get key.
 java.lang.String getType()
          Get type (XML element name / database table name not Java class name).
 void setAttributes(NameValuePairList attr)
          Set all single value fields.
 void setChildren(java.util.List<java.util.List<Persistable>> childs)
          Set all multi value fields.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtGraphicConfig

public ExtGraphicConfig()
Create instance of ExtGraphicConfig.


ExtGraphicConfig

public ExtGraphicConfig(java.lang.String key,
                        GraphicConfig real)
Create instance of ExtGraphicConfig.

Parameters:
key - key
real - GraphicConfig
Method Detail

getKey

public java.lang.String getKey()
Get key.

Returns:
key

getConfig

public GraphicConfig getConfig()
Get GraphicConfig.

Returns:
GraphicConfig.

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

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