|
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
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 | |
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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 fileMethod Detail |
public 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
Property
public void setCache(PropertyCache cache)
PropertyCache
object of this
Property
.
public boolean isSimpleType()
public java.lang.String getName()
Property
.
Property
public java.net.URL getUrl()
Property
.
Property
public java.lang.String getContent()
public FieldInfo[] getFieldInfos()
FieldInfo
public Format[] getFormats()
Format
public ImportFormat[] getImportFormats()
ImportFormat
public 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 |