tauZaman
v0.1

tauzaman.property
Class FieldInfo

java.lang.Object
  |
  +--tauzaman.property.FieldInfo

public class FieldInfo
extends java.lang.Object

FieldInfo class keeps the content of an XML element, called fieldInfo, in a Property specification file.

fieldInfo element contains attributes that store a Field Name, a Format Variable Name and a Field Value Table|Function name.

XML Representation of Properties

See Also:
Property, Field, Fields
Status:
design complete, implementation complete

Field Summary
private  java.lang.String name
          Name of the Field.
private  java.net.URL using
          URL of the Field Value service (name of the table or function) to be used.
private  java.lang.String variable
          Variable name that is stored in format string.
 
Constructor Summary
FieldInfo(org.w3c.dom.Element root, java.util.Hashtable fvMapper, java.net.URL url)
          Constructs a FieldInfo object, from given DOM node parsed from Property Specification file.
 
Method Summary
private  void formFieldInfo(org.w3c.dom.Element root, java.util.Hashtable fvMapper, java.net.URL url)
          Initializes this FieldInfo from DOM Node, which points to a fieldInfo element in the Property Specification file.
 java.lang.String getFieldInfoName()
          Returns the Field Name of this FieldInfo
 java.net.URL getFVSUrl()
          Returns the URL of the FVS service table|function.
 java.lang.String getVariableName()
          Returns the name of the variable
 java.lang.String toString()
          toString method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

variable

private java.lang.String variable
Variable name that is stored in format string.


name

private java.lang.String name
Name of the Field.


using

private java.net.URL using
URL of the Field Value service (name of the table or function) to be used.

Constructor Detail

FieldInfo

public FieldInfo(org.w3c.dom.Element root,
                 java.util.Hashtable fvMapper,
                 java.net.URL url)
          throws PropertyFormationException
Constructs a FieldInfo object, from given DOM node parsed from Property Specification file.

Parameters:
root - DOM Element
fvMapper - A Hashtable, which maps field value support labels to their urls. This information is passed by PropertyRepository since this information resides in Property specification file (as helper) rather than in individual Properties.
url - URL of Property Specification file this ImportFormat is gotten
Throws:
PropertyFormationException - if any problem occurs when parsing the property specification file
Method Detail

formFieldInfo

private void formFieldInfo(org.w3c.dom.Element root,
                           java.util.Hashtable fvMapper,
                           java.net.URL url)
                    throws PropertyFormationException
Initializes this FieldInfo from DOM Node, which points to a fieldInfo element in the Property Specification file.

Parameters:
root - DOM Element
fvMapper - A Hashtable, which maps field value support labels to their urls. This information is passed by PropertyRepository since this information resides in Property specification file (as helper) rather than in individual Properties.
url - URL of Property Specification file this ImportFormat is gotten
Throws:
PropertyFormationException - if any problem occurs when parsing the property specification file

getVariableName

public java.lang.String getVariableName()
Returns the name of the variable

Returns:
name of the field varible

getFieldInfoName

public java.lang.String getFieldInfoName()
Returns the Field Name of this FieldInfo

Returns:
name of the Field
See Also:
Field

getFVSUrl

public java.net.URL getFVSUrl()
Returns the URL of the FVS service table|function.

Returns:
URL url of the table/function that this FieldInfo will use

toString

public java.lang.String toString()
toString method

Overrides:
toString in class java.lang.Object
Returns:
string representation of this object

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project