|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.core.objects.Variant
Variant is a generic type that can be used to store any type of Xindice variable. Variants will do their best to convert the value that they store to any requested type.
Constructor Summary | |
Variant()
|
|
Variant(Args value)
|
|
Variant(boolean value)
|
|
Variant(byte value)
|
|
Variant(char value)
|
|
Variant(org.w3c.dom.Document value)
|
|
Variant(org.w3c.dom.DocumentFragment value)
|
|
Variant(double value)
|
|
Variant(org.w3c.dom.Element value)
|
|
Variant(float value)
|
|
Variant(int value)
|
|
Variant(long value)
|
|
Variant(java.lang.Object value)
|
|
Variant(short value)
|
|
Variant(java.lang.String value)
|
|
Variant(Variant value)
|
Method Summary | |
Args |
getArgs()
getArgs returns the value as an Args instance. |
boolean |
getBoolean()
getBoolean returns the value as a boolean. |
byte |
getByte()
getByte returns the value as a byte. |
char |
getChar()
getChar returns the value as a char. |
org.w3c.dom.Document |
getDocument()
getDocument returns the value as a Document. |
org.w3c.dom.DocumentFragment |
getDocumentFragment()
getDocumentFragment returns the value as a DocumentFragment. |
double |
getDouble()
getDouble returns the value as a double. |
org.w3c.dom.Element |
getElement()
getElement returns the value as an Element. |
float |
getFloat()
getFloat returns the value as a float. |
int |
getInt()
getInt returns the value as an int. |
long |
getLong()
getLong returns the value as a long. |
java.lang.Object |
getObject()
getObject returns the value as an Object. |
short |
getShort()
getShort returns the value as a short. |
java.lang.String |
getString()
getString returns the value as a String. |
int |
getType()
getType returns the type of the variable being stored in the Variant. |
boolean |
isNull()
isNull returns whether or not the variable is storing a null value. |
void |
set(Args value)
set sets the value as an Args instance. |
void |
set(boolean value)
set sets the value as a boolean. |
void |
set(byte value)
set sets the value as a byte. |
void |
set(char value)
set sets the value as a char. |
void |
set(org.w3c.dom.Document value)
set sets the value as a Document. |
void |
set(org.w3c.dom.DocumentFragment value)
set sets the value as a DocumentFragment. |
void |
set(double value)
set sets the value as a double. |
void |
set(org.w3c.dom.Element value)
set sets the value as an Element. |
void |
set(float value)
set sets the value as a float. |
void |
set(int value)
set sets the value as an int. |
void |
set(long value)
set sets the value as a long. |
void |
set(java.lang.Object object)
set sets the value as an Object. |
void |
set(short value)
set sets the value as a short |
void |
set(java.lang.String value)
set sets the value as a String. |
java.lang.String |
toString()
toString returns the value as a Stringified representation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Variant()
public Variant(Variant value)
public Variant(java.lang.String value)
public Variant(boolean value)
public Variant(byte value)
public Variant(char value)
public Variant(short value)
public Variant(int value)
public Variant(long value)
public Variant(float value)
public Variant(double value)
public Variant(org.w3c.dom.Element value)
public Variant(org.w3c.dom.Document value)
public Variant(org.w3c.dom.DocumentFragment value)
public Variant(Args value)
public Variant(java.lang.Object value)
Method Detail |
public int getType()
public boolean isNull()
public void set(java.lang.String value)
value
- The valuepublic void set(boolean value)
value
- The valuepublic void set(byte value)
value
- The valuepublic void set(char value)
value
- The valuepublic void set(short value)
value
- The valuepublic void set(int value)
value
- The valuepublic void set(long value)
value
- The valuepublic void set(float value)
value
- The valuepublic void set(double value)
value
- The valuepublic void set(org.w3c.dom.Element value)
value
- The valuepublic void set(org.w3c.dom.Document value)
value
- The valuepublic void set(org.w3c.dom.DocumentFragment value)
value
- The valuepublic void set(Args value)
value
- The valuepublic void set(java.lang.Object object)
value
- The valuepublic java.lang.String getString()
public boolean getBoolean()
public byte getByte()
public char getChar()
public short getShort()
public int getInt()
public long getLong()
public float getFloat()
public double getDouble()
public org.w3c.dom.Element getElement()
public org.w3c.dom.Document getDocument()
public org.w3c.dom.DocumentFragment getDocumentFragment()
public Args getArgs()
public java.lang.Object getObject()
public java.lang.String toString()
toString
in class java.lang.Object
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |