Xindice API
version 1.1

org.apache.xindice.core.data
Class Variant

java.lang.Object
  |
  +--org.apache.xindice.core.data.Variant

Deprecated. This class is not used in the code. If there is a clear need for it, it may come out of deprecation, else try to avoid it.

public final class Variant
extends Object

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.

Version:
$Revision: 511426 $, $Date: 2007-02-24 22:25:02 -0500 (Sat, 24 Feb 2007) $

Constructor Summary
Variant()
          Deprecated.  
Variant(boolean value)
          Deprecated.  
Variant(byte value)
          Deprecated.  
Variant(char value)
          Deprecated.  
Variant(org.w3c.dom.Document value)
          Deprecated.  
Variant(org.w3c.dom.DocumentFragment value)
          Deprecated.  
Variant(double value)
          Deprecated.  
Variant(org.w3c.dom.Element value)
          Deprecated.  
Variant(float value)
          Deprecated.  
Variant(int value)
          Deprecated.  
Variant(long value)
          Deprecated.  
Variant(Object value)
          Deprecated.  
Variant(short value)
          Deprecated.  
Variant(String value)
          Deprecated.  
Variant(Variant value)
          Deprecated.  
 
Method Summary
 boolean getBoolean()
          Deprecated. getBoolean returns the value as a boolean.
 byte getByte()
          Deprecated. getByte returns the value as a byte.
 char getChar()
          Deprecated. getChar returns the value as a char.
 org.w3c.dom.Document getDocument()
          Deprecated. getDocument returns the value as a Document.
 org.w3c.dom.DocumentFragment getDocumentFragment()
          Deprecated. getDocumentFragment returns the value as a DocumentFragment.
 double getDouble()
          Deprecated. getDouble returns the value as a double.
 org.w3c.dom.Element getElement()
          Deprecated. getElement returns the value as an Element.
 float getFloat()
          Deprecated. getFloat returns the value as a float.
 int getInt()
          Deprecated. getInt returns the value as an int.
 long getLong()
          Deprecated. getLong returns the value as a long.
 Object getObject()
          Deprecated. getObject returns the value as an Object.
 short getShort()
          Deprecated. getShort returns the value as a short.
 String getString()
          Deprecated. getString returns the value as a String.
 int getType()
          Deprecated. getType returns the type of the variable being stored in the Variant.
 boolean isNull()
          Deprecated. isNull returns whether or not the variable is storing a null value.
 void set(boolean value)
          Deprecated. set sets the value as a boolean.
 void set(byte value)
          Deprecated. set sets the value as a byte.
 void set(char value)
          Deprecated. set sets the value as a char.
 void set(org.w3c.dom.Document value)
          Deprecated. set sets the value as a Document.
 void set(org.w3c.dom.DocumentFragment value)
          Deprecated. set sets the value as a DocumentFragment.
 void set(double value)
          Deprecated. set sets the value as a double.
 void set(org.w3c.dom.Element value)
          Deprecated. set sets the value as an Element.
 void set(float value)
          Deprecated. set sets the value as a float.
 void set(int value)
          Deprecated. set sets the value as an int.
 void set(long value)
          Deprecated. set sets the value as a long.
 void set(Object value)
          Deprecated. set sets the value as an Object.
 void set(short value)
          Deprecated. set sets the value as a short
 void set(String value)
          Deprecated. set sets the value as a String.
 String toString()
          Deprecated. toString returns the value as a Stringified representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Variant

public Variant()
Deprecated. 

Variant

public Variant(Variant value)
Deprecated. 

Variant

public Variant(String value)
Deprecated. 

Variant

public Variant(boolean value)
Deprecated. 

Variant

public Variant(byte value)
Deprecated. 

Variant

public Variant(char value)
Deprecated. 

Variant

public Variant(short value)
Deprecated. 

Variant

public Variant(int value)
Deprecated. 

Variant

public Variant(long value)
Deprecated. 

Variant

public Variant(float value)
Deprecated. 

Variant

public Variant(double value)
Deprecated. 

Variant

public Variant(org.w3c.dom.Element value)
Deprecated. 

Variant

public Variant(org.w3c.dom.Document value)
Deprecated. 

Variant

public Variant(org.w3c.dom.DocumentFragment value)
Deprecated. 

Variant

public Variant(Object value)
Deprecated. 
Method Detail

getType

public int getType()
Deprecated. 
getType returns the type of the variable being stored in the Variant.
Returns:
The variable type

isNull

public boolean isNull()
Deprecated. 
isNull returns whether or not the variable is storing a null value.

set

public void set(String value)
Deprecated. 
set sets the value as a String.
Parameters:
value - The value

set

public void set(boolean value)
Deprecated. 
set sets the value as a boolean.
Parameters:
value - The value

set

public void set(byte value)
Deprecated. 
set sets the value as a byte.
Parameters:
value - The value

set

public void set(char value)
Deprecated. 
set sets the value as a char.
Parameters:
value - The value

set

public void set(short value)
Deprecated. 
set sets the value as a short
Parameters:
value - The value

set

public void set(int value)
Deprecated. 
set sets the value as an int.
Parameters:
value - The value

set

public void set(long value)
Deprecated. 
set sets the value as a long.
Parameters:
value - The value

set

public void set(float value)
Deprecated. 
set sets the value as a float.
Parameters:
value - The value

set

public void set(double value)
Deprecated. 
set sets the value as a double.
Parameters:
value - The value

set

public void set(org.w3c.dom.Element value)
Deprecated. 
set sets the value as an Element.
Parameters:
value - The value

set

public void set(org.w3c.dom.Document value)
Deprecated. 
set sets the value as a Document.
Parameters:
value - The value

set

public void set(org.w3c.dom.DocumentFragment value)
Deprecated. 
set sets the value as a DocumentFragment.
Parameters:
value - The value

set

public void set(Object value)
Deprecated. 
set sets the value as an Object.
Parameters:
value - The value

getString

public String getString()
Deprecated. 
getString returns the value as a String.
Returns:
The value

getBoolean

public boolean getBoolean()
Deprecated. 
getBoolean returns the value as a boolean.
Returns:
The value

getByte

public byte getByte()
Deprecated. 
getByte returns the value as a byte.
Returns:
The value

getChar

public char getChar()
Deprecated. 
getChar returns the value as a char.
Returns:
The value

getShort

public short getShort()
Deprecated. 
getShort returns the value as a short.
Returns:
The value

getInt

public int getInt()
Deprecated. 
getInt returns the value as an int.
Returns:
The value

getLong

public long getLong()
Deprecated. 
getLong returns the value as a long.
Returns:
The value

getFloat

public float getFloat()
Deprecated. 
getFloat returns the value as a float.
Returns:
The value

getDouble

public double getDouble()
Deprecated. 
getDouble returns the value as a double.
Returns:
The value

getElement

public org.w3c.dom.Element getElement()
Deprecated. 
getElement returns the value as an Element.
Returns:
The value

getDocument

public org.w3c.dom.Document getDocument()
Deprecated. 
getDocument returns the value as a Document.
Returns:
The value

getDocumentFragment

public org.w3c.dom.DocumentFragment getDocumentFragment()
Deprecated. 
getDocumentFragment returns the value as a DocumentFragment.
Returns:
The value

getObject

public Object getObject()
Deprecated. 
getObject returns the value as an Object.
Returns:
The value

toString

public String toString()
Deprecated. 
toString returns the value as a Stringified representation.
Overrides:
toString in class Object
Returns:
The stringified value

Xindice API
version 1.1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.