public class ManifoldCFConfiguration extends Configuration
| Modifier and Type | Field and Description |
|---|---|
static String |
_rcsid |
static String |
ATTRIBUTE_NAME |
static String |
ATTRIBUTE_VALUE |
protected Map<String,String> |
localProperties |
static String |
NODE_PROPERTY |
children, JSON_ATTRIBUTE, JSON_CHILDREN, JSON_TYPE, JSON_VALUE, readOnly, rootNodeLabel| Constructor and Description |
|---|
ManifoldCFConfiguration()
Constructor.
|
ManifoldCFConfiguration(InputStream xmlStream)
Construct from XML.
|
| Modifier and Type | Method and Description |
|---|---|
protected Configuration |
createNew()
Create a new object of the appropriate class.
|
void |
fromXML(InputStream is)
Read from an input stream.
|
boolean |
getBooleanProperty(String s,
boolean defaultValue)
Read a boolean property
|
double |
getDoubleProperty(String s,
double defaultValue)
Read a float property, either from the system properties, or from the local configuration file.
|
int |
getIntProperty(String s,
int defaultValue)
Read an integer property, either from the system properties, or from the local configuration file.
|
long |
getLongProperty(String s,
long defaultValue)
Read a long property, either from the system properties, or from the local configuration file.
|
String |
getPossiblyObfuscatedStringProperty(String s,
String defaultValue)
Read a possibly obfuscated string property, either from the system properties, or from the local configuration file.
|
String |
getProperty(String s) |
String |
getStringProperty(String s,
String defaultValue)
Read a (string) property, either from the system properties, or from the local configuration file.
|
protected void |
parseProperties() |
addChild, addOuterNode, clearChildren, clearOuterNodes, createDuplicate, createNewNode, equals, findChild, fromJSON, fromXML, getChildCount, hashCode, initializeFromDoc, makeReadOnly, processObject, processObject, readNode, readNode, removeChild, removeOuterNode, toJSON, toString, toXML, writeNode, writeNodepublic static final String _rcsid
public static final String NODE_PROPERTY
public static final String ATTRIBUTE_NAME
public static final String ATTRIBUTE_VALUE
public ManifoldCFConfiguration()
public ManifoldCFConfiguration(InputStream xmlStream) throws ManifoldCFException
xmlStream - is the input XML stream.ManifoldCFExceptionpublic String getStringProperty(String s, String defaultValue)
s - is the property name.defaultValue - is the default value for the property.public String getPossiblyObfuscatedStringProperty(String s, String defaultValue) throws ManifoldCFException
s - is the property name.defaultValue - is the default value for the property.ManifoldCFExceptionpublic boolean getBooleanProperty(String s, boolean defaultValue) throws ManifoldCFException
ManifoldCFExceptionpublic int getIntProperty(String s, int defaultValue) throws ManifoldCFException
ManifoldCFExceptionpublic long getLongProperty(String s, long defaultValue) throws ManifoldCFException
ManifoldCFExceptionpublic double getDoubleProperty(String s, double defaultValue) throws ManifoldCFException
ManifoldCFExceptionprotected void parseProperties()
throws ManifoldCFException
ManifoldCFExceptionpublic void fromXML(InputStream is) throws ManifoldCFException
fromXML in class Configurationis - is the input XML stream. Does NOT close the stream.ManifoldCFExceptionprotected Configuration createNew()
createNew in class Configuration