org.grinvin.invariants.values
Class AbstractInvariantValue
java.lang.Object
org.grinvin.invariants.values.AbstractInvariantValue
- InvariantValue
public abstract class AbstractInvariantValue
extends java.lang.Object
Wraps the result of an invariant computation and provides a
means to represent this result both as a string and an XML element.
AbstractInvariantValue
protected AbstractInvariantValue(InvariantType type)
AbstractInvariantValue
protected AbstractInvariantValue(InvariantType type,
InvariantComputer computer)
Create a value of the given type which was computed by the given invariant computer.
String toString
public @Override String toString()
getComputerId
public String getComputerId()
Return the ID of the computer that computed this value.
- getComputerId in interface InvariantValue
getComputerVersion
public String getComputerVersion()
Return the version of the computer that computed this value.
- getComputerVersion in interface InvariantValue
toText
public abstract String toText()
Convert this value to a string.
- toText in interface InvariantValue