org.apache.ws.jaxme.js.impl

Class TypedValueImpl

Implemented Interfaces:
IndentedObject, TypedValue

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

Default implementation of a typed value.

Constructor Summary

TypedValueImpl(Object pValue, Class pType)
Creates a new instance with the given value and the given type.
TypedValueImpl(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)

Constructor Details

TypedValueImpl

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

TypedValueImpl

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

Method Details

getType

public JavaQName getType()
Returns the objects type.
Specified by:
getType in interface TypedValue

write

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