org.equanda.export
Class ExportField

java.lang.Object
  extended by org.equanda.export.ExportField

public class ExportField
extends Object

Representation of a field which needs to be exported

Author:
Joachim Van der Auwera

Field Summary
protected  ExportEvaluatorWithCurrent evaluator
           
protected  String name
           
protected  Object objectToExport
           
protected  Object value
           
protected  Class valueType
           
 
Constructor Summary
ExportField(Object object)
          Create a new ExportField container, for the given object to export
 
Method Summary
 String getName()
           
 Object getValue()
           
 Class getValueType()
           
 void setEvaluator(ExportEvaluatorWithCurrent evaluator)
          Set the evaluator object
 boolean setField(String description)
          Set the field which needs to be represented, returns true when there was something (description not null or empty) An exception is thrown when the field cannot be evaluated, does not exist or similar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectToExport

protected Object objectToExport

evaluator

protected ExportEvaluatorWithCurrent evaluator

name

protected String name

value

protected Object value

valueType

protected Class valueType
Constructor Detail

ExportField

public ExportField(Object object)
Create a new ExportField container, for the given object to export

Parameters:
object - object to export
Method Detail

setEvaluator

public void setEvaluator(ExportEvaluatorWithCurrent evaluator)
Set the evaluator object

Parameters:
evaluator - evaluator object

setField

public boolean setField(String description)
                 throws ExportException
Set the field which needs to be represented, returns true when there was something (description not null or empty) An exception is thrown when the field cannot be evaluated, does not exist or similar.

Parameters:
description - description fir the field to be evaluated
Returns:
true when replacing a not-null, not-empty value
Throws:
ExportException - oops

getName

public String getName()

getValue

public Object getValue()

getValueType

public Class getValueType()


Copyright © 2007-2009. All Rights Reserved.