Package dk.vajhoej.model.app
Class Setup2
- java.lang.Object
-
- dk.vajhoej.model.Versioned
-
- dk.vajhoej.model.PersistableBase
-
- dk.vajhoej.model.app.Setup
-
- 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
Constructors Constructor Description Setup2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
getAttributes
public NameValuePairList getAttributes()
Description copied from interface:Persistable
Get all single value fields.- Specified by:
getAttributes
in interfacePersistable
- Overrides:
getAttributes
in classSetup
- 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 interfacePersistable
- Overrides:
getChildren
in classSetup
- 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 interfacePersistable
- Overrides:
setAttributes
in classSetup
- 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 interfacePersistable
- Overrides:
setChildren
in classSetup
- Parameters:
childs
- list of list of persistable objects- Throws:
ModelException
- if problems
-
-