org.apache.camel.model
Class DataFormatDefinition

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.model.DataFormatDefinition
Direct Known Subclasses:
BindyDataFormat, CastorDataFormat, CsvDataFormat, FlatpackDataFormat, GzipDataFormat, HL7DataFormat, JaxbDataFormat, JsonDataFormat, ProtobufDataFormat, RssDataFormat, SerializationDataFormat, StringDataFormat, TidyMarkupDataFormat, XMLBeansDataFormat, XMLSecurityDataFormat, XStreamDataFormat, ZipDataFormat

public class DataFormatDefinition
extends IdentifiedType

Represents the base XML type for DataFormat.

Version:
$Revision: 16262 $

Constructor Summary
  DataFormatDefinition()
           
  DataFormatDefinition(DataFormat dataFormat)
           
protected DataFormatDefinition(String dataFormatName)
           
 
Method Summary
protected  void configureDataFormat(DataFormat dataFormat)
          Allows derived classes to customize the data format
protected  DataFormat createDataFormat(RouteContext routeContext)
          Factory method to create the data format instance
 DataFormat getDataFormat()
           
 DataFormat getDataFormat(RouteContext routeContext)
           
static DataFormat getDataFormat(RouteContext routeContext, DataFormatDefinition type, String ref)
          Factory method to create the data format
 String getDataFormatName()
           
 String getShortName()
           
 void setDataFormat(DataFormat dataFormat)
           
 void setDataFormatName(String dataFormatName)
           
protected  void setProperty(Object bean, String name, Object value)
          Sets a named property on the data format instance using introspection
 
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataFormatDefinition

public DataFormatDefinition()

DataFormatDefinition

public DataFormatDefinition(DataFormat dataFormat)

DataFormatDefinition

protected DataFormatDefinition(String dataFormatName)
Method Detail

getDataFormat

public static DataFormat getDataFormat(RouteContext routeContext,
                                       DataFormatDefinition type,
                                       String ref)
Factory method to create the data format

Parameters:
routeContext - route context
type - the data format type
ref - reference to lookup for a data format
Returns:
the data format or null if not possible to create

getDataFormat

public DataFormat getDataFormat(RouteContext routeContext)

createDataFormat

protected DataFormat createDataFormat(RouteContext routeContext)
Factory method to create the data format instance


configureDataFormat

protected void configureDataFormat(DataFormat dataFormat)
Allows derived classes to customize the data format


setProperty

protected void setProperty(Object bean,
                           String name,
                           Object value)
Sets a named property on the data format instance using introspection


getDataFormatName

public String getDataFormatName()

setDataFormatName

public void setDataFormatName(String dataFormatName)

getDataFormat

public DataFormat getDataFormat()

setDataFormat

public void setDataFormat(DataFormat dataFormat)

getShortName

public String getShortName()


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.