public class ManifoldCFConfiguration extends Configuration
Configuration.JSONReader, Configuration.JSONWriter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
ATTRIBUTE_NAME |
static java.lang.String |
ATTRIBUTE_VALUE |
protected java.util.Map<java.lang.String,java.lang.String> |
localProperties |
static java.lang.String |
NODE_PROPERTY |
children, JSON_ATTRIBUTE, JSON_CHILDREN, JSON_TYPE, JSON_VALUE, readOnly, rootNodeLabel| Constructor and Description |
|---|
ManifoldCFConfiguration()
Constructor.
|
ManifoldCFConfiguration(java.io.InputStream xmlStream)
Construct from XML.
|
| Modifier and Type | Method and Description |
|---|---|
protected Configuration |
createNew()
Create a new object of the appropriate class.
|
void |
fromXML(java.io.InputStream is)
Read from an input stream.
|
boolean |
getBooleanProperty(java.lang.String s,
boolean defaultValue)
Read a boolean property
|
double |
getDoubleProperty(java.lang.String s,
double defaultValue)
Read a float property, either from the system properties, or from the local configuration file.
|
int |
getIntProperty(java.lang.String s,
int defaultValue)
Read an integer property, either from the system properties, or from the local configuration file.
|
long |
getLongProperty(java.lang.String s,
long defaultValue)
Read a long property, either from the system properties, or from the local configuration file.
|
java.lang.String |
getPossiblyObfuscatedStringProperty(java.lang.String s,
java.lang.String defaultValue)
Read a possibly obfuscated string property, either from the system properties, or from the local configuration file.
|
java.lang.String |
getProperty(java.lang.String s) |
java.lang.String |
getStringProperty(java.lang.String s,
java.lang.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 java.lang.String _rcsid
public static final java.lang.String NODE_PROPERTY
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_VALUE
protected final java.util.Map<java.lang.String,java.lang.String> localProperties
public ManifoldCFConfiguration()
public ManifoldCFConfiguration(java.io.InputStream xmlStream)
throws ManifoldCFException
xmlStream - is the input XML stream.ManifoldCFExceptionpublic java.lang.String getProperty(java.lang.String s)
public java.lang.String getStringProperty(java.lang.String s,
java.lang.String defaultValue)
s - is the property name.defaultValue - is the default value for the property.public java.lang.String getPossiblyObfuscatedStringProperty(java.lang.String s,
java.lang.String defaultValue)
throws ManifoldCFException
s - is the property name.defaultValue - is the default value for the property.ManifoldCFExceptionpublic boolean getBooleanProperty(java.lang.String s,
boolean defaultValue)
throws ManifoldCFException
ManifoldCFExceptionpublic int getIntProperty(java.lang.String s,
int defaultValue)
throws ManifoldCFException
ManifoldCFExceptionpublic long getLongProperty(java.lang.String s,
long defaultValue)
throws ManifoldCFException
ManifoldCFExceptionpublic double getDoubleProperty(java.lang.String s,
double defaultValue)
throws ManifoldCFException
ManifoldCFExceptionprotected void parseProperties()
throws ManifoldCFException
ManifoldCFExceptionpublic void fromXML(java.io.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