org.apache.xmlrpc

Class XmlRpc.Value

class XmlRpc.Value extends Object

This represents a XML-RPC value parsed from the request.
Field Summary
Vectorarray
StringnextMemberName
Hashtablestruct
inttype
Objectvalue
Constructor Summary
Value()
Constructor.
Method Summary
voidcharacterData(String cdata)
Set the character data for the element and interpret it according to the element type.
voidendElement(XmlRpc.Value child)
Notification that a new child element has been parsed.
inthashCode()
This is a performance hack to get the type of a value without casting the Object.
voidsetType(int type)
Set the type of this value.
StringtoString()

Field Detail

array

Vector array

nextMemberName

String nextMemberName

struct

Hashtable struct

type

int type

value

Object value

Constructor Detail

Value

public Value()
Constructor.

Method Detail

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.