|
|||||||||
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.ComponentPalette
public class ComponentPalette
Class ComponentPalette represents a palette of software components.
Constructor Summary | |
---|---|
ComponentPalette()
Create instance of ComponentPalette. |
|
ComponentPalette(java.lang.String name,
Version version)
Create instance of ComponentPalette. |
Method Summary | |
---|---|
void |
addComponent(Component c)
|
ComponentPalette |
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<Component> |
getComponents()
Get components. |
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 |
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 ComponentPalette()
public ComponentPalette(java.lang.String name, Version version)
name
- nameversion
- versionMethod Detail |
---|
public java.lang.String getName()
getName
in class PaletteBase
public java.util.List<Component> getComponents()
public void addComponent(Component c)
public ComponentPalette 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 |