org.apache.ws.jaxme.js.impl
Class TypedValueImpl

java.lang.Object
  extended by org.apache.ws.jaxme.js.impl.TypedValueImpl
All Implemented Interfaces:
IndentedObject, TypedValue

public class TypedValueImpl
extends java.lang.Object
implements TypedValue, IndentedObject

Default implementation of a typed value.


Constructor Summary
TypedValueImpl(java.lang.Object pValue, java.lang.Class pType)
          Creates a new instance with the given value and the given type.
TypedValueImpl(java.lang.Object pValue, JavaQName pType)
          Creates a new instance with the given value and the given type.
 
Method Summary
 JavaQName getType()
          Returns the objects type.
 void write(IndentationEngine pEngine, IndentationTarget pTarget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypedValueImpl

public TypedValueImpl(java.lang.Object pValue,
                      JavaQName pType)
Creates a new instance with the given value and the given type.


TypedValueImpl

public TypedValueImpl(java.lang.Object pValue,
                      java.lang.Class pType)
Creates a new instance with the given value and the given type.

Method Detail

getType

public JavaQName getType()
Description copied from interface: TypedValue
Returns the objects type.

Specified by:
getType in interface TypedValue

write

public void write(IndentationEngine pEngine,
                  IndentationTarget pTarget)
           throws java.io.IOException
Specified by:
write in interface IndentedObject
Throws:
java.io.IOException