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 boolean
equals(Object obj)
CharSequence
getKey()
CharSequence
getName()
Object
getValue()
int
hashCode()
Object
setValue(Object value)
String
toGraphDotString()
Creates a string in the graph dot language representing this element.String
toString()
void
write(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:
getKey
in interfaceMap.Entry<CharSequence,Object>
-
getName
public CharSequence getName()
- Returns:
- Name of the property.
-
getValue
public Object getValue()
- Specified by:
getValue
in interfaceMap.Entry<CharSequence,Object>
- Returns:
- Value of the property.
-
hashCode
public int hashCode()
-
setValue
public Object setValue(Object value)
- Specified by:
setValue
in interfaceMap.Entry<CharSequence,Object>
-
write
public void write(GraphDotModelWriter writer) throws IOException
Description copied from interface:IGraphDotElement
Writes this element to the given writer, as a string in the graph dot language representing this element.- Specified by:
write
in 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:IGraphDotElement
Creates a string in the graph dot language representing this element.- Specified by:
toGraphDotString
in interfaceIGraphDotElement
- Returns:
- The graph dot representation of this graph dot element.
-
-