Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.metacosm.util
Class RelativeModifier  view RelativeModifier download RelativeModifier.java

java.lang.Object
  extended byorg.metacosm.util.RelativeModifier
All Implemented Interfaces:
org.metacosm.framework.persistence.Persistent, java.io.Serializable

public final class RelativeModifier
extends java.lang.Object
implements org.metacosm.framework.persistence.Persistent

A RelativeModifier modifies the value of a Property. It doesn't completly change it by affecting a new value (it would be an AbsoluteModifier in this case), but apply some operation on the current value to give the new one.


Field Summary
private  java.lang.Object value
           
 
Constructor Summary
RelativeModifier(java.lang.Object value)
           
 
Method Summary
 java.lang.Object getValue()
           
 void load(java.io.InputStream is)
          Loads from the stream.
 void save(java.io.OutputStream os)
          Saves on the stream.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private java.lang.Object value
Constructor Detail

RelativeModifier

public RelativeModifier(java.lang.Object value)
                 throws java.lang.IllegalArgumentException
Method Detail

getValue

public java.lang.Object getValue()

save

public void save(java.io.OutputStream os)
          throws java.io.IOException
Description copied from interface: org.metacosm.framework.persistence.Persistent
Saves on the stream.

Specified by:
save in interface org.metacosm.framework.persistence.Persistent

load

public void load(java.io.InputStream is)
          throws java.io.IOException
Description copied from interface: org.metacosm.framework.persistence.Persistent
Loads from the stream.

Specified by:
load in interface org.metacosm.framework.persistence.Persistent

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).