org.apache.xmlrpc

Class XmlRpc.Value

Enclosing Class:
XmlRpc

(package private) class XmlRpc.Value
extends java.lang.Object

This represents a XML-RPC value parsed from the request.

Field Summary

(package private) Vector
array
(package private) String
nextMemberName
(package private) Hashtable
struct
(package private) int
type
(package private) Object
value

Constructor Summary

Value()
Constructor.

Method Summary

void
characterData(String cdata)
Set the character data for the element and interpret it according to the element type.
void
endElement(XmlRpc.Value child)
Notification that a new child element has been parsed.
int
hashCode()
This is a performance hack to get the type of a value without casting the Object.
void
setType(int type)
Set the type of this value.
String
toString()

Field Details

array

(package private)  Vector array

nextMemberName

(package private)  String nextMemberName

struct

(package private)  Hashtable struct

type

(package private)  int type

value

(package private)  Object value

Constructor Details

Value

public Value()
Constructor.

Method Details

characterData

public void characterData(String cdata)
Set the character data for the element and interpret it according to the element type.

endElement

public void endElement(XmlRpc.Value child)
Notification that a new child element has been parsed.

hashCode

public int hashCode()
This is a performance hack to get the type of a value without casting the Object. It breaks the contract of method hashCode, but it doesn't matter since Value objects are never used as keys in Hashtables.

setType

public void setType(int type)
Set the type of this value. If it's a container, create the corresponding java container.

toString

public String toString()
Returns:

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.