tauZaman
v0.1

tauzaman.io
Class FieldsBuilder

java.lang.Object
  |
  +--tauzaman.io.FieldsBuilder

public class FieldsBuilder
extends java.lang.Object

FieldsBuilder class builds Fields object of a Property. Given a Property, it parses its Format, and creates Field for each variable in Format. If there are ImportFormats it recursively request this class's service.

Status:
design complete, implementation complete

Field Summary
private  Fields fields
           
private  java.lang.StringBuffer newFormat
           
private  PropertyManager pm
           
private  Property property
           
 
Constructor Summary
protected FieldsBuilder(java.lang.String propertyName, java.net.URL url, PropertyManager pm)
          Constructs a FieldsBuilder object ready to form Fields.
 
Method Summary
protected  Fields formFields()
          Returns built Fields.
protected  Fields getFields()
          Returns Property's newly built Fields.
protected  java.lang.String getFormat()
          Returns Property's newly built Format's value.
protected  boolean getWhitespace()
          Returns whitespace characteristic of Property's Format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pm

private PropertyManager pm

property

private Property property

fields

private Fields fields

newFormat

private java.lang.StringBuffer newFormat
Constructor Detail

FieldsBuilder

protected FieldsBuilder(java.lang.String propertyName,
                        java.net.URL url,
                        PropertyManager pm)
                 throws IOException
Constructs a FieldsBuilder object ready to form Fields.

Parameters:
propertyName - name of the Property whose Fields will be formed
url - URL of the Property whose Fields will be formed
pm - PropertyManager that will be used for Property services
Throws:
IOException - if any abnormal condition occurs when building Fields. These are related to Property exceptions
Method Detail

formFields

protected Fields formFields()
                     throws IOException
Returns built Fields.

Returns:
Fields
Throws:
IOException - if any abnormal condition occurs when building Fields. These are related to parsing and building problems of Fields

getFormat

protected java.lang.String getFormat()
Returns Property's newly built Format's value.

Returns:
String Format's value

getFields

protected Fields getFields()
Returns Property's newly built Fields.

Returns:
Fields

getWhitespace

protected boolean getWhitespace()
Returns whitespace characteristic of Property's Format.

Returns:
boolean whitespace characteristic of Format

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project