org.grinvin.invariants.values

Class IntegerMatrixValueDelegate

Implemented Interfaces:
InvariantValueDelegate<T,extends,InvariantValue>

public class IntegerMatrixValueDelegate
extends AbstractInvariantValueDelegate<T,extends,InvariantValue>

Delegate for IntegerMatrixValues.

Method Summary

static IntegerMatrixValueDelegate
getInstance()
Class
getType()
void
initLabel(JLabel label, IntegerMatrixValue value)
IntegerMatrixValue
loadValue(Element element, Invariant invariant, String computerId, String computerVersion)
Should be overridden to load the actual value from a JDOM-element.
void
saveValue(Element element, IntegerMatrixValue integerMatrixValue)
Element
toElement()

Methods inherited from class org.grinvin.invariants.values.AbstractInvariantValueDelegate<T,extends,InvariantValue>

fromElement, fromElement_1_0, hasDetails, initLabel, load, loadValue, load_1_0, saveValue, showDetails, toElement

Method Details

getInstance

public static IntegerMatrixValueDelegate getInstance()

getType

public Class getType()
Specified by:
getType in interface InvariantValueDelegate<T,extends,InvariantValue>

initLabel

public void initLabel(JLabel label,
                      IntegerMatrixValue value)

loadValue

public IntegerMatrixValue loadValue(Element element,
                                    Invariant invariant,
                                    String computerId,
                                    String computerVersion)
            throws IOFormatException
Should be overridden to load the actual value from a JDOM-element. Clients should throw an IOFormatException when element is not in the correct format.
Overrides:
loadValue in interface AbstractInvariantValueDelegate<T,extends,InvariantValue>
Parameters:
element - JDOM element, which is known to be of type 'value'

saveValue

public void saveValue(Element element,
                      IntegerMatrixValue integerMatrixValue)

toElement

public Element toElement()