org.geotools.validation.xml
Class ArgHelper

java.lang.Object
  extended byorg.geotools.validation.xml.ArgHelper

public class ArgHelper
extends java.lang.Object

ArgHelper purpose.

Version:
$Id: ArgHelper.java 17704 2006-01-23 00:26:16Z desruisseaux $
Author:
dzwiers, Refractions Research, Inc., $Author: dmzwiers $ (last modification)

Nested Class Summary
protected static class ArgHelper.BooleanMapping
          BooleanMapping purpose.
protected static class ArgHelper.DateMapping
          DateMapping purpose.
protected static class ArgHelper.DoubleMapping
          DoubleMapping purpose.
protected static class ArgHelper.EnvelopeMapping
          EnvelopeMapping purpose.
protected static class ArgHelper.FilterMapping
          FilterMapping purpose.
protected static class ArgHelper.FloatMapping
          FloatMapping purpose.
protected static class ArgHelper.GeometryMapping
          GeometryMapping purpose.
protected static class ArgHelper.IntegerMapping
          IntegerMapping purpose.
protected static class ArgHelper.LongMapping
          LongMapping purpose.
protected static interface ArgHelper.Mapping
          Mapping purpose.
protected static class ArgHelper.ShortMapping
          ShortMapping purpose.
protected static class ArgHelper.StringMapping
          StringMapping purpose.
protected static class ArgHelper.URIMapping
          URIMapping purpose.
 
Constructor Summary
ArgHelper()
           
 
Method Summary
static java.lang.String getArgumentEncoding(java.lang.Object o)
          getArgumentEncoding purpose.
static java.lang.Object getArgumentInstance(java.lang.String elementName, org.w3c.dom.Element value)
          getArgumentInstance purpose.
static java.lang.Object getArgumentInstance(java.lang.String elementName, java.lang.String value)
          getArgumentInstance purpose.
static java.lang.String getArgumentStringEncoding(java.lang.Object o)
           
static java.lang.String getArgumentType(java.lang.Object o)
          getArgumentType purpose.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgHelper

public ArgHelper()
Method Detail

getArgumentInstance

public static java.lang.Object getArgumentInstance(java.lang.String elementName,
                                                   org.w3c.dom.Element value)
                                            throws ValidationException
getArgumentInstance purpose.

Returns an instance for the specified argument type from the Element provided.

Parameters:
elementName - String the argument element name (type name).
value - Element the element to create the Argument from.
Returns:
The Specified argument in Object form.
Throws:
ValidationException - DOCUMENT ME!
java.lang.NullPointerException - DOCUMENT ME!

getArgumentInstance

public static java.lang.Object getArgumentInstance(java.lang.String elementName,
                                                   java.lang.String value)
                                            throws ValidationException
getArgumentInstance purpose.

Returns an instance for the specified argument type from the Element provided.

Parameters:
elementName - String the argument element name (type name).
value - String the element to create the Argument from.
Returns:
The Specified argument in Object form.
Throws:
ValidationException - DOCUMENT ME!
java.lang.NullPointerException - DOCUMENT ME!

getArgumentType

public static java.lang.String getArgumentType(java.lang.Object o)
getArgumentType purpose.

Finds the appropriate argument type if one exists.

Parameters:
o - The Object to search for it's type.
Returns:
The Object type or "" if not found.
Throws:
java.lang.NullPointerException - DOCUMENT ME!

getArgumentEncoding

public static java.lang.String getArgumentEncoding(java.lang.Object o)
                                            throws ValidationException
getArgumentEncoding purpose.

Creates an XML encodeing of the Object if it is a known argument type.

Parameters:
o - Object the object to attempt to encode.
Returns:
an XML string if it is a known type, "" otherwise.
Throws:
ValidationException - DOCUMENT ME!
java.lang.NullPointerException - DOCUMENT ME!

getArgumentStringEncoding

public static java.lang.String getArgumentStringEncoding(java.lang.Object o)


Copyright © GeoTools. All Rights Reserved.