tauZaman
v0.1

tauzaman.property
Class PropertyCache

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

public class PropertyCache
extends java.lang.Object

PropertyCache class represents cached version of a Property. Basically, it includes parsed Fields of a Property using its Format, ImportFormat and FieldInfo members. It also has String content of Format either as a DOM or as a String.

It worthes to note that String or DOM parsed Format might be produced by using other Format pointed by ImportFormats in this Property.

See Also:
Input, Property, Format, ImportFormat, FieldInfo, Fields

Field Summary
private  Fields fields
          Fields object that is cached
private  org.w3c.dom.Element formatDOM
          DOM parsed version of produced Format of cached Property
private  java.lang.String formatString
          String version of produced Format of cached Property
private  boolean whitespace
          whitespace characteristic of Format
 
Constructor Summary
PropertyCache(Fields fields, org.w3c.dom.Element formatDOM, java.lang.String formatString, boolean whitespace)
          Constructs a PropertyCache object.
 
Method Summary
 Fields getFields()
          Returns cached Fields.
 org.w3c.dom.Element getFormatDOM()
          Returns cached Format as DOM.
 java.lang.String getFormatString()
          Returns cached Format as String.
 boolean getWhitespace()
          Returns whitespace characteristic of cached Format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fields

private Fields fields
Fields object that is cached


formatDOM

private org.w3c.dom.Element formatDOM
DOM parsed version of produced Format of cached Property


formatString

private java.lang.String formatString
String version of produced Format of cached Property


whitespace

private boolean whitespace
whitespace characteristic of Format

Constructor Detail

PropertyCache

public PropertyCache(Fields fields,
                     org.w3c.dom.Element formatDOM,
                     java.lang.String formatString,
                     boolean whitespace)
Constructs a PropertyCache object.

Parameters:
fields - Fields that is produced from this Property
formatDOM - DOM parsed version of produced Format of cached Property
formatString - String version of produced Format of cached Property
whitespace - whitespace characteristic of Format
Method Detail

getFields

public Fields getFields()
Returns cached Fields.

Returns:
Fields object

getFormatDOM

public org.w3c.dom.Element getFormatDOM()
Returns cached Format as DOM.

Returns:
DOM version of Format

getFormatString

public java.lang.String getFormatString()
Returns cached Format as String.

Returns:
String version of Format

getWhitespace

public boolean getWhitespace()
Returns whitespace characteristic of cached Format.

Returns:
whitespace characteristic of cached Format

tauZaman
v0.1

Submit a bug or feature

tauZaman is an open-source, publicly avaliable project