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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()getName()getValue()inthashCode()final StringCreates a string in the graph dot language representing this element.final 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 interface IGraphDotElement
toGraphDotString
-
Constructor Details
-
Assignment
Creates a new assignment.- Parameters:
name- Name of the property.value- Value of the property.
-
-
Method Details
-
equals
-
getKey
- Specified by:
getKeyin interfaceMap.Entry<CharSequence, Object>
-
getName
- Returns:
- Name of the property.
-
getValue
- Specified by:
getValuein interfaceMap.Entry<CharSequence, Object>- Returns:
- Value of the property.
-
hashCode
-
setValue
-
write
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
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.
-
toString
-