|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--tauzaman.property.Property
Property class is the representation of a single property
Properties are two types:
<property name = "..." value = "..." />
<property name = "..." > <value> ... </value> </property>
Property,
FieldInfo,
ImportFormat,
Format| Field Summary | |
private PropertyCache |
cache
Cached version of this Property's format which includes
its parsed Fields, newFormat and whitespace attribute. |
private java.lang.String |
content
String content of this Property in case its type is simple |
private FieldInfo[] |
fieldInfos
List of field infos in case this Property has a complex type |
private Format[] |
formats
List of formats in case this Property has a complex type |
private ImportFormat[] |
importFormats
List of imported formats in case this Property has a complex type |
private boolean |
isSimple
Whether type of this Property is a simple one or not |
private java.lang.String |
name
name of this Property |
private java.net.URL |
url
url of this Property |
| Constructor Summary | |
Property(java.lang.String name,
java.net.URL url,
org.w3c.dom.Element root,
java.util.Hashtable fvMapper)
Constructs a Property, from a given DOM Node,
parsed from Property Specification file. |
|
| Method Summary | |
private void |
formProperty(org.w3c.dom.Element root,
java.util.Hashtable fvMapper)
Initializes this Property from DOM Node, which points to
a property element in the Property Specification file. |
PropertyCache |
getCache()
Returns PropertyCache object of this
Property. |
java.lang.String |
getContent()
If simple type then return content, o.w. return null. |
FieldInfo[] |
getFieldInfos()
Return the field value List |
Format[] |
getFormats()
Return the format list |
ImportFormat[] |
getImportFormats()
Return the import format list |
java.lang.String |
getName()
Returns the string name of this Property. |
java.net.URL |
getUrl()
Returns URL of this Property. |
boolean |
hasCache()
Returns true if this Property has already been loaded for
Input/Output reasons. |
boolean |
isSimpleType()
Returns the type of this Value |
void |
setCache(PropertyCache cache)
Sets PropertyCache object of this
Property. |
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 |
private java.lang.String name
Property
private java.net.URL url
Property
private boolean isSimple
Property is a simple one or not
private java.lang.String content
Property in case its type is simple
private Format[] formats
Property has a complex type
private FieldInfo[] fieldInfos
Property has a complex type
private ImportFormat[] importFormats
Property has a complex type
private PropertyCache cache
Property's format which includes
its parsed Fields, newFormat and whitespace attribute. But of course,
caching has also its side effects as every caching behavior. For example,
if a recursive Format is updated this previous version of it
will still be used by this cache.
| Constructor Detail |
public Property(java.lang.String name,
java.net.URL url,
org.w3c.dom.Element root,
java.util.Hashtable fvMapper)
throws PropertyFormationException
Property, from a given DOM Node,
parsed from Property Specification file.
root - a DOM node of parsed Property Specification filefvMapper - 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.
PropertyFormationException - if any problem occurs
when parsing the property specification file| Method Detail |
private void formProperty(org.w3c.dom.Element root,
java.util.Hashtable fvMapper)
throws PropertyFormationException
Property from DOM Node, which points to
a property element in the Property Specification file.
root - root Element of a single parsed Property xml
specificationfvMapper - 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.
PropertyFormationException - if any problem occurs
when parsing the property specification filepublic boolean hasCache()
Property has already been loaded for
Input/Output reasons.
PropertyCache object of this
Property. False otherwise.public PropertyCache getCache()
PropertyCache object of this
Property.
PropertyCache object of this
Propertypublic void setCache(PropertyCache cache)
PropertyCache object of this
Property.
public boolean isSimpleType()
public java.lang.String getName()
Property.
Propertypublic java.net.URL getUrl()
Property.
Propertypublic java.lang.String getContent()
public FieldInfo[] getFieldInfos()
FieldInfopublic Format[] getFormats()
Formatpublic ImportFormat[] getImportFormats()
ImportFormatpublic java.lang.String toString()
toString in class java.lang.Object
|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||