org.codehaus.xfire.aegis.type
Class SimpleType

java.lang.Object
  extended by org.codehaus.xfire.aegis.type.Type
      extended by org.codehaus.xfire.aegis.type.SimpleType
All Implemented Interfaces:
org.codehaus.xfire.wsdl.WSDLType
Direct Known Subclasses:
BooleanType, DateTimeType, DateType, DoubleType, IntegerType, LongType

public class SimpleType
extends Type

An Aegis Type. Something that is read/written.

Since:
Aug 19, 2004
Author:
Dan Diephouse

Constructor Summary
SimpleType()
           
 
Method Summary
 java.lang.Object coerceString(java.lang.String string)
          Coerce the string to an object (i.e.
 java.lang.String coerceValue(java.lang.Object value)
          Coerce a value to a string (i.e.
 void configure(org.dom4j.Element configuration, AegisService service, TypeRegistry reg)
           
 org.dom4j.QName getDefaultSchemaType()
           
 java.lang.String getKey()
           
 void read(org.dom4j.Element element, int occurrence, java.util.Map context)
           
 void read(org.dom4j.Element element, java.util.Map context)
           
 void setKey(java.lang.String key)
           
 void write(org.dom4j.Element element, java.util.Map context)
           
 void writeSchema(org.dom4j.Element element)
           
 
Methods inherited from class org.codehaus.xfire.aegis.type.Type
getDependencies, getDocumentation, getMaxOccurs, getMinOccurs, getName, getOgnl, getQName, getSchemaType, isComplex, setDocumentation, setMaxOccurs, setMinOccurs, setName, setOgnl, setQName, setSchemaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleType

public SimpleType()
Method Detail

coerceValue

public java.lang.String coerceValue(java.lang.Object value)
Coerce a value to a string (i.e. create a ISO-8601 string from a Date).

Parameters:
value -
Returns:

coerceString

public java.lang.Object coerceString(java.lang.String string)
Coerce the string to an object (i.e. create a date from a string).

Parameters:
string -
Returns:

write

public void write(org.dom4j.Element element,
                  java.util.Map context)
           throws org.codehaus.xfire.fault.XFireFault
Specified by:
write in class Type
Throws:
org.codehaus.xfire.fault.XFireFault

read

public void read(org.dom4j.Element element,
                 java.util.Map context)
          throws org.codehaus.xfire.fault.XFireFault
Specified by:
read in class Type
Throws:
org.codehaus.xfire.fault.XFireFault

read

public void read(org.dom4j.Element element,
                 int occurrence,
                 java.util.Map context)
          throws org.codehaus.xfire.fault.XFireFault
Specified by:
read in class Type
Throws:
org.codehaus.xfire.fault.XFireFault
See Also:
Type.read(org.dom4j.Element, int, java.util.Map)

writeSchema

public void writeSchema(org.dom4j.Element element)
Specified by:
writeSchema in interface org.codehaus.xfire.wsdl.WSDLType
Specified by:
writeSchema in class Type
See Also:
Type.writeSchema(org.dom4j.Element)

configure

public void configure(org.dom4j.Element configuration,
                      AegisService service,
                      TypeRegistry reg)
Specified by:
configure in class Type
See Also:
org.codehaus.xfire.aegis.type.Type#configure(org.dom4j.Element)

getDefaultSchemaType

public org.dom4j.QName getDefaultSchemaType()

getKey

public java.lang.String getKey()

setKey

public void setKey(java.lang.String key)


Copyright © 2004 Codehaus. All Rights Reserved.