dk.vajhoej.model
Interface Persistable

All Known Subinterfaces:
SeparatePersistable
All Known Implementing Classes:
AllGraphicConfig, Box, BoxPalette, Component, ComponentPalette, Connection, ConnectionPalette, ExtGraphicConfig, ExtModel, FilenameShowWrapper, GraphicConfig, Location, Model, Picture, Setup, Setup2

public interface Persistable

Interface Persistable describes the functionality required by classes to be persisted.


Method Summary
 NameValuePairList getAttributes()
          Get all single value fields.
 java.util.List<java.util.List<Persistable>> getChildren()
          Get all multi value fields.
 java.lang.String getId()
          Get id identifying object.
 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.
 

Method Detail

getId

java.lang.String getId()
Get id identifying object.

Returns:
id

getType

java.lang.String getType()
Get type (XML element name / database table name not Java class name).

Returns:
type

getAttributes

NameValuePairList getAttributes()
Get all single value fields.

Returns:
name value pair list

getChildren

java.util.List<java.util.List<Persistable>> getChildren()
Get all multi value fields.

Returns:
list of list of persistable objects

setAttributes

void setAttributes(NameValuePairList attr)
                   throws ModelException
Set all single value fields.

Parameters:
attr - value pair list
Throws:
ModelException - if problems

setChildren

void setChildren(java.util.List<java.util.List<Persistable>> childs)
                 throws ModelException
Set all multi value fields.

Parameters:
childs - list of list of persistable objects
Throws:
ModelException - if problems