|
|||||||||
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.core.Connection
public class Connection
Class Connection represents a connection between boxes.
Constructor Summary | |
---|---|
Connection()
Create instance of Connection. |
|
Connection(Version version,
java.lang.String stack)
Create instance of Connection. |
|
Connection(Version version,
java.lang.String stack,
ConnectionType conntype)
Create instance of Connection. |
Method Summary | |
---|---|
Connection |
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. |
ConnectionType |
getConntype()
Get connection type. |
java.lang.String |
getId()
Get id identifying object. |
java.lang.String |
getStack()
Get protocol stack. |
java.lang.String |
getType()
Get type (XML element name / database table name not Java class name). |
int |
hashCode()
|
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 |
setId(int id)
Set ID. |
void |
setId(java.lang.String id)
Set ID. |
void |
setStack(java.lang.String stack)
Set protocol stack. |
java.lang.String |
toString()
|
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 |
Constructor Detail |
---|
public Connection()
public Connection(Version version, java.lang.String stack)
version
- versionstack
- protocol stackpublic Connection(Version version, java.lang.String stack, ConnectionType conntype)
version
- versionstack
- protocol stackconntype
- connection typeMethod Detail |
---|
public java.lang.String getStack()
public void setStack(java.lang.String stack)
stack
- protocol stackpublic ConnectionType getConntype()
public void setId(java.lang.String id)
id
- idpublic void setId(int id)
id
- idpublic Connection duplicate()
Duplicatable
duplicate
in interface Duplicatable
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 |