|
|||||||||
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.BoxPalette
public class BoxPalette
Class BoxPalette represents a palette of hardware box.
Constructor Summary | |
---|---|
BoxPalette()
Create instance of BoxPalette. |
|
BoxPalette(java.lang.String name,
Version version)
Create instance of BoxPalette. |
Method Summary | |
---|---|
void |
addBox(Box box)
Add box. |
BoxPalette |
duplicate()
Duplicate object. |
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.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 |
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 BoxPalette()
public BoxPalette(java.lang.String name, Version version)
name
- nameversion
- versionMethod Detail |
---|
public java.lang.String getName()
getName
in class PaletteBase
public java.util.List<Box> getBoxes()
public void addBox(Box box)
box
- boxpublic void removeBox(Box box)
box
- boxpublic BoxPalette 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 |