|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--tauzaman.property.PropertyRepository
PropertyRepository
class manages a pool of Properties
.
For example:
PropertyRepository cr = new PropertyRepository(); // null means load every single Property in the url cr.loadProperty(new URL("http://www.eecs.wsu.edu/~burgun/defaultProperties.xml"), null);For now it does not have unloadProperty() behavior.
Property
Field Summary | |
private static java.lang.String[] |
propertyNames
All currently avaliable Property names |
private java.util.Hashtable |
propertyRepository
Hashtable, which has url and name of a Property as
keys and their corresponding Property object as values. |
Constructor Summary | |
PropertyRepository()
Constructs a PropertyRepository object. |
Method Summary | |
boolean |
isValidPropertyName(java.lang.String propertyName)
Returns true if given property name is one of the valid names. |
Property[] |
loadProperty(java.net.URL url,
java.lang.String[] names)
Loads Property (ies) into this PropertyRepository
and also returns them. |
private java.util.Vector |
loadPropertyInternal(java.net.URL url,
java.lang.String[] names,
boolean dflt)
Loads Property (ies) into this PropertyRepository
and also returns them. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Hashtable propertyRepository
Property
as
keys and their corresponding Property
object as values.
private static java.lang.String[] propertyNames
Property
names
Constructor Detail |
public PropertyRepository()
PropertyRepository
object.
Method Detail |
public boolean isValidPropertyName(java.lang.String propertyName)
propertyName
- String name of the Property
being checked
public Property[] loadProperty(java.net.URL url, java.lang.String[] names) throws PropertyFormationException
Property
(ies) into this PropertyRepository
and also returns them.
url
- URL pointing to Property Specification filenames
- String names of the Property
(ies) that are wanted to be loaded
Property
(ies) loaded
PropertyFormationException
- if any abnormal condition occurs when forming
Property
(ies)private java.util.Vector loadPropertyInternal(java.net.URL url, java.lang.String[] names, boolean dflt) throws PropertyFormationException
Property
(ies) into this PropertyRepository
and also returns them.
url
- URL pointing to Property Specification filenames
- String names of the Property
(ies) that are wanted to be loadeddflt
- boolean representing the default behavior
Property
(ies) loaded
PropertyFormationException
- if any abnormal condition occurs when forming
Property
(ies)
(internal use only)
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |