|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.field.Fields
Fields
class represents a list of Field
s.
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;
AThis is a metamorphic structurePeriod
is defined with two period delimiters and twoInstant
s. That means there areFieldInfo
s in correspondingProperty
for period delimiters and also for eachInstant
s.Field
s that are derived fromFieldInfo
s forInstant
s should be kept seperately from theField
s that are derived fromFieldInfo
s for period delimiters. So, aFields
object will containField
s for period delimiters and also twoFields
objects for twoInstant
s.
Field
,
FieldInfo
,
Instant
Field Summary | |
private java.util.Vector |
fields
A vector that is a list of Field s. |
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 Field s. |
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 |
private java.util.Vector fields
Field
s.
private java.lang.String name
Constructor Detail |
public Fields(java.lang.String name)
Fields
object, which allocates memory for
a list that contains a set of Field
s.
name
- String name of corresponding Property
name that
this Fields
is formedMethod Detail |
public java.lang.Object clone()
Fields
. It produces
a deep copy of this Fields
.
clone
in class java.lang.Object
Fields
public void addElement(java.lang.Object aFieldsElement)
Field
or a Fields
to this
Fields
.
aFieldsElement
- which might either be Fields
or
Field
public java.lang.String getName()
Fields
.
Fields
public Field getFieldByVariableName(java.lang.String varName)
Field
with a given variable name
that this Fields
contains.
Field
that is not dirty and has given variable name. Returns null if
not existspublic Field getFieldByName(java.lang.String name)
Field
with a given name
that this Fields
contains.
Field
that has given name. Returns null if
not exists.public Fields[] getImmediateFields()
Fields
, which are immediate
Fields
objects of this Fields
.
Fields
public Field[] getImmediateField()
Field
, which are immediate
Field
objects of this Fields
.
Field
public java.lang.String toString()
Fields
.
toString
in class java.lang.Object
Fields
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |