org.apache.activemq.util.oxm
Enum AbstractXMLMessageTransformer.MessageTransform
java.lang.Object
java.lang.Enum<AbstractXMLMessageTransformer.MessageTransform>
org.apache.activemq.util.oxm.AbstractXMLMessageTransformer.MessageTransform
- All Implemented Interfaces:
- Serializable, Comparable<AbstractXMLMessageTransformer.MessageTransform>
- Enclosing class:
- AbstractXMLMessageTransformer
public static enum AbstractXMLMessageTransformer.MessageTransform
- extends Enum<AbstractXMLMessageTransformer.MessageTransform>
Defines the type of transformation. If XML (default), - producer
transformation transforms from Object to XML. - consumer transformation
transforms from XML to Object. If OBJECT, - producer transformation
transforms from XML to Object. - consumer transformation transforms from
Object to XML. If ADAPTIVE, - producer transformation transforms from
Object to XML, or XML to Object depending on the type of the original
message - consumer transformation transforms from XML to Object, or
Object to XML depending on the type of the original message
XML
public static final AbstractXMLMessageTransformer.MessageTransform XML
OBJECT
public static final AbstractXMLMessageTransformer.MessageTransform OBJECT
ADAPTIVE
public static final AbstractXMLMessageTransformer.MessageTransform ADAPTIVE
values
public static AbstractXMLMessageTransformer.MessageTransform[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (AbstractXMLMessageTransformer.MessageTransform c : AbstractXMLMessageTransformer.MessageTransform.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AbstractXMLMessageTransformer.MessageTransform valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.