javax.rad.type
Class StringType

java.lang.Object
  extended by javax.rad.type.AbstractType<T>
      extended by javax.rad.type.AbstractComparableType<String>
          extended by javax.rad.type.StringType
All Implemented Interfaces:
IType<String>

public class StringType
extends AbstractComparableType<String>

The StringType is a platform independent definition of String.


Field Summary
 
Fields inherited from interface javax.rad.type.IType
UNKNOWN_TYPE
 
Constructor Summary
StringType()
          Constructs a new StringType.
 
Method Summary
 Class<String> getTypeClass()
          Returns the class used by this type.
 String valueOf(Object pObject)
          Converts the object to an Object which is an instance of type class.
 
Methods inherited from class javax.rad.type.AbstractComparableType
compareTo
 
Methods inherited from class javax.rad.type.AbstractType
equals, getTypeFromClass, getTypeFromObject, hashCode, registerType, toString, validatedValueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringType

public StringType()
Constructs a new StringType.

Method Detail

getTypeClass

public Class<String> getTypeClass()
Returns the class used by this type.

Returns:
the class used by this type.

valueOf

public String valueOf(Object pObject)
Converts the object to an Object which is an instance of type class.

Specified by:
valueOf in interface IType<String>
Overrides:
valueOf in class AbstractType<String>
Parameters:
pObject - the Object to convert
Returns:
the Object which is an instance of type class.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.