|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.abstractcontent.SubconfImpl.AbstractSubconfiguration
public abstract static class SubconfImpl.AbstractSubconfiguration
This provides a raw base providing no services and no string-properties
| Constructor Summary | |
|---|---|
SubconfImpl.AbstractSubconfiguration()
|
|
| Method Summary | |
|---|---|
boolean |
getBoolean(String name)
Attempts to convert the string-value returned by getProperty(java.lang.String) to a boolean using
Boolean.valueOf(boolean). |
abstract Collection |
getChildrenNames(String prefix)
Returns the next step completion given the named prefix. |
int |
getInt(String name)
Attempts to convert the string-value returned by getProperty(java.lang.String) to an integer using
Integer.parseInt(java.lang.String, int). |
abstract URL |
getPath(String name)
Computes the path of the given properties according to ActiveMath's mechanism (using a possible extra <name>.refType
property. |
abstract String |
getProperty(String name)
Returns the values for the given name or null if there's none. |
abstract Iterator |
getPropertyNames()
Returns an enumeration of all the property names. |
Subconfiguration |
getSubconfiguration(String prefix)
Creates a sub-configuration object with the properties with given prefix. |
abstract void |
setDefaultProperties(Map props)
Sets the default properties for this component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.activemath.abstractcontent.Subconfiguration |
|---|
getService, pathFromString, refreshServices |
| Constructor Detail |
|---|
public SubconfImpl.AbstractSubconfiguration()
| Method Detail |
|---|
public abstract String getProperty(String name)
Subconfigurationnull if there's none.
getProperty in interface Subconfigurationpublic abstract void setDefaultProperties(Map props)
SubconfigurationString.
setDefaultProperties in interface Subconfigurationpublic boolean getBoolean(String name)
getProperty(java.lang.String) to a boolean using
Boolean.valueOf(boolean).
The properties should hence be "true" of "false".
getBoolean in interface SubconfigurationIllegalArgumentException - if the conversion fails
(for example if the value returned
by getProperty(java.lang.String) is null)public int getInt(String name)
getProperty(java.lang.String) to an integer using
Integer.parseInt(java.lang.String, int).
getInt in interface SubconfigurationIllegalArgumentException - if the conversion fails
(for example if the value returned
by getProperty(java.lang.String) is null)public abstract URL getPath(String name)
Subconfiguration<name>.refType
property.
getPath in interface SubconfigurationManager.getPath(java.lang.String)public abstract Iterator getPropertyNames()
Subconfiguration
getPropertyNames in interface Subconfigurationpublic abstract Collection getChildrenNames(String prefix)
SubconfigurationAs an example, given
i.a.blop.c = val1
i.b.blip = val2
This method, called with "i", would return the enumeration made of the string "a" and the string "b".
getChildrenNames in interface Subconfigurationprefix - the prefix string, without the trailing "."
or null if the root property names is wished.public Subconfiguration getSubconfiguration(String prefix)
Subconfiguration
getSubconfiguration in interface Subconfigurationprefix - the prefix string, without the trailing "."
SubconfImpl.ChildSubconfiguration that is backed
by the current subconfiguration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||