wyvern.util
Class XMLParams

java.lang.Object
  extended bywyvern.util.XMLParams

public class XMLParams
extends java.lang.Object

Wrapper class for client/server XML protocol requests, which have "param" elements with "name" and "value" attributes. Used a lot in the client, probably not useful in the server.

Version:
1.0, Jul 29, 2003
Author:
Steve Yegge

Constructor Summary
XMLParams(XMLSimple.Element root)
          Constructs a new XMLParams for the specified XMLSimple.Element
 
Method Summary
 boolean containsKey(java.lang.String name)
          Returns true if the specified key is in this map.
 java.lang.String get(java.lang.String name)
          Returns a named value as a String.
 java.lang.Object getObj(java.lang.String name)
          Returns a named value as an Object
 void put(java.lang.String name, java.lang.Object value)
          Puts a value into the map.
 java.lang.String toString()
          Returns debugging string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLParams

public XMLParams(XMLSimple.Element root)
Constructs a new XMLParams for the specified XMLSimple.Element

Parameters:
root - the request object
Method Detail

get

public java.lang.String get(java.lang.String name)
Returns a named value as a String.


put

public void put(java.lang.String name,
                java.lang.Object value)
Puts a value into the map.


containsKey

public boolean containsKey(java.lang.String name)
Returns true if the specified key is in this map.


getObj

public java.lang.Object getObj(java.lang.String name)
Returns a named value as an Object


toString

public java.lang.String toString()
Returns debugging string.