tauZaman
v0.1

tauzaman.field
Class Fields

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

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

Fields class represents a list of Fields. In other words Fields is simply the unparsed version of a time-stamp.

If a Field exists in Fields, it means it is valid. Otherwise it means temporal constant that is being parsed does not have that component in it.

An element of Fields can be either a Field or a Fields object. As an example;

    A Period is defined with two period delimiters and
    two Instants. That means there are FieldInfos
    in corresponding Property
    for period delimiters and also for each Instants.
    Fields that are derived from FieldInfos for
    Instants should be kept seperately from the Fields
    that are derived from FieldInfos for period delimiters.
    So, a Fields object will contain Fields for
    period delimiters and also two Fields objects for
    two Instants.
  
This is a metamorphic structure

Property Period Input Format

See Also:
Field, FieldInfo, Instant
Status:
design complete, implementation complete

Field Summary
private  java.util.Vector fields
          A vector that is a list of Fields.
private  java.lang.String name
           
 
Constructor Summary
Fields(java.lang.String name)
          Constructs a Fields object, which allocates memory for a list that contains a set of Fields.
 
Method Summary
 void addElement(java.lang.Object aFieldsElement)
          Adds a Field or a Fields to this Fields.
 java.lang.Object clone()
          Returns a cloned version of this Fields.
 Field getFieldByName(java.lang.String name)
          Returns the first Field with a given name that this Fields contains.
 Field getFieldByVariableName(java.lang.String varName)
          Returns the first unmarked (clean) Field with a given variable name that this Fields contains.
 Field[] getImmediateField()
          Returns an array of Field, which are immediate Field objects of this Fields.
 Fields[] getImmediateFields()
          Returns an array of Fields, which are immediate Fields objects of this Fields.
 java.lang.String getName()
          Returns name of this Fields.
 java.lang.String toString()
          Returns String representation of this Fields.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fields

private java.util.Vector fields
A vector that is a list of Fields.


name

private java.lang.String name
Constructor Detail

Fields

public Fields(java.lang.String name)
Constructs a Fields object, which allocates memory for a list that contains a set of Fields.

Parameters:
name - String name of corresponding Property name that this Fields is formed
Method Detail

clone

public java.lang.Object clone()
Returns a cloned version of this Fields. It produces a deep copy of this Fields.

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

addElement

public void addElement(java.lang.Object aFieldsElement)
Adds a Field or a Fields to this Fields.

Parameters:
aFieldsElement - which might either be Fields or Field

getName

public java.lang.String getName()
Returns name of this Fields.

Returns:
String name of this Fields

getFieldByVariableName

public Field getFieldByVariableName(java.lang.String varName)
Returns the first unmarked (clean) Field with a given variable name that this Fields contains.

Returns:
Field that is not dirty and has given variable name. Returns null if not exists

getFieldByName

public Field getFieldByName(java.lang.String name)
Returns the first Field with a given name that this Fields contains.

Returns:
Field that has given name. Returns null if not exists.

getImmediateFields

public Fields[] getImmediateFields()
Returns an array of Fields, which are immediate Fields objects of this Fields.

Returns:
array of Fields

getImmediateField

public Field[] getImmediateField()
Returns an array of Field, which are immediate Field objects of this Fields.

Returns:
array of Field

toString

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

Overrides:
toString in class java.lang.Object
Returns:
String representation of this Fields

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project