joperties.interpreters.defaultinterpreters
Class GradientPaintInterpreter

java.lang.Object
  extended by joperties.interpreters.AbstractInterpreter<java.awt.GradientPaint>
      extended by joperties.interpreters.defaultinterpreters.GradientPaintInterpreter

public class GradientPaintInterpreter
extends AbstractInterpreter<java.awt.GradientPaint>

Author:
Savvas Dalkitsis

Constructor Summary
GradientPaintInterpreter()
           
 
Method Summary
 java.lang.String encode(java.awt.GradientPaint obj)
          This method encodes the provided object to a string.
 java.lang.Class<java.awt.GradientPaint> getClassType()
          This method returns the class that this interpreted handles.
 java.lang.String getDescription()
          This method returns a description of the way this interpreter interprets and encodes the objects.
 java.awt.GradientPaint interpret(java.lang.String string)
          This method will interpret the provided string as an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientPaintInterpreter

public GradientPaintInterpreter()
Method Detail

encode

public java.lang.String encode(java.awt.GradientPaint obj)
                        throws EncodingException,
                               NoApropriateInterpeterFoundException
Description copied from class: AbstractInterpreter
This method encodes the provided object to a string.

Specified by:
encode in class AbstractInterpreter<java.awt.GradientPaint>
Parameters:
obj - The object to encode as a string.
Returns:
The encoded string which corresponds to the provided object.
Throws:
EncodingException - If there was an error encoding the string.
NoApropriateInterpeterFoundException - If the method needs to call on other interpreters and none is found.

getClassType

public java.lang.Class<java.awt.GradientPaint> getClassType()
Description copied from class: AbstractInterpreter
This method returns the class that this interpreted handles.

Specified by:
getClassType in class AbstractInterpreter<java.awt.GradientPaint>
Returns:
The class that this interpreted handles.

interpret

public java.awt.GradientPaint interpret(java.lang.String string)
                                 throws InterpretationException,
                                        NoApropriateInterpeterFoundException
Description copied from class: AbstractInterpreter
This method will interpret the provided string as an object.

Specified by:
interpret in class AbstractInterpreter<java.awt.GradientPaint>
Parameters:
string - The string to interpret as an object.
Returns:
An object which corresponds to the provided string.
Throws:
InterpretationException - If there was an error interpreting the string.
NoApropriateInterpeterFoundException - If the method needs to call on other interpreters and none is found.

getDescription

public java.lang.String getDescription()
Description copied from class: AbstractInterpreter
This method returns a description of the way this interpreter interprets and encodes the objects. Used as reference.

Specified by:
getDescription in class AbstractInterpreter<java.awt.GradientPaint>
Returns:
A description of the way this interpreter interprets and encodes the objects. Used as reference.