Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdeveloper.audit.extension
Interface Converter<T>

All Known Implementing Classes:
BooleanConverter, ByteConverter, CharacterConverter, DoubleConverter, EnumConverter, FloatConverter, IntegerConverter, LongConverter, ShortConverter, StringConverter, TypeSafeEnumerationConverter

public interface Converter<T>

An interface for an object which converts between values of a specified type and strings.


Method Summary
 java.lang.Class<T> getType()
          Gets the type of the values converted by this converter.
 java.lang.String getTypeDescription()
          Gets a description of the type of the values converted by this converter.
 java.lang.String toString(T value, java.lang.Class<? extends T> type)
          Converts a value to a string.
 T toValue(java.lang.String string, java.lang.Class<? extends T> type)
          Converts a string to a value.
 

Method Detail

getType

java.lang.Class<T> getType()
Gets the type of the values converted by this converter.


getTypeDescription

java.lang.String getTypeDescription()
Gets a description of the type of the values converted by this converter.


toValue

T toValue(java.lang.String string,
          java.lang.Class<? extends T> type)
          throws java.lang.Exception
Converts a string to a value.

Throws:
java.lang.Exception

toString

java.lang.String toString(T value,
                          java.lang.Class<? extends T> type)
                          throws java.lang.Exception
Converts a value to a string.

Throws:
java.lang.Exception

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.