public class XmlArchivedProperties
extends java.lang.Object
implements java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
XmlArchivedProperties()
Constructs an empty property map.
|
|
XmlArchivedProperties(XmlArchivedProperties p)
Constructs a new
XmlArchivedProperties and copies
all properties from another XmlArchivedProperties. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsName(java.lang.String name)
Returns true if the property by a certain name exists.
|
static XmlArchivedProperties |
fromXml(java.lang.String xml)
Decodes an XML document encoded by
toXml. |
java.math.BigDecimal |
getBigDecimal(java.lang.String name)
Returns the value of the property specified by a name as a
BigDecimal number. |
java.math.BigInteger |
getBigInteger(java.lang.String name)
Returns the value of the property specified by a name as a
BigInteger number. |
java.lang.Boolean |
getBoolean(java.lang.String name)
Returns the value of the property specified by a name as a
Boolean. |
java.util.Date |
getDate(java.lang.String name)
Returns the value of the property specified by a name as a
java.util.Date. |
java.lang.Double |
getDouble(java.lang.String name)
Returns the value of the property specified by a name as a
Double number. |
java.lang.Integer |
getInteger(java.lang.String name)
Returns the value of the property specified by a name as an
Integer number. |
java.lang.Long |
getLong(java.lang.String name)
Returns the value of the property specified by a name as a
Long number. |
java.lang.Long[] |
getLongArray(java.lang.String name)
Returns the value of the property specified by a name as a
Long array. |
java.lang.Object |
getObject(java.lang.String name)
Returns the value of the property specified by a name.
|
java.lang.String |
getString(java.lang.String name)
Returns the value of the property specified by a name as a
String. |
java.lang.String[] |
getStringArray(java.lang.String name)
Returns the value of the property specified by a name as a
String array.
|
XmlArchivedProperties |
getXmlArchivedProperties(java.lang.String name)
Returns the value of the property specified by a name as an
XmlArchivedProperties object. |
XmlArchivedProperties[] |
getXmlArchivedPropertiesArray(java.lang.String name)
Returns the value of the property specified by a name as an
XmlArchivedProperties array. |
java.util.Set<java.lang.String> |
propertyNameSet()
Returns the property names in this collection.
|
protected void |
remove(java.lang.String name)
Removes a property.
|
protected void |
setBigDecimal(java.lang.String name,
java.math.BigDecimal value)
Sets the value of a property.
|
protected void |
setBigInteger(java.lang.String name,
java.math.BigInteger value)
Sets the value of a property.
|
protected void |
setBoolean(java.lang.String name,
boolean b)
Sets the value of a property.
|
protected void |
setDate(java.lang.String name,
java.util.Date date)
Sets the value of a property.
|
protected void |
setDouble(java.lang.String name,
java.lang.Double value)
Sets the value of a property.
|
protected void |
setInteger(java.lang.String name,
java.lang.Integer value)
Sets the value of a property.
|
protected void |
setLong(java.lang.String name,
java.lang.Long value)
Sets the value of a property.
|
protected void |
setLongArray(java.lang.String name,
java.lang.Long[] value)
Sets the value of a property.
|
protected void |
setString(java.lang.String name,
java.lang.String value)
Sets the value of a property.
|
protected void |
setStringArray(java.lang.String name,
java.lang.String[] value)
Sets the value of a property.
|
protected void |
setXmlArchivedProperties(java.lang.String name,
XmlArchivedProperties value)
Sets the value of a property.
|
protected void |
setXmlArchivedPropertiesArray(java.lang.String name,
XmlArchivedProperties[] value)
Sets the value of a property.
|
int |
size()
Returns the number of properties in this collection.
|
java.lang.String |
toString() |
static java.lang.String |
toXml(XmlArchivedProperties properties)
Encodes a
XmlArchivedProperties object in the form of XML. |
protected XmlArchivedProperties()
public XmlArchivedProperties(XmlArchivedProperties p)
XmlArchivedProperties and copies
all properties from another XmlArchivedProperties.p - the properties to be copiedjava.lang.NullPointerException - if the given argument is nullpublic static final java.lang.String toXml(XmlArchivedProperties properties)
XmlArchivedProperties object in the form of XML.properties - the XmlArchivedProperties object to be
encodedjava.lang.IllegalArgumentException - if the given object is null or
contains any cyclic referencesfromXml(java.lang.String)public static final XmlArchivedProperties fromXml(java.lang.String xml)
toXml.xml - the XML documentjava.lang.IllegalArgumentException - if the given XML document is
null or emptytoXml(oracle.adf.share.sandbox.XmlArchivedProperties)public java.lang.Object getObject(java.lang.String name)
name - the property namenull
if the property does not exist, or if the property value
is nullpublic boolean containsName(java.lang.String name)
name - the name of the propertyprotected void setXmlArchivedProperties(java.lang.String name,
XmlArchivedProperties value)
name - the property namevalue - the property valuepublic XmlArchivedProperties getXmlArchivedProperties(java.lang.String name)
XmlArchivedProperties object.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not an
XmlArchivedProperties objectprotected void setXmlArchivedPropertiesArray(java.lang.String name,
XmlArchivedProperties[] value)
name - the property namevalue - the property valuepublic XmlArchivedProperties[] getXmlArchivedPropertiesArray(java.lang.String name)
XmlArchivedProperties array.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not an
XmlArchivedProperties arrayprotected void setInteger(java.lang.String name,
java.lang.Integer value)
name - the property namevalue - the property valuepublic java.lang.Integer getInteger(java.lang.String name)
Integer number.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not an
Integer numberprotected void setLong(java.lang.String name,
java.lang.Long value)
name - the property namevalue - the property valuepublic java.lang.Long getLong(java.lang.String name)
Long number.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not a
Long numberprotected void setLongArray(java.lang.String name,
java.lang.Long[] value)
name - the property namevalue - the property valuepublic java.lang.Long[] getLongArray(java.lang.String name)
Long array.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not a
Long arrayprotected void setDouble(java.lang.String name,
java.lang.Double value)
name - the property namevalue - the property valuepublic java.lang.Double getDouble(java.lang.String name)
Double number.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not a
Double numberprotected void setBigInteger(java.lang.String name,
java.math.BigInteger value)
name - the property namevalue - the property valuepublic java.math.BigInteger getBigInteger(java.lang.String name)
BigInteger number.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not a
BigInteger numberprotected void setBigDecimal(java.lang.String name,
java.math.BigDecimal value)
name - the property namevalue - the property valuepublic java.math.BigDecimal getBigDecimal(java.lang.String name)
BigDecimal number.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not a
BigDecimal numberprotected void setString(java.lang.String name,
java.lang.String value)
name - the property namevalue - the property valuepublic java.lang.String getString(java.lang.String name)
String.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not a
Stringprotected void setBoolean(java.lang.String name,
boolean b)
name - the property nameb - the property valuepublic java.lang.Boolean getBoolean(java.lang.String name)
Boolean.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not a
Booleanprotected void setDate(java.lang.String name,
java.util.Date date)
name - the property namedate - the property valuepublic java.util.Date getDate(java.lang.String name)
java.util.Date.name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not a
java.util.Dateprotected void setStringArray(java.lang.String name,
java.lang.String[] value)
name - the property namevalue - the property valuepublic java.lang.String[] getStringArray(java.lang.String name)
name - the property namenull
if the property does not exist, or if the property value
is nulljava.lang.ClassCastException - if the property value is not a
String arrayprotected void remove(java.lang.String name)
name - the name of the propertypublic java.util.Set<java.lang.String> propertyNameSet()
public int size()
public java.lang.String toString()
toString in class java.lang.Object