public class JsonConfiguration extends java.lang.Object implements Configuration
| Constructor and Description |
|---|
JsonConfiguration(javax.json.JsonObject object) |
| Modifier and Type | Method and Description |
|---|---|
ConfigurationArray |
getArray(java.lang.String name)
Get an ConfigurationArray from this configuration if it exists.
|
boolean |
getBoolean(java.lang.String name)
Get a boolean property from this configuration if it exists.
|
Configuration |
getInner(java.lang.String name)
Get an inner Configuration object from this configuration if it exists.
|
java.lang.Number |
getNumber(java.lang.String name)
Get a number property from this configuration if it exists.
|
java.util.Collection<java.lang.String> |
getProperties()
Returns a collection of the property names available in this configuration.
|
java.lang.String |
getString(java.lang.String name)
Get a String property from this configuration if it exists.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, getRawData, hasArray, hasBoolean, hasInner, hasNumber, hasString, tryGet, tryGetArray, tryGetBoolean, tryGetInner, tryGetNumber, tryGetStringpublic java.lang.Number getNumber(java.lang.String name)
throws NoSuchPropertyException
ConfigurationConfiguration.tryGetNumber(String).getNumber in interface Configurationname - The name of the propertyNoSuchPropertyException - If there is no property with the given name, or if there is a property with the
given name, but of a different type.public boolean getBoolean(java.lang.String name)
throws NoSuchPropertyException
ConfigurationConfiguration.tryGetBoolean(String) .getBoolean in interface Configurationname - The name of the propertyNoSuchPropertyException - If there is no property with the given name, or if there is a property with the
given name, but of a different type.public java.lang.String getString(java.lang.String name)
throws NoSuchPropertyException
ConfigurationConfiguration.tryGetString(String) .getString in interface Configurationname - The name of the propertyNoSuchPropertyException - If there is no property with the given name, or if there is a property with the
given name, but of a different type.public ConfigurationArray getArray(java.lang.String name) throws NoSuchPropertyException
ConfigurationConfiguration.tryGetArray(String). The returned array may be empty.getArray in interface Configurationname - The name of the propertyNoSuchPropertyException - If there is no property with the given name, or if there is a property with the
given name, but of a different type.public Configuration getInner(java.lang.String name) throws NoSuchPropertyException
ConfigurationConfiguration.tryGetInner(String).getInner in interface Configurationname - The name of the propertyNoSuchPropertyException - If there is no property with the given name, or if there is a property with the
given name, but of a different type.public java.util.Collection<java.lang.String> getProperties()
ConfigurationConfiguration.get(String) and not to return an empty optional
on Configuration.tryGet(String).getProperties in interface Configurationpublic java.lang.String toString()
toString in class java.lang.Object