public class DefaultProxy extends java.lang.Object implements IConfigProxy
Constructor and Description |
---|
DefaultProxy() |
Modifier and Type | Method and Description |
---|---|
boolean |
canSerializeObject(java.lang.Object o)
Checks if the object passed can be serialized by this proxy
|
java.lang.Object |
deserialize(java.lang.String key,
java.lang.String s)
Deserializes an object from a String
|
java.lang.String |
getKey(java.lang.Object o)
Returns the key representing the object
|
boolean |
isKeyUsable(java.lang.String key)
Checks if the key passed represents a config option type that can be deserialized by this
|
java.lang.String |
serialize(java.lang.Object o)
Serializes an object into a (single line) string
|
public boolean canSerializeObject(java.lang.Object o)
IConfigProxy
canSerializeObject
in interface IConfigProxy
o
- The object to checkpublic boolean isKeyUsable(java.lang.String key)
IConfigProxy
isKeyUsable
in interface IConfigProxy
key
- The key of the config typepublic java.lang.String getKey(java.lang.Object o)
IConfigProxy
getKey
in interface IConfigProxy
o
- The objectpublic java.lang.String serialize(java.lang.Object o) throws ConfigException
IConfigProxy
serialize
in interface IConfigProxy
o
- The object to serializeConfigException
public java.lang.Object deserialize(java.lang.String key, java.lang.String s) throws ConfigException
IConfigProxy
deserialize
in interface IConfigProxy
key
- The key representing the object types
- The stringConfigException