|
||||||||||
| 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(java.lang.String xml,
java.lang.Class<T> type)
Marshal the xml to the model definition |
|
static java.lang.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 java.lang.String dumpModelAsXml(OptionalIdentifiedDefinition definition)
throws javax.xml.bind.JAXBException
definition - the definition, such as a RouteDefinition
javax.xml.bind.JAXBException - is throw if error marshalling to XML
public static <T extends OptionalIdentifiedDefinition> T createModelFromXml(java.lang.String xml,
java.lang.Class<T> type)
throws javax.xml.bind.JAXBException
xml - the xmltype - the definition type to return, will throw a ClassCastException if not the expected type
javax.xml.bind.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 | |||||||||