|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cumt.model.IdentifiedObject
org.cumt.model.PropertyAwareObject
org.cumt.model.BaseModelNode
public class BaseModelNode
Base class for model objects.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTES
|
static java.lang.String |
DESCRIPTION
|
static java.lang.String |
IGNORED_ON_GENERATION
|
static java.lang.String |
NAME
|
| Constructor Summary | |
|---|---|
BaseModelNode()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
java.lang.String |
getAttribute(java.lang.String key)
Retrieves an attribute given its name |
java.util.Set<java.lang.String> |
getAttributeNames()
Retrieves the attribute names |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns the map of arbitrary attributes. |
java.util.Date |
getCreationDate()
Returns the date when the object has been created |
protected java.lang.String |
getDefaultName()
Creates the default name for the object. |
java.lang.String |
getDescription()
|
java.lang.String |
getName()
|
Container |
getParent()
|
boolean |
isIgnoredOnGeneration()
|
void |
removeAttribute(java.lang.String attribute)
Removes an attribute given its name |
void |
setAttribute(java.lang.String key,
java.lang.String value)
Sets an arbitrary text attribute |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
Sets a map of arbitrary attributes |
void |
setDescription(java.lang.String description)
|
void |
setIgnoredOnGeneration(boolean ignoredOnGeneration)
|
void |
setName(java.lang.String name)
|
void |
setParent(Container parent)
|
java.lang.String |
toString()
|
| Methods inherited from class org.cumt.model.PropertyAwareObject |
|---|
addPropertyChangeListener, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class org.cumt.model.IdentifiedObject |
|---|
equals, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
public static final java.lang.String ATTRIBUTES
public static final java.lang.String DESCRIPTION
public static final java.lang.String IGNORED_ON_GENERATION
| Constructor Detail |
|---|
public BaseModelNode()
| Method Detail |
|---|
protected java.lang.String getDefaultName()
public java.lang.String getName()
public void setName(java.lang.String name)
public void setAttribute(java.lang.String key,
java.lang.String value)
key - the attribute namevalue - the valueattributespublic void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes - a map of text attributesattributespublic java.util.Map<java.lang.String,java.lang.String> getAttributes()
attributespublic java.lang.String getAttribute(java.lang.String key)
key - the attribute to look for
attributespublic java.util.Set<java.lang.String> getAttributeNames()
attributespublic void removeAttribute(java.lang.String attribute)
key - the attribute to removeattributespublic java.util.Date getCreationDate()
creationDatepublic Container getParent()
parentpublic void setParent(Container parent)
parentpublic java.lang.String getDescription()
descriptionpublic void setDescription(java.lang.String description)
description - a description for the objectdescriptionpublic boolean isIgnoredOnGeneration()
ignoredOnGenerationpublic void setIgnoredOnGeneration(boolean ignoredOnGeneration)
ignoredOnGenerationpublic java.lang.String toString()
toString in class IdentifiedObjectpublic java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||