Package org.graffiti.attributes
Class ObjectAttribute
java.lang.Object
org.graffiti.attributes.AbstractAttribute
org.graffiti.attributes.StringAttribute
org.graffiti.attributes.ObjectAttribute
- All Implemented Interfaces:
Attribute
,DeepCopy
,Displayable
public class ObjectAttribute extends StringAttribute
- Author:
- Christian Klukas To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ObjectAttribute(String id)
-
Method Summary
Modifier and Type Method Description Object
copy()
Returns a deep copy of this instance.String
getString()
Returns the value of this object.Object
getValue()
Returns the value of this attribute, i.e.void
setDefaultValue()
The attribute's value is set so that itsgetValue()
method will not returnnull
.void
setString(String value)
Sets the value of this object.Methods inherited from class org.graffiti.attributes.StringAttribute
getTypedStringAttribute, getTypedStringAttribute, putAttributeType, toString, toXMLString
Methods inherited from class org.graffiti.attributes.AbstractAttribute
addEdgeAttributeType, addNodeAttributeType, getAttributable, getDescription, getIcon, getId, getName, getParent, getPath, getTypedAttribute, isDeleted, isTypedAttributeFromID, setDeleted, setDescription, setId, setParent, setValue, toString
-
Constructor Details
-
ObjectAttribute
- Parameters:
id
-- Throws:
IllegalIdException
-
-
Method Details
-
setString
Description copied from class:StringAttribute
Sets the value of this object. TheListenerManager
is informed by the methodsetValue()
.- Overrides:
setString
in classStringAttribute
- Parameters:
value
- the new value of this object.
-
getString
Description copied from class:StringAttribute
Returns the value of this object.- Overrides:
getString
in classStringAttribute
- Returns:
- the value of this object.
-
setDefaultValue
public void setDefaultValue()Description copied from interface:Attribute
The attribute's value is set so that itsgetValue()
method will not returnnull
.- Specified by:
setDefaultValue
in interfaceAttribute
- Overrides:
setDefaultValue
in classStringAttribute
- See Also:
Attribute.setDefaultValue()
-
getValue
Description copied from class:StringAttribute
Returns the value of this attribute, i.e. contained Sting object.- Specified by:
getValue
in interfaceAttribute
- Specified by:
getValue
in interfaceDisplayable
- Overrides:
getValue
in classStringAttribute
- Returns:
- the value of the attribute, i.e. contained String object.
-
copy
Description copied from class:StringAttribute
Returns a deep copy of this instance.- Specified by:
copy
in interfaceDeepCopy
- Overrides:
copy
in classStringAttribute
- Returns:
- a deep copy of this instance.
-