|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.interfaces.Configuration
org.apache.manifoldcf.core.interfaces.ConfigParams
public class ConfigParams
This class represents a set of configuration parameters, with structure, which is a generalized hierarchy of nodes that can be interpreted by a repository or authority connector in an appropriate way.
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected static java.lang.String |
ATTR_NAME
|
protected static java.lang.String |
PARAMETER_TYPE
The parameter type node |
protected java.util.HashMap |
params
|
| Fields inherited from class org.apache.manifoldcf.core.interfaces.Configuration |
|---|
children, JSON_ATTRIBUTE, JSON_CHILDREN, JSON_TYPE, JSON_VALUE, readOnly, rootNodeLabel |
| Constructor Summary | |
|---|---|
ConfigParams()
Constructor. |
|
ConfigParams(java.io.InputStream xmlstream)
Construct from XML. |
|
ConfigParams(java.util.Map map)
Constructor. |
|
ConfigParams(java.lang.String xml)
Construct from XML. |
|
| Method Summary | |
|---|---|
protected void |
addOuterNode(ConfigurationNode node)
Note the addition of a new outer node. |
protected void |
clearOuterNodes()
Note the removal of all outer nodes. |
protected Configuration |
createNew()
Create a new object of the appropriate class. |
protected ConfigurationNode |
createNewNode(java.lang.String type)
Create a new child node of the appropriate type and class. |
ConfigParams |
duplicate()
Duplicate. |
ConfigNode |
getChild(int index)
Get child node. |
java.lang.String |
getObfuscatedParameter(java.lang.String key)
Get an obfuscated parameter value. |
java.lang.String |
getParameter(java.lang.String key)
Get a parameter value. |
java.util.Iterator |
listParameters()
List parameters. |
protected void |
removeOuterNode(ConfigurationNode node)
Note the removal of an outer node. |
void |
setObfuscatedParameter(java.lang.String key,
java.lang.String value)
Set an obfuscated parameter. |
void |
setParameter(java.lang.String key,
java.lang.String value)
Set a parameter value. |
| Methods inherited from class org.apache.manifoldcf.core.interfaces.Configuration |
|---|
addChild, clearChildren, createDuplicate, equals, findChild, fromJSON, fromXML, fromXML, getChildCount, hashCode, initializeFromDoc, makeReadOnly, processObject, processObject, readNode, readNode, removeChild, toJSON, toXML, writeNode, writeNode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected static final java.lang.String PARAMETER_TYPE
protected static final java.lang.String ATTR_NAME
protected java.util.HashMap params
| Constructor Detail |
|---|
public ConfigParams()
public ConfigParams(java.util.Map map)
map - is the initialized (mutable) map describing the name/value configuration parameters.
This method of setting up a ConfigParams object will go away when the parameters are all in XML.
public ConfigParams(java.lang.String xml)
throws ManifoldCFException
xml - is the input XML.
ManifoldCFException
public ConfigParams(java.io.InputStream xmlstream)
throws ManifoldCFException
xmlstream - is the input XML stream. Does NOT close the stream.
ManifoldCFException| Method Detail |
|---|
protected Configuration createNew()
createNew in class Configurationprotected ConfigurationNode createNewNode(java.lang.String type)
createNewNode in class Configurationprotected void clearOuterNodes()
clearOuterNodes in class Configurationprotected void addOuterNode(ConfigurationNode node)
addOuterNode in class Configurationnode - is the node that was just read.protected void removeOuterNode(ConfigurationNode node)
removeOuterNode in class Configurationnode - is the node that was just removed.public java.lang.String getParameter(java.lang.String key)
key - is the name of the parameter.
public java.lang.String getObfuscatedParameter(java.lang.String key)
key - is the name of the parameter.
public void setParameter(java.lang.String key,
java.lang.String value)
key - is the name of the parameter.value - is the new value, or null if we should
delete the value.
public void setObfuscatedParameter(java.lang.String key,
java.lang.String value)
key - is the name of the parameter.value - is the unobfuscated new value, or null if delete request.public java.util.Iterator listParameters()
public ConfigParams duplicate()
public ConfigNode getChild(int index)
index - is the node number.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||