Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E10684-06


oracle.adf.view.rich.datatransfer
Class ClientFlavorDecoder<T>

java.lang.Object
  extended by oracle.adf.view.rich.datatransfer.ClientFlavorDecoder<T>


public abstract class ClientFlavorDecoder<T>
extends java.lang.Object

Class for decoding data received from the client to the appropriate TransferData after the Marshalling subsystem's default type conversion has already been applied. Implementations should be registered during application initialization on the MarshallingService.

See Also:
MarshallingService.registerJSDecoder(java.lang.String, java.lang.String, oracle.adf.view.rich.datatransfer.ClientFlavorDecoder )

Constructor Summary
ClientFlavorDecoder()
           

 

Method Summary
abstract  TransferData<T> decode(javax.faces.context.FacesContext context, java.lang.String clientFlavorKind, java.lang.String clientFlavorDiscriminant, java.lang.Object data)
          Converts the data to the desired TransferData instance, throwsing a ParseException if conversion is not possible.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ClientFlavorDecoder

public ClientFlavorDecoder()

Method Detail

decode

public abstract TransferData<T> decode(javax.faces.context.FacesContext context,
                                       java.lang.String clientFlavorKind,
                                       java.lang.String clientFlavorDiscriminant,
                                       java.lang.Object data)
                                throws ParseException
Converts the data to the desired TransferData instance, throwsing a ParseException if conversion is not possible.
Parameters:
context - FacesContext
clientFlavorKind - String identifying the source client data flavor kind
clientFlavorDiscriminant - String identifying the source client data flavor discriminant, if any
data - Type converted data to convert to the appropriate TransferData
Returns:
A TransferData holding the desired output data
Throws:
ParseException - If data is not convertible to the desired TransferData

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1)
E10684-06


Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.