tauZaman
v0.1

tauzaman.property
Class Format

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

public class Format
extends java.lang.Object

Format class represents a formatting information of an input or output temporal constant.

See Also:
Property, ImportFormat
Status:
design complete, implementation complete

Field Summary
private  java.lang.String formatString
          Content of the format
private  boolean formatWhitespace
          Determines whether this format is whitespace friendly or not if it is false then it is not whitespace friendly, o.w. it is true.
 
Constructor Summary
Format(org.w3c.dom.Element root)
          Constructs a Format object, from given DOM node parsed from Property Specification file.
 
Method Summary
private  void formFormat(org.w3c.dom.Element root)
          Initializes this Format from DOM Node, which points to a format element in the Property Specification file.
 java.lang.String getFormatString()
          Returns the formatString of this format
 boolean isFormatWhitespaceFriendly()
          Returns whether this format is whitespace friendly or not
 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

formatString

private java.lang.String formatString
Content of the format


formatWhitespace

private boolean formatWhitespace
Determines whether this format is whitespace friendly or not if it is false then it is not whitespace friendly, o.w. it is true.

Constructor Detail

Format

public Format(org.w3c.dom.Element root)
Constructs a Format object, from given DOM node parsed from Property Specification file.

Parameters:
root - DOM Element
Method Detail

formFormat

private void formFormat(org.w3c.dom.Element root)
Initializes this Format from DOM Node, which points to a format element in the Property Specification file.


isFormatWhitespaceFriendly

public boolean isFormatWhitespaceFriendly()
Returns whether this format is whitespace friendly or not

Returns:
whitespace friendly attribute of this Format

getFormatString

public java.lang.String getFormatString()
Returns the formatString of this format

Returns:
this Format as a string

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