JBoss Wise API

org.jboss.wise.smooks.decoders
Class JAXBElementDecoder

java.lang.Object
  extended by org.jboss.wise.smooks.decoders.JAXBElementDecoder
All Implemented Interfaces:
org.milyn.javabean.DataDecoder

@DecodeType(value=javax.xml.bind.JAXBElement.class)
public class JAXBElementDecoder
extends java.lang.Object
implements org.milyn.javabean.DataDecoder

Duration data decoder.

Decodes the supplied string into a JAXBElement It requires 2 parameter to build QName for JAXBElement. IOW what it does under the wood is: new JAXBElement(new QName(nameSpaceURI, localPart), String.class, data);


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.milyn.javabean.DataDecoder
org.milyn.javabean.DataDecoder.Factory
 
Constructor Summary
JAXBElementDecoder()
           
 
Method Summary
 java.lang.Object decode(java.lang.String data)
           
 void setConfiguration(org.milyn.cdr.SmooksResourceConfiguration resourceConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBElementDecoder

public JAXBElementDecoder()
Method Detail

setConfiguration

public void setConfiguration(org.milyn.cdr.SmooksResourceConfiguration resourceConfig)
                      throws org.milyn.cdr.SmooksConfigurationException
Throws:
org.milyn.cdr.SmooksConfigurationException

decode

public java.lang.Object decode(java.lang.String data)
                        throws org.milyn.javabean.DataDecodeException
Specified by:
decode in interface org.milyn.javabean.DataDecoder
Throws:
org.milyn.javabean.DataDecodeException

JBoss Wise API

Copyright © 2008-2009 Jboss.org. All Rights Reserved.