|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.util.ModelHelper
public final class ModelHelper
Helper for the Camel model
classes.
Method Summary | ||
---|---|---|
static
|
createModelFromXml(String xml,
Class<T> type)
Marshal the xml to the model definition |
|
static String |
dumpModelAsXml(OptionalIdentifiedDefinition definition)
Dumps the definition as XML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String dumpModelAsXml(OptionalIdentifiedDefinition definition) throws JAXBException
definition
- the definition, such as a RouteDefinition
JAXBException
- is throw if error marshalling to XMLpublic static <T extends OptionalIdentifiedDefinition> T createModelFromXml(String xml, Class<T> type) throws JAXBException
xml
- the xmltype
- the definition type to return, will throw a ClassCastException
if not the expected type
JAXBException
- is thrown if error unmarshalling from xml to model
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |