public class RemoteFieldValue_Proxy extends MappedObject_Proxy<RemoteFieldValue> implements FieldValue
| Constructor and Description |
|---|
RemoteFieldValue_Proxy(RemoteFieldValue remoteObject) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canModify()
Returns whether this value can be changed.
|
Object |
get()
Returns the value as an Object.
|
Field |
getField()
Returns the Field object belonging to this value.
|
Node |
getNode()
Returns the Node to which this value belongs.
|
RemoteFieldValue |
getWrappedObject() |
boolean |
isNull() |
void |
set(Object arg0)
Sets the value, passing any Object
The object type may vary and is generally stored in memory as-is, which means that,
generally, the get() method returns the same object.
|
void |
setBoolean(boolean arg0)
Sets the value, passing a boolean value.
|
void |
setByte(byte[] arg0)
Sets the value, passing a byte array.
|
void |
setDate(Date arg0)
Sets the value, passing a java.util.Date object.
|
void |
setDouble(double arg0)
Sets the value, passing a double value.
|
void |
setFLoat(float arg0)
Sets the value, passing a float value.
|
void |
setInt(int arg0)
Sets the value, passing a int value.
|
void |
setLong(long arg0)
Sets the value, passing a long value.
|
void |
setNode(Node arg0)
Sets the value, passing a Node.
|
void |
setObject(Object arg0) |
void |
setString(String arg0)
Sets the value, passing a String.
|
void |
setXML(Document arg0)
Sets the value, passing a org.w3c.dom.Document object.
|
boolean |
toBoolean()
Returns the value as an boolean (
true or false). |
byte[] |
toByte()
Returns the value as a byte array.
|
Date |
toDate()
Returns the value as a
java.util.Date
If the value cannot be converted, this method returns null |
double |
toDouble()
Returns the value as a double.
|
float |
toFloat()
Returns the value as a float.
|
int |
toInt()
Returns the value as an int.
|
long |
toLong()
Returns the value as a long.
|
Node |
toNode()
Returns the value as a Node.
|
Document |
toXML()
Returns the value as a
org.w3c.dom.Document
If the node value is not itself a Document, the method attempts to
attempts to convert the String value into an XML. |
Element |
toXML(Document arg0)
Returns the value as a
org.w3c.dom.Element
If the node value is not itself a Document, the method attempts to
attempts to convert the String value into an XML. |
equals, getMapperCode, hashCode, toStringclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waittoStringpublic RemoteFieldValue_Proxy(RemoteFieldValue remoteObject)
public void setObject(Object arg0)
setObject in interface FieldValuepublic void setString(String arg0)
FieldValuesetString in interface FieldValuearg0 - the field value as a StringFieldValue.toString()public boolean canModify()
FieldValuecanModify in interface FieldValuetrue if the value can be changedpublic void setFLoat(float arg0)
FieldValuesetFLoat in interface FieldValuearg0 - the field value as a floatFieldValue.toFloat()public Document toXML()
FieldValueorg.w3c.dom.Document
If the node value is not itself a Document, the method attempts to
attempts to convert the String value into an XML.
If the value cannot be converted, this method returns nulltoXML in interface FieldValuepublic Element toXML(Document arg0)
FieldValueorg.w3c.dom.Element
If the node value is not itself a Document, the method attempts to
attempts to convert the String value into an XML.
This method fails (throws a IllegalArgumentException) if the Field is not of type TYPE_XML.
If the value cannot be converted, this method returns nulltoXML in interface FieldValuearg0 - the DOM Document to which the Element is added
(as the document root element)public Date toDate()
FieldValuejava.util.Date
If the value cannot be converted, this method returns nulltoDate in interface FieldValuepublic Node toNode()
FieldValuenull.toNode in interface FieldValuepublic void setXML(Document arg0)
FieldValuesetXML in interface FieldValuearg0 - the field value as a XML DocumentFieldValue.toXML(org.w3c.dom.Document)public float toFloat()
FieldValuetoFloat in interface FieldValuepublic long toLong()
FieldValuetoLong in interface FieldValuepublic double toDouble()
FieldValuetoDouble in interface FieldValuepublic byte[] toByte()
FieldValuetoByte in interface FieldValuepublic int toInt()
FieldValuetoInt in interface FieldValuepublic void setDate(Date arg0)
FieldValuesetDate in interface FieldValuearg0 - the field value as a java.util.Date DocumentFieldValue.toDate()public boolean toBoolean()
FieldValuetrue or false).
If the actual value is a Boolean object, this call returns it's (primitive) boolean value.
If the actual value is a Number object, this call returns true
if the value is a positive, non-zero, value. In other words, values '0'
and '-1' are concidered false.
If the value is a string, this call returns true if
the value is "true" or "yes" (case-insensitive).
In all other cases (including calling byte fields), false
is returned.toBoolean in interface FieldValuepublic void setNode(Node arg0)
FieldValuesetNode in interface FieldValuearg0 - the field value as a NodeFieldValue.toNode()public Object get()
FieldValueget in interface FieldValuepublic Field getField()
FieldValuegetField in interface FieldValuepublic void set(Object arg0)
FieldValueset in interface FieldValuearg0 - the field value as an ObjectFieldValue.get()public void setBoolean(boolean arg0)
FieldValuesetBoolean in interface FieldValuearg0 - the field value as a booleanFieldValue.toBoolean()public void setByte(byte[] arg0)
FieldValuesetByte in interface FieldValuearg0 - the field value as a byte arrayFieldValue.toByte()public void setInt(int arg0)
FieldValuesetInt in interface FieldValuearg0 - the field value as a intFieldValue.toInt()public void setLong(long arg0)
FieldValuesetLong in interface FieldValuearg0 - the field value as a longFieldValue.toLong()public void setDouble(double arg0)
FieldValuesetDouble in interface FieldValuearg0 - the field value as a doubleFieldValue.toDouble()public Node getNode()
FieldValuegetNode in interface FieldValuepublic boolean isNull()
isNull in interface FieldValuepublic RemoteFieldValue getWrappedObject()
getWrappedObject in interface MappedObjectgetWrappedObject in class MappedObject_Proxy<RemoteFieldValue>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}