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 NameValuePairListgetAttributes()Get all single value fields.java.util.List<java.util.List<Persistable>>getChildren()Get all multi value fields.voidsetAttributes(NameValuePairList attr)Set all single value fields.voidsetChildren(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:PersistableGet all single value fields.- Specified by:
getAttributesin interfacePersistable- Overrides:
getAttributesin classSetup- 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- Overrides:
getChildrenin classSetup- 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- Overrides:
setAttributesin 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:PersistableSet all multi value fields.- Specified by:
setChildrenin interfacePersistable- Overrides:
setChildrenin classSetup- Parameters:
childs- list of list of persistable objects- Throws:
ModelException- if problems
-
-