|
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/~cdyreson/pub/tauZaman/defaultProperties.xml"), null);For now it does not have unloadProperty() behavior.
Property
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
|
tauZaman v0.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |