|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 valueattributes
public void setAttributes(java.util.Map<java.lang.String,java.lang.String> attributes)
attributes
- a map of text attributesattributes
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
attributes
public java.lang.String getAttribute(java.lang.String key)
key
- the attribute to look for
attributes
public java.util.Set<java.lang.String> getAttributeNames()
attributes
public void removeAttribute(java.lang.String attribute)
key
- the attribute to removeattributes
public java.util.Date getCreationDate()
creationDate
public Container getParent()
parent
public void setParent(Container parent)
parent
public java.lang.String getDescription()
description
public void setDescription(java.lang.String description)
description
- a description for the objectdescription
public boolean isIgnoredOnGeneration()
ignoredOnGeneration
public void setIgnoredOnGeneration(boolean ignoredOnGeneration)
ignoredOnGeneration
public java.lang.String toString()
toString
in class IdentifiedObject
public 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 |