2016/05/28 - Apache Tuscany has been retired.
For more information, please explore the Attic.
org.apache.tuscany.sca.databinding.axiom
Class Exception2OMElement
java.lang.Object
org.apache.tuscany.sca.databinding.impl.BaseTransformer<java.lang.Object,T>
org.apache.tuscany.sca.databinding.javabeans.JavaBean2XMLTransformer<OMElement>
org.apache.tuscany.sca.databinding.axiom.Exception2OMElement
- All Implemented Interfaces:
- PullTransformer<java.lang.Object,OMElement>, Transformer
public class Exception2OMElement
- extends JavaBean2XMLTransformer<OMElement>
Method Summary |
void |
appendChild(OMElement parentElement,
OMElement childElement)
Add the child element to the parent |
void |
appendText(OMElement parentElement,
java.lang.String textData)
Create a text node and add it to the parent |
OMElement |
createElement(javax.xml.namespace.QName qName)
Create an element with the given name |
java.lang.Class |
getTargetType()
|
protected boolean |
isMappedGetter(java.lang.String methodName)
|
OMElement |
transform(java.lang.Object source,
TransformationContext context)
Transform source data into the result type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GETCAUSE
public static final java.lang.String GETCAUSE
- See Also:
- Constant Field Values
GETLOCALIZEDMESSAGE
public static final java.lang.String GETLOCALIZEDMESSAGE
- See Also:
- Constant Field Values
GETSTACKTRACE
public static final java.lang.String GETSTACKTRACE
- See Also:
- Constant Field Values
GETCLASS
public static final java.lang.String GETCLASS
- See Also:
- Constant Field Values
Exception2OMElement
public Exception2OMElement()
transform
public OMElement transform(java.lang.Object source,
TransformationContext context)
- Description copied from interface:
PullTransformer
- Transform source data into the result type.
- Specified by:
transform
in interface PullTransformer<java.lang.Object,OMElement>
- Overrides:
transform
in class JavaBean2XMLTransformer<OMElement>
- Parameters:
source
- The source datacontext
- The context for the transformation
- Returns:
- The transformed result
isMappedGetter
protected boolean isMappedGetter(java.lang.String methodName)
- Overrides:
isMappedGetter
in class JavaBean2XMLTransformer<OMElement>
appendChild
public void appendChild(OMElement parentElement,
OMElement childElement)
throws Java2XMLMapperException
- Description copied from class:
JavaBean2XMLTransformer
- Add the child element to the parent
- Specified by:
appendChild
in class JavaBean2XMLTransformer<OMElement>
- Throws:
Java2XMLMapperException
createElement
public OMElement createElement(javax.xml.namespace.QName qName)
throws Java2XMLMapperException
- Description copied from class:
JavaBean2XMLTransformer
- Create an element with the given name
- Specified by:
createElement
in class JavaBean2XMLTransformer<OMElement>
- Returns:
-
- Throws:
Java2XMLMapperException
appendText
public void appendText(OMElement parentElement,
java.lang.String textData)
throws Java2XMLMapperException
- Description copied from class:
JavaBean2XMLTransformer
- Create a text node and add it to the parent
- Specified by:
appendText
in class JavaBean2XMLTransformer<OMElement>
- Throws:
Java2XMLMapperException
getTargetType
public java.lang.Class getTargetType()
- Specified by:
getTargetType
in class BaseTransformer<java.lang.Object,OMElement>