|
tauZaman v0.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--tauzaman.property.PropertyManager
PropertyManager class manages user specific set of Properties.
Each TauZaman user (remote or local) will have his/her own PropertyManager.
Property,
PropertyStackService| Constructor Summary | |
PropertyManager(PropertyRepository pr,
java.net.URL url)
Constructs a PropertyManager object and
initializes the default property list. |
|
| Method Summary | |
Property |
getProperty(java.lang.String name)
Returns the active Property given its name. |
Property |
getProperty(java.net.URL url,
java.lang.String name)
Loads Properties without activating it. |
java.lang.String |
getPropertyImage(java.lang.String name)
Gets all the current Property information of a specific
Property name in a String. |
void |
propertyActivate(java.net.URL url,
java.lang.String[] names)
Inserts a new Property(possibly Properties, given by url) to property
structure, which is handled by PropertyStackService and activates it.
|
void |
propertyDeactivate(java.lang.String name)
Deactivates a Property (given by its name) and removes it from property list,
which is managed by PropertyStackService. |
void |
propertyDeactivateAll()
Deactivates any active properties and removes them from PropertyStackService.
|
void |
propertySetDefault(java.lang.String name)
Sets Property (given by its name) to its default value. |
void |
propertySetDefaultAll()
Sets all active Properties to their default values. |
java.lang.String |
toString()
Returns this PropertyManager's default property list URL. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PropertyManager(PropertyRepository pr,
java.net.URL url)
throws PropertyFormationException
PropertyManager object and
initializes the default property list.
url - url of a default Property table, which this manager
starts with
PropertyFormationException - if any problem occurs
when parsing the property specification file| Method Detail |
public Property getProperty(java.net.URL url,
java.lang.String name)
throws PropertyFormationException,
PropertyServiceException
Properties without activating it. This method is
unique to Input and Output.
url - URL of Property Specification filename - string name of Property to be loaded.
PropertyFormationException - if any problem occurs
when parsing the property specification file
PropertyServiceException
public void propertyActivate(java.net.URL url,
java.lang.String[] names)
throws PropertyFormationException
Property(possibly Properties, given by url) to property
structure, which is handled by PropertyStackService and activates it.
First property with the given names in the file pointed by given url will be activated.
If all Properties in the file pointed by URL will be activated, then pass null as names.
url - URL of Property Specification filenames - array of Property names to be activated
PropertyFormationException - if any problem occurs
when parsing the property specification filepublic void propertyDeactivateAll()
PropertyStackService.
With an exception: It will not deactivate or remove any default property,
so any attempt will only succeed to deactivate and remove only non-default
active properties.
public void propertyDeactivate(java.lang.String name)
throws PropertyServiceException
Property (given by its name) and removes it from property list,
which is managed by PropertyStackService. If the active Property
is the default Property, then keep silent.
name - name of a Property
PropertyServiceException - if any abnormal condition occurs when deactivating
active Property with given namepublic void propertySetDefaultAll()
Properties to their default values.
public void propertySetDefault(java.lang.String name)
throws PropertyServiceException
Property (given by its name) to its default value. If the
Property already has its default value active, then keep silent.
name - name of the Property
PropertyServiceException - if any abnormal condition occurs when setting
active Property, with given name, to its default value
public Property getProperty(java.lang.String name)
throws PropertyServiceException
Property given its name.
name - String name of a Property
Property with the given name.
PropertyServiceException - if any abnormal condition occurs when setting
active Property, with given name, to its default value
public java.lang.String getPropertyImage(java.lang.String name)
throws PropertyServiceException
Property information of a specific
Property name in a String. Format of the return string is;
{urlOfProperty}%{urOfProperty}%....%{urlOfProperty}
order is same as of Property stack from bottom to top.
name - String name of a Property
PropertyServiceException - if any abnormal condition occurs when
getting the image of Property stack given its namepublic java.lang.String toString()
PropertyManager's default property list URL.
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 | |||||||||