|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XmlValue
An interface for XML element content and element attribute values.
Field Summary | |
---|---|
static int |
TYPE_BINARY |
static int |
TYPE_BOOLEAN |
static int |
TYPE_DATE |
static int |
TYPE_DATETIME |
static int |
TYPE_DECIMAL |
static int |
TYPE_DOUBLE |
static int |
TYPE_INT |
static int |
TYPE_LONG |
static int |
TYPE_STRING |
static int |
TYPE_TIME |
Method Summary | |
---|---|
java.lang.Object |
clone() Creates and returns a copy of this SimpleValue. |
boolean |
equals(java.lang.Object o) Compare this XML value with another XML value for equality. |
Binary |
getBinary() Get the value as binary. |
Binary |
getBinary(Binary binDefault) Get the value as binary. |
boolean |
getBoolean() Get the value as a boolean. |
boolean |
getBoolean(boolean fDefault) Get the value as a boolean. |
java.sql.Date |
getDate() Get the value as a Date. |
java.sql.Date |
getDate(java.sql.Date dtDefault) Get the value as a Date. |
java.sql.Timestamp |
getDateTime() Get the value as a Timestamp. |
java.sql.Timestamp |
getDateTime(java.sql.Timestamp dtDefault) Get the value as a Timestamp. |
java.math.BigDecimal |
getDecimal() Get the value as a decimal. |
java.math.BigDecimal |
getDecimal(java.math.BigDecimal decDefault) Get the value as a decimal. |
double |
getDouble() Get the value as a double. |
double |
getDouble(double dflDefault) Get the value as a double. |
int |
getInt() Get the value as an int. |
int |
getInt(int nDefault) Get the value as an int. |
long |
getLong() Get the value as a long. |
long |
getLong(long lDefault) Get the value as a long. |
XmlElement |
getParent() Get the parent element of this value. |
java.lang.String |
getString() Get the value as a String. |
java.lang.String |
getString(java.lang.String sDefault) Get the value as a String. |
java.sql.Time |
getTime() Get the value as a Time. |
java.sql.Time |
getTime(java.sql.Time dtDefault) Get the value as a Time. |
java.lang.Object |
getValue() Get the value as an Object. |
int |
hashCode() Provide a hash value for this XML value. |
boolean |
isAttribute() Determine if this value is an element attribute. |
boolean |
isContent() Determine if this value is an element's content. |
boolean |
isEmpty() Determine if the value is empty. |
boolean |
isMutable() Determine if this value can be modified. |
void |
setBinary(Binary binVal) Set the binary value. |
void |
setBoolean(boolean fVal) Set the boolean value. |
void |
setDate(java.sql.Date dtVal) Set the Date value. |
void |
setDateTime(java.sql.Timestamp dtVal) Set the Timestamp value. |
void |
setDecimal(java.math.BigDecimal decVal) Set the dcimal value. |
void |
setDouble(double dflVal) Set the double value. |
void |
setInt(int nVal) Set the int value. |
void |
setLong(long lVal) Set the long value. |
void |
setParent(XmlElement element) Set the parent element of this value. |
void |
setString(java.lang.String sVal) Set the String value. |
void |
setTime(java.sql.Time dtVal) Set the Time value. |
java.lang.String |
toString() Format the XML value into a String in a display format. |
void |
writeValue(java.io.PrintWriter out, boolean fPretty) Write the value as it will appear in XML. |
Field Detail |
---|
static final int TYPE_BOOLEAN
static final int TYPE_INT
static final int TYPE_LONG
static final int TYPE_DOUBLE
static final int TYPE_DECIMAL
static final int TYPE_STRING
static final int TYPE_BINARY
static final int TYPE_DATE
static final int TYPE_TIME
static final int TYPE_DATETIME
Method Detail |
---|
boolean getBoolean()
void setBoolean(boolean fVal)
fVal
- a new value of type booleanint getInt()
void setInt(int nVal)
nVal
- a new value of type intlong getLong()
void setLong(long lVal)
lVal
- a new value of type longdouble getDouble()
void setDouble(double dflVal)
dflVal
- a new value of type doublejava.math.BigDecimal getDecimal()
void setDecimal(java.math.BigDecimal decVal)
decVal
- a new value of type BigDecimaljava.lang.String getString()
void setString(java.lang.String sVal)
sVal
- a new value of type StringBinary getBinary()
void setBinary(Binary binVal)
binVal
- a new value of type Binaryjava.sql.Date getDate()
void setDate(java.sql.Date dtVal)
dtVal
- a new value of type Datejava.sql.Time getTime()
void setTime(java.sql.Time dtVal)
dtVal
- a new value of type Timejava.sql.Timestamp getDateTime()
void setDateTime(java.sql.Timestamp dtVal)
dtVal
- a new value of type Timestampboolean getBoolean(boolean fDefault)
fDefault
- the default return value if the internal value can not be translated into a legal value of type booleanint getInt(int nDefault)
nDefault
- the default return value if the internal value can not be translated into a legal value of type intlong getLong(long lDefault)
lDefault
- the default return value if the internal value can not be translated into a legal value of type longdouble getDouble(double dflDefault)
dflDefault
- the default return value if the internal value can not be translated into a legal value of type doublejava.math.BigDecimal getDecimal(java.math.BigDecimal decDefault)
decDefault
- the default return value if the internal value can not be translated into a legal value of type decimaljava.lang.String getString(java.lang.String sDefault)
sDefault
- the default return value if the internal value can not be translated into a legal value of type StringBinary getBinary(Binary binDefault)
binDefault
- the default return value if the internal value can not be translated into a legal value of type Binaryjava.sql.Date getDate(java.sql.Date dtDefault)
dtDefault
- the default return value if the internal value can not be translated into a legal value of type Datejava.sql.Time getTime(java.sql.Time dtDefault)
dtDefault
- the default return value if the internal value can not be translated into a legal value of type Timejava.sql.Timestamp getDateTime(java.sql.Timestamp dtDefault)
dtDefault
- the default return value if the internal value can not be translated into a legal value of type Timestampjava.lang.Object getValue()
XmlElement getParent()
void setParent(XmlElement element)
element
- the parent elementjava.lang.IllegalArgumentException
- thrown if the specified parent is nulljava.lang.IllegalStateException
- throw if the parent is already setboolean isEmpty()
boolean isAttribute()
boolean isContent()
boolean isMutable()
void writeValue(java.io.PrintWriter out, boolean fPretty)
out
- a PrintWriter object to use to write tofPretty
- true to specify that the output is intended to be as human readable as possiblejava.lang.String toString()
int hashCode()
boolean equals(java.lang.Object o)
java.lang.Object clone()
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |