dk.vajhoej.model.app
Class Setup2

java.lang.Object
  extended by dk.vajhoej.model.Versioned
      extended by dk.vajhoej.model.PersistableBase
          extended by dk.vajhoej.model.app.Setup
              extended by dk.vajhoej.model.app.Setup2
All Implemented Interfaces:
Persistable, SeparatePersistable, java.io.Serializable, java.lang.Cloneable

public class Setup2
extends Setup

Class Setup2 is the in memory representation of a setup XML file in the new format.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class dk.vajhoej.model.app.Setup
boxes, components, connections, h, laf, model, persister, persisterParams, presentation, showBoxes, showComponents, showConnections, w
 
Constructor Summary
Setup2()
           
 
Method Summary
 NameValuePairList getAttributes()
          Get all single value fields.
 java.util.List<java.util.List<Persistable>> getChildren()
          Get all multi value fields.
 void setAttributes(NameValuePairList attr)
          Set all single value fields.
 void setChildren(java.util.List<java.util.List<Persistable>> childs)
          Set all multi value fields.
 
Methods inherited from class dk.vajhoej.model.app.Setup
getBoxes, getComponents, getConnections, getH, getId, getLaf, getModel, getPersister, getPersisterParams, getPresentation, getShowBoxes, getShowComponents, getShowConnections, getType, getW, setH, setModel, setPersister, setPersisterParams, setPresentation, setW
 
Methods inherited from class dk.vajhoej.model.PersistableBase
getStore, setStore
 
Methods inherited from class dk.vajhoej.model.Versioned
clone, getVersion, setVersion
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dk.vajhoej.model.SeparatePersistable
getStore, setStore
 

Constructor Detail

Setup2

public Setup2()
Method Detail

getAttributes

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

Specified by:
getAttributes in interface Persistable
Overrides:
getAttributes in class Setup
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
Overrides:
getChildren in class Setup
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
Overrides:
setAttributes in class Setup
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
Overrides:
setChildren in class Setup
Parameters:
childs - list of list of persistable objects
Throws:
ModelException - if problems