Package dk.vajhoej.model.core
Class ExtModel
- java.lang.Object
-
- dk.vajhoej.model.core.ExtModel
-
- All Implemented Interfaces:
Persistable,SeparatePersistable
public class ExtModel extends java.lang.Object implements SeparatePersistable
Class ExtModel represents an architectural model extended with visual information.
-
-
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.intgetDimX()Get grid width.intgetDimY()Get grid height.java.lang.StringgetId()Get id identifying object.java.util.List<Location>getLocations()Get locations.ModelgetReal()Get the model.java.lang.StringgetStore()Get store.java.lang.StringgetType()Get type (XML element name / database table name not Java class name).voidsetAttributes(NameValuePairList attr)Set all single value fields.voidsetChildren(java.util.List<java.util.List<Persistable>> childs)Set all multi value fields.voidsetDimX(int dimX)Set grid width.voidsetDimY(int dimY)Set grid height.voidsetLocations(java.util.List<Location> locations)Set locations.voidsetStore(java.lang.String store)Set store.java.lang.StringtoString()
-
-
-
Method Detail
-
getReal
public Model getReal()
Get the model.- Returns:
- the model
-
getLocations
public java.util.List<Location> getLocations()
Get locations.- Returns:
- list of locations
-
setLocations
public void setLocations(java.util.List<Location> locations)
Set locations.- Parameters:
locations- list of locations
-
getDimX
public int getDimX()
Get grid width.- Returns:
- grid width
-
setDimX
public void setDimX(int dimX)
Set grid width.- Parameters:
dimX- grid width
-
getDimY
public int getDimY()
Get grid height.- Returns:
- grid height
-
setDimY
public void setDimY(int dimY)
Set grid height.- Parameters:
dimY- grid height
-
getId
public java.lang.String getId()
Description copied from interface:PersistableGet id identifying object.- Specified by:
getIdin interfacePersistable- Returns:
- id
-
getType
public java.lang.String getType()
Description copied from interface:PersistableGet type (XML element name / database table name not Java class name).- Specified by:
getTypein interfacePersistable- Returns:
- type
-
getStore
public java.lang.String getStore()
Description copied from interface:SeparatePersistableGet store.- Specified by:
getStorein interfaceSeparatePersistable- Returns:
- store
-
setStore
public void setStore(java.lang.String store)
Description copied from interface:SeparatePersistableSet store.- Specified by:
setStorein interfaceSeparatePersistable- Parameters:
store- store
-
getAttributes
public NameValuePairList getAttributes()
Description copied from interface:PersistableGet all single value fields.- Specified by:
getAttributesin interfacePersistable- 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- 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- 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- Parameters:
childs- list of list of persistable objects- Throws:
ModelException- if problems
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-