|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
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 | |
---|---|
Object |
clone() Creates and returns a copy of this SimpleValue. |
boolean |
equals(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. |
Date |
getDate() Get the value as a Date. |
Date |
getDate(Date dtDefault) Get the value as a Date. |
Timestamp |
getDateTime() Get the value as a Timestamp. |
Timestamp |
getDateTime(Timestamp dtDefault) Get the value as a Timestamp. |
BigDecimal |
getDecimal() Get the value as a decimal. |
BigDecimal |
getDecimal(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. |
String |
getString() Get the value as a String. |
String |
getString(String sDefault) Get the value as a String. |
Time |
getTime() Get the value as a Time. |
Time |
getTime(Time dtDefault) Get the value as a Time. |
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(Date dtVal) Set the Date value. |
void |
setDateTime(Timestamp dtVal) Set the Timestamp value. |
void |
setDecimal(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(String sVal) Set the String value. |
void |
setTime(Time dtVal) Set the Time value. |
String |
toString() Format the XML value into a String in a display format. |
void |
writeValue(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 doubleBigDecimal getDecimal()
void setDecimal(BigDecimal decVal)
decVal
- a new value of type BigDecimalString getString()
void setString(String sVal)
sVal
- a new value of type StringBinary getBinary()
void setBinary(Binary binVal)
binVal
- a new value of type BinaryDate getDate()
void setDate(Date dtVal)
dtVal
- a new value of type DateTime getTime()
void setTime(Time dtVal)
dtVal
- a new value of type TimeTimestamp getDateTime()
void setDateTime(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 doubleBigDecimal getDecimal(BigDecimal decDefault)
decDefault
- the default return value if the internal value can not be translated into a legal value of type decimalString getString(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 BinaryDate getDate(Date dtDefault)
dtDefault
- the default return value if the internal value can not be translated into a legal value of type DateTime getTime(Time dtDefault)
dtDefault
- the default return value if the internal value can not be translated into a legal value of type TimeTimestamp getDateTime(Timestamp dtDefault)
dtDefault
- the default return value if the internal value can not be translated into a legal value of type TimestampObject getValue()
XmlElement getParent()
void setParent(XmlElement element)
element
- the parent elementIllegalArgumentException
- thrown if the specified parent is nullIllegalStateException
- throw if the parent is already setboolean isEmpty()
boolean isAttribute()
boolean isContent()
boolean isMutable()
void writeValue(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 possibleString toString()
int hashCode()
boolean equals(Object o)
Object clone()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |