org.java.plugin.extension.converter
Class StringConverter<T>

java.lang.Object
  extended by org.java.plugin.extension.converter.StringConverter<T>
Type Parameters:
T - target type
All Implemented Interfaces:
Converter<java.lang.String,T>, ExtendedConverter<java.lang.String,T>
Direct Known Subclasses:
Converters.String2File, Converters.String2Url, TypeConverter

public abstract class StringConverter<T>
extends java.lang.Object
implements ExtendedConverter<java.lang.String,T>

Converts Strings to target type. Extend this to create new String converter.

Author:
Thasso Griebel (thasso.griebel@gmail.com)

Constructor Summary
StringConverter()
           
 
Method Summary
 java.lang.reflect.Type getSource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.java.plugin.extension.converter.ExtendedConverter
getTarget
 
Methods inherited from interface org.java.plugin.extension.converter.Converter
convert
 

Constructor Detail

StringConverter

public StringConverter()
Method Detail

getSource

public java.lang.reflect.Type getSource()
Specified by:
getSource in interface ExtendedConverter<java.lang.String,T>
Returns:
String.class as source type


Copyright © 2010. All Rights Reserved.