org.spicefactory.pimento.metamodel.impl
Class TypeImpl

java.lang.Object
  extended by org.spicefactory.pimento.metamodel.impl.TypeImpl
All Implemented Interfaces:
Externalizable, Type
Direct Known Subclasses:
BasicImpl, ManagedTypeImpl

public abstract class TypeImpl
extends Object
implements Type, Externalizable

Default implementation of the Type interface.

Author:
Jens Halm

Constructor Summary
protected TypeImpl(Class<?> javaType)
          Creates a new instance.
 
Method Summary
 Class<?> getJavaType()
          Returns the Java type.
 void readExternal(DataInput in)
          Restores the content of this object from the DataInput instance.
 void writeExternal(DataOutput out)
          Saves the content of this object to the DataOutput instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeImpl

protected TypeImpl(Class<?> javaType)
Creates a new instance.

Parameters:
javaType - the Java type
Method Detail

getJavaType

public Class<?> getJavaType()
Description copied from interface: Type
Returns the Java type.

Specified by:
getJavaType in interface Type
Returns:
the Java type

writeExternal

public void writeExternal(DataOutput out)
Description copied from interface: Externalizable
Saves the content of this object to the DataOutput instance.

Specified by:
writeExternal in interface Externalizable
Parameters:
out - the output to write to

readExternal

public void readExternal(DataInput in)
Description copied from interface: Externalizable
Restores the content of this object from the DataInput instance. Values must be read in the same sequence as they were written on the client side.

Specified by:
readExternal in interface Externalizable
Parameters:
in - the AMF3 data to read from