|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.vajhoej.model.Versioned
dk.vajhoej.model.PersistableBase
dk.vajhoej.model.core.Model
public class Model
Class Model represents an architectural model.
Constructor Summary | |
---|---|
Model()
Create instance of Model. |
|
Model(java.lang.String name,
Version version)
Create instance of Model. |
Method Summary | |
---|---|
void |
addBox(Box box)
Add box. |
void |
addConnection(Connection con)
Add connection. |
Model |
clone()
|
boolean |
equals(java.lang.Object o)
|
NameValuePairList |
getAttributes()
Get all single value fields. |
java.util.List<Box> |
getBoxes()
Get boxes. |
java.util.List<java.util.List<Persistable>> |
getChildren()
Get all multi value fields. |
java.util.List<Connection> |
getConnections()
Get connections. |
java.lang.String |
getId()
Get id identifying object. |
java.lang.String |
getName()
Get name. |
java.lang.String |
getType()
Get type (XML element name / database table name not Java class name). |
int |
hashCode()
|
void |
removeBox(Box box)
Remove box. |
void |
removeConnection(Connection con)
Remove connection. |
void |
setAttributes(NameValuePairList attr)
Set all single value fields. |
void |
setChildren(java.util.List<java.util.List<Persistable>> childs)
Set all multi value fields. |
void |
setName(java.lang.String name)
Set name. |
java.lang.String |
toString()
|
Methods inherited from class dk.vajhoej.model.PersistableBase |
---|
getStore, setStore |
Methods inherited from class dk.vajhoej.model.Versioned |
---|
getVersion, setVersion |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface dk.vajhoej.model.SeparatePersistable |
---|
getStore, setStore |
Constructor Detail |
---|
public Model()
public Model(java.lang.String name, Version version)
name
- nameversion
- versionMethod Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String name)
name
- namepublic java.util.List<Box> getBoxes()
public void addBox(Box box)
box
- boxpublic void removeBox(Box box)
box
- boxpublic java.util.List<Connection> getConnections()
public void addConnection(Connection con)
con
- connectionpublic void removeConnection(Connection con)
con
- connectionpublic Model clone()
clone
in class Versioned
public java.lang.String getId()
Persistable
getId
in interface Persistable
public java.lang.String getType()
Persistable
getType
in interface Persistable
public NameValuePairList getAttributes()
Persistable
getAttributes
in interface Persistable
public java.util.List<java.util.List<Persistable>> getChildren()
Persistable
getChildren
in interface Persistable
public void setAttributes(NameValuePairList attr) throws ModelException
Persistable
setAttributes
in interface Persistable
attr
- value pair list
ModelException
- if problemspublic void setChildren(java.util.List<java.util.List<Persistable>> childs)
Persistable
setChildren
in interface Persistable
childs
- list of list of persistable objectspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |