de.bsvrz.pua.prot.util
Class ImmutableResultValue

java.lang.Object
  extended by de.bsvrz.pua.prot.util.ResultValue
      extended by de.bsvrz.pua.prot.util.ImmutableResultValue
All Implemented Interfaces:
java.io.Serializable

public class ImmutableResultValue
extends ResultValue

Entspricht ResultValue, Änderungen des einmal im Konstruktor gesetzten Wertes werden jedoch verhindert.
Bei jedem Versuch, die abgelgeten Werte zu ändern, wird eine UnsupportedOperationException geworfen.

Version:
$Revision: 1.1 $ / $Date: 2008/01/22 16:38:06 $ / ($Author: yvonnes $)
Author:
beck et al. projects GmbH, Martin Hilgers
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class de.bsvrz.pua.prot.util.ResultValue
ResultValue.ResultValueOperation
 
Field Summary
 
Fields inherited from class de.bsvrz.pua.prot.util.ResultValue
children, INVALID_ID, value
 
Constructor Summary
ImmutableResultValue(ExpressionResult expressionResult)
           
 
Method Summary
 java.util.List<ResultValue> getChildren()
           
 ResultValue performOperation(ResultValue other, ResultValue.ResultValueOperation operation)
          Änderungen sind nicht erlaubt.
 void set(ExpressionResult result)
          Änderungen sind nicht erlaubt.
 void truncChildren(int i)
          Neue Wertzuweisungen sind nicht erlaubt.
 
Methods inherited from class de.bsvrz.pua.prot.util.ResultValue
cloneForAggregation, equals, getValue, hasData, isAtomar, isSummable, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmutableResultValue

public ImmutableResultValue(ExpressionResult expressionResult)
See Also:
ResultValue#ResultValue(ExpressionResult)
Method Detail

getChildren

public java.util.List<ResultValue> getChildren()
Overrides:
getChildren in class ResultValue
Returns:
Liefert eine nicht änderbare Liste der Kinder.

truncChildren

public void truncChildren(int i)
Neue Wertzuweisungen sind nicht erlaubt.

Overrides:
truncChildren in class ResultValue
Parameters:
i - Länge.
Throws:
java.lang.UnsupportedOperationException - Wird immer geworfen.

performOperation

public ResultValue performOperation(ResultValue other,
                                    ResultValue.ResultValueOperation operation)
Änderungen sind nicht erlaubt.

Overrides:
performOperation in class ResultValue
Parameters:
other - Rechter Operand.
operation - Operation.
Returns:
this
Throws:
java.lang.UnsupportedOperationException - Wird immer geworfen.

set

public void set(ExpressionResult result)
Änderungen sind nicht erlaubt. Setzt den Wert des Objekts.

Overrides:
set in class ResultValue
Parameters:
result - Wert. throw new UnsupportedOperationException("Änderungen sind nicht erlaubt.");


Copyright © 2005-2008 beck et al. projects GmbH All Rights Reserved.