|
|||||||||
| 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.PaletteBase
dk.vajhoej.model.core.ConnectionPalette
public class ConnectionPalette
Class ConnectionPalette represents a palette of connections between boxes.
| Constructor Summary | |
|---|---|
ConnectionPalette()
Create instance of ConnectionPalette. |
|
ConnectionPalette(java.lang.String name,
Version version)
Create instance of ConnectionPalette. |
|
| Method Summary | |
|---|---|
void |
addConnection(Connection con)
Add connection. |
ConnectionPalette |
duplicate()
Duplicate object. |
boolean |
equals(java.lang.Object o)
|
NameValuePairList |
getAttributes()
Get all single value fields. |
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 |
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. |
java.lang.String |
toString()
|
| 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 |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface dk.vajhoej.model.SeparatePersistable |
|---|
getStore, setStore |
| Constructor Detail |
|---|
public ConnectionPalette()
public ConnectionPalette(java.lang.String name,
Version version)
name - nameversion - version| Method Detail |
|---|
public java.lang.String getName()
getName in class PaletteBasepublic java.util.List<Connection> getConnections()
public void addConnection(Connection con)
con - connectionpublic void removeConnection(Connection con)
con - connectionpublic ConnectionPalette duplicate()
Duplicatable
duplicate in interface Duplicatablepublic java.lang.String getId()
Persistable
getId in interface Persistablepublic java.lang.String getType()
Persistable
getType in interface Persistablepublic NameValuePairList getAttributes()
Persistable
getAttributes in interface Persistablepublic java.util.List<java.util.List<Persistable>> getChildren()
Persistable
getChildren in interface Persistable
public void setAttributes(NameValuePairList attr)
throws ModelException
Persistable
setAttributes in interface Persistableattr - value pair list
ModelException - if problemspublic void setChildren(java.util.List<java.util.List<Persistable>> childs)
Persistable
setChildren in interface Persistablechilds - list of list of persistable objectspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic 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 | ||||||||