| Package | osid.configuration |
|---|---|
| Title | Configuration Open Service Interface Definitions |
| Version | 3.0.0 |
| Description |
The Configuration OSID defines a set of interfaces for configuration retrieval and management. The Configuration service may be used to store user profiles or as a means to assist OSID implementors modularize configuration data. Parameters Configuration data is expressed through a set of
Values Configuration Cataloging To create a configuration for an application, a OSID Provider implementations should get their
configurations via the Sub Packages The Configuration OSID includes a rules subpackage for
governing the available Example
Id parameterId = what I'm looking for;
ValueLookupSession valueSession = mgr.getValueLookupSession();
valueSession.federateParameterView();
if (valueSession.parameterExists(parameterId)) {
Parameter param = valueSession.getParameter(parameterId);
ValueList values = valueSession.getValues(param.getId());
while (values.hasNext()) {
Value value = values.getNextValue();
if (param.implementsType(typeString)
String value = (String) param.getValue();
else
print "unexpected type";
}
}
|