|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.model.IdentifiedType
org.apache.camel.model.dataformat.DataFormatType
public class DataFormatType
Represents the base XML type for DataFormat.
Constructor Summary | |
---|---|
|
DataFormatType()
|
|
DataFormatType(DataFormat dataFormat)
|
protected |
DataFormatType(String dataFormatTypeName)
|
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(RouteContext routeContext)
|
static DataFormat |
getDataFormat(RouteContext routeContext,
DataFormatType type,
String ref)
|
void |
marshal(Exchange exchange,
Object graph,
OutputStream stream)
Marshals the object to the given Stream. |
protected void |
setProperty(Object bean,
String name,
Object value)
Sets a named property on the data format instance using introspection |
Object |
unmarshal(Exchange exchange,
InputStream stream)
Unmarshals the given stream into an object. |
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 |
---|
public DataFormatType()
public DataFormatType(DataFormat dataFormat)
protected DataFormatType(String dataFormatTypeName)
Method Detail |
---|
public static DataFormat getDataFormat(RouteContext routeContext, DataFormatType type, String ref)
public void marshal(Exchange exchange, Object graph, OutputStream stream) throws Exception
DataFormat
marshal
in interface DataFormat
exchange
- the current exchangegraph
- the object to be marshalledstream
- the output stream to write the marshalled rersult to
Exception
- can be thrownpublic Object unmarshal(Exchange exchange, InputStream stream) throws Exception
DataFormat
unmarshal
in interface DataFormat
exchange
- the current exchangestream
- the input stream with the object to be unmarshalled
Exception
- can be thrownpublic DataFormat getDataFormat(RouteContext routeContext)
protected DataFormat createDataFormat(RouteContext routeContext)
protected void configureDataFormat(DataFormat dataFormat)
protected void setProperty(Object bean, String name, Object value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |