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 Objectcopy()Returns a deep copy of this instance.StringgetString()Returns the value of this object.ObjectgetValue()Returns the value of this attribute, i.e.voidsetDefaultValue()The attribute's value is set so that itsgetValue()method will not returnnull.voidsetString(String value)Sets the value of this object.Methods inherited from class org.graffiti.attributes.StringAttribute
getTypedStringAttribute, getTypedStringAttribute, putAttributeType, toString, toXMLStringMethods 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:StringAttributeSets the value of this object. TheListenerManageris informed by the methodsetValue().- Overrides:
 setStringin classStringAttribute- Parameters:
 value- the new value of this object.
 - 
getString
Description copied from class:StringAttributeReturns the value of this object.- Overrides:
 getStringin classStringAttribute- Returns:
 - the value of this object.
 
 - 
setDefaultValue
public void setDefaultValue()Description copied from interface:AttributeThe attribute's value is set so that itsgetValue()method will not returnnull.- Specified by:
 setDefaultValuein interfaceAttribute- Overrides:
 setDefaultValuein classStringAttribute- See Also:
 Attribute.setDefaultValue()
 - 
getValue
Description copied from class:StringAttributeReturns the value of this attribute, i.e. contained Sting object.- Specified by:
 getValuein interfaceAttribute- Specified by:
 getValuein interfaceDisplayable- Overrides:
 getValuein classStringAttribute- Returns:
 - the value of the attribute, i.e. contained String object.
 
 - 
copy
Description copied from class:StringAttributeReturns a deep copy of this instance.- Specified by:
 copyin interfaceDeepCopy- Overrides:
 copyin classStringAttribute- Returns:
 - a deep copy of this instance.
 
 
 -