public abstract class IProperties extends MObject implements Iterable<Map.Entry<String,Object>>, Serializable
Abstract IProperties class.
| Constructor and Description |
|---|
IProperties() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String name)
getBoolean.
|
boolean |
getBoolean(String name,
boolean def)
getBoolean.
|
Calendar |
getCalendar(String name)
getCalendar.
|
Date |
getDate(String name)
getDate.
|
double |
getDouble(String name,
double def)
getDouble.
|
float |
getFloat(String name,
float def)
getFloat.
|
int |
getInt(String name,
int def)
getInt.
|
long |
getLong(String name,
long def)
getLong.
|
Number |
getNumber(String name,
Number def)
getNumber.
|
abstract Object |
getProperty(String name)
Overwrite this function to provide values in string format.
|
int |
getProperty(String name,
int def)
Deprecated.
|
String |
getString(String name)
getString.
|
String |
getString(String name,
String def)
getString.
|
abstract boolean |
isEditable()
Overwrite this function and return true if the property set can be edited.
|
abstract boolean |
isProperty(String name)
Return true if the property exists.
|
Iterator<Map.Entry<String,Object>> |
iterator() |
abstract Set<String> |
keys()
keys.
|
abstract void |
removeProperty(String key)
Remove the property field in the list of properties.
|
void |
setBoolean(String name,
boolean value)
setBoolean.
|
void |
setCalendar(String name,
Calendar value)
setCalendar.
|
void |
setDate(String name,
Date value)
setDate.
|
void |
setDouble(String name,
double value)
setDouble.
|
void |
setFloat(String name,
float value)
setFloat.
|
void |
setInt(String name,
int value)
setInt.
|
void |
setLong(String name,
long value)
setLong.
|
void |
setNumber(String name,
Number value)
setNumber.
|
abstract void |
setProperty(String key,
Object value)
Overwrite this function to allow changes in properties.
|
void |
setString(String name,
String value)
setString.
|
Map<String,Object> |
toMap()
toMap.
|
base, base, createBase, forkBase, installBase, isBase, leaveBase, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic abstract Object getProperty(String name)
name - a String object.@Deprecated public int getProperty(String name, int def) throws MException
getProperty.
name - a String object.def - a int.MException - if any.public String getString(String name) throws MException
getString.
name - a String object.String object.MException - if any.public boolean getBoolean(String name, boolean def)
getBoolean.
name - a String object.def - a boolean.public boolean getBoolean(String name) throws MException
getBoolean.
name - a String object.MException - if any.public int getInt(String name, int def)
getInt.
name - a String object.def - a int.public long getLong(String name, long def)
getLong.
name - a String object.def - a long.public float getFloat(String name, float def)
getFloat.
name - a String object.def - a float.public double getDouble(String name, double def)
getDouble.
name - a String object.def - a double.public Calendar getCalendar(String name) throws MException
getCalendar.
name - a String object.Calendar object.MException - if any.public void setInt(String name, int value)
setInt.
name - a String object.value - a int.public void setLong(String name, long value)
setLong.
name - a String object.value - a long.public void setDouble(String name, double value)
setDouble.
name - a String object.value - a double.public void setFloat(String name, float value)
setFloat.
name - a String object.value - a float.public void setBoolean(String name, boolean value)
setBoolean.
name - a String object.value - a boolean.public abstract boolean isProperty(String name)
name - a String object.public abstract void removeProperty(String key)
key - a String object.public abstract void setProperty(String key, Object value)
public abstract boolean isEditable()
Copyright © 2016. All Rights Reserved.