Package de.xima.fc.common.graphdot
Class Assignment
- java.lang.Object
 - 
- de.xima.fc.common.graphdot.Assignment
 
 
- 
- All Implemented Interfaces:
 IGraphDotElement,Serializable,Map.Entry<CharSequence,Object>
public final class Assignment extends Object implements IGraphDotElement, Map.Entry<CharSequence,Object>
An assignment from a name to a value."some-name" = "some-value"
- Since:
 - 8.2.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Assignment(CharSequence name, Object value)Creates a new assignment. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)CharSequencegetKey()CharSequencegetName()ObjectgetValue()inthashCode()ObjectsetValue(Object value)StringtoGraphDotString()Creates a string in the graph dot language representing this element.StringtoString()voidwrite(GraphDotModelWriter writer)Writes this element to the given writer, as a string in the graph dot language representing this element.- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.common.graphdot.IGraphDotElement
toGraphDotString 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
Assignment
public Assignment(CharSequence name, Object value)
Creates a new assignment.- Parameters:
 name- Name of the property.value- Value of the property.
 
 - 
 
- 
Method Detail
- 
equals
public boolean equals(Object obj)
 
- 
getKey
public CharSequence getKey()
- Specified by:
 getKeyin interfaceMap.Entry<CharSequence,Object>
 
- 
getName
public CharSequence getName()
- Returns:
 - Name of the property.
 
 
- 
getValue
public Object getValue()
- Specified by:
 getValuein interfaceMap.Entry<CharSequence,Object>- Returns:
 - Value of the property.
 
 
- 
hashCode
public int hashCode()
 
- 
setValue
public Object setValue(Object value)
- Specified by:
 setValuein interfaceMap.Entry<CharSequence,Object>
 
- 
write
public void write(GraphDotModelWriter writer) throws IOException
Description copied from interface:IGraphDotElementWrites this element to the given writer, as a string in the graph dot language representing this element.- Specified by:
 writein interfaceIGraphDotElement- Parameters:
 writer- Writer to write to.- Throws:
 IOException- When the writer could not be written to.
 
- 
toGraphDotString
public final String toGraphDotString()
Description copied from interface:IGraphDotElementCreates a string in the graph dot language representing this element.- Specified by:
 toGraphDotStringin interfaceIGraphDotElement- Returns:
 - The graph dot representation of this graph dot element.
 
 
 - 
 
 -