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, writeNode
public 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.ManifoldCFException
public 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.ManifoldCFException
public boolean getBooleanProperty(String s, boolean defaultValue) throws ManifoldCFException
ManifoldCFException
public int getIntProperty(String s, int defaultValue) throws ManifoldCFException
ManifoldCFException
public long getLongProperty(String s, long defaultValue) throws ManifoldCFException
ManifoldCFException
public double getDoubleProperty(String s, double defaultValue) throws ManifoldCFException
ManifoldCFException
protected void parseProperties() throws ManifoldCFException
ManifoldCFException
public void fromXML(InputStream is) throws ManifoldCFException
fromXML
in class Configuration
is
- is the input XML stream. Does NOT close the stream.ManifoldCFException
protected Configuration createNew()
createNew
in class Configuration