tauZaman
v0.1

tauzaman.field
Class Field

java.lang.Object
  |
  +--tauzaman.field.Field
All Implemented Interfaces:
java.lang.Cloneable

public class Field
extends java.lang.Object
implements java.lang.Cloneable

Field class represents a single Field. A Field consists of two components;

FieldInfo and Value. FieldInfo, which is fetched from the content of a Property Specification file, contains all the information that is sufficient to represent a Field; String name of this Field, String variable name that is used for this Field in Format of related Property and URL of FVSupport, which will be used calculate value of this Field.

Value is a long and contains Field Value, which is fetched from the content of a string temporal constant that is originally passed from one of the temporal data types; Instant, Period, Interval.

See Also:
Calendar, Property, Instant, Period, Interval
Status:
design complete, implementation complete

Field Summary
private  boolean dirty
          A boolean marker, which is set true when a useful information found in parsed temporal constant that matches with this Field
private  FieldInfo fieldInfo
          FieldInfo of this Field get from related Property
private  long value
          long value(index) of this Field
 
Constructor Summary
Field(FieldInfo fieldInfo)
          Constructs Field object.
 
Method Summary
 java.lang.Object clone()
          Returns cloned version of this Field object.
 java.lang.String getName()
          Returns name of this Field.
 java.net.URL getUrl()
          Returns URL of FVSupport of this Field.
 long getValue()
          Returns value of this Field.
 java.lang.String getVariableName()
          Returns variable name of this Field.
 boolean isDirty()
          Return true if this Field is marked.
 void setAsDirty()
          Sets this Field as being used.
 void setValue(long value)
          Sets value of this Field to a given value.
 java.lang.String toString()
          Returns String representation of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fieldInfo

private FieldInfo fieldInfo
FieldInfo of this Field get from related Property


dirty

private boolean dirty
A boolean marker, which is set true when a useful information found in parsed temporal constant that matches with this Field


value

private long value
long value(index) of this Field

Constructor Detail

Field

public Field(FieldInfo fieldInfo)
Constructs Field object.

Parameters:
fieldInfo - a FieldInfo that includes all Field information for this Field
Method Detail

clone

public java.lang.Object clone()
Returns cloned version of this Field object.

Overrides:
clone in class java.lang.Object
Returns:
clone of this Field object

getValue

public long getValue()
Returns value of this Field.

Returns:
long value

setValue

public void setValue(long value)
Sets value of this Field to a given value.


getVariableName

public java.lang.String getVariableName()
Returns variable name of this Field. This value is fetched from FieldInfo that this Field contains.


getName

public java.lang.String getName()
Returns name of this Field. This value is fetched from FieldInfo that this Field contains.


getUrl

public java.net.URL getUrl()
Returns URL of FVSupport of this Field. This value is fetched from FieldInfo that this Field contains.


isDirty

public boolean isDirty()
Return true if this Field is marked. False o.w.

Returns:
boolean true if this Field is marked. False o.w.

setAsDirty

public void setAsDirty()
Sets this Field as being used.


toString

public java.lang.String toString()
Returns String representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
A String representing this object

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project