public class MProperties extends IProperties implements Externalizable
MProperties class.
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
properties |
| Constructor and Description |
|---|
MProperties()
Constructor for MProperties.
|
MProperties(Dictionary<?,?> config)
Constructor for MProperties.
|
MProperties(Map<?,?> in)
Constructor for MProperties.
|
MProperties(Properties properties)
Constructor for MProperties.
|
MProperties(String... values)
Constructor for MProperties.
|
| Modifier and Type | Method and Description |
|---|---|
static MProperties |
explodeToMProperties(String[] properties)
explodeToMProperties.
|
static Properties |
explodeToProperties(String[] properties)
explodeToProperties.
|
Object |
getProperty(String name)
Overwrite this function to provide values in string format.
|
boolean |
isEditable()
Overwrite this function and return true if the property set can be edited.
|
boolean |
isProperty(String name)
Return true if the property exists.
|
Set<String> |
keys()
keys.
|
static MProperties |
load(String fileName)
load.
|
void |
readExternal(ObjectInput in) |
void |
removeProperty(String key)
Remove the property field in the list of properties.
|
void |
setProperty(String key,
Object value)
Overwrite this function to allow changes in properties.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
getBoolean, getBoolean, getCalendar, getDate, getDouble, getFloat, getInt, getLong, getNumber, getProperty, getString, getString, iterator, setBoolean, setCalendar, setDate, setDouble, setFloat, setInt, setLong, setNumber, setString, toMapbase, base, createBase, forkBase, installBase, isBase, leaveBaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected Properties properties
public MProperties()
Constructor for MProperties.
public MProperties(String... values)
Constructor for MProperties.
values - a String object.public MProperties(Dictionary<?,?> config)
Constructor for MProperties.
config - a Dictionary object.public MProperties(Map<?,?> in)
Constructor for MProperties.
in - a Map object.public MProperties(Properties properties)
Constructor for MProperties.
properties - a Properties object.public Object getProperty(String name)
getProperty in class IPropertiesname - a String object.public boolean isProperty(String name)
isProperty in class IPropertiesname - a String object.public void removeProperty(String key)
removeProperty in class IPropertieskey - a String object.public void setProperty(String key, Object value)
setProperty in class IPropertieskey - a String object.value - a Object object.public boolean isEditable()
isEditable in class IPropertiespublic Set<String> keys()
keys.
keys in class IPropertiesSet object.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic static MProperties explodeToMProperties(String[] properties)
explodeToMProperties.
properties - an array of String objects.MProperties object.public static Properties explodeToProperties(String[] properties)
explodeToProperties.
properties - an array of String objects.Properties object.public static MProperties load(String fileName)
load.
fileName - a String object.MProperties object.Copyright © 2016. All Rights Reserved.