|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.databinding.impl.BaseTransformer<java.lang.Object,T> org.apache.tuscany.sca.databinding.javabeans.JavaBean2XMLTransformer<T>
public abstract class JavaBean2XMLTransformer<T>
Transformer to convert data from a JavaBean object to xml
Field Summary | |
---|---|
static java.lang.String |
FWD_SLASH
|
static java.lang.String |
GET
|
static java.lang.String |
HTTP
|
protected SimpleTypeMapperImpl |
mapper
|
static java.lang.String |
PERIOD
|
static java.lang.String |
PREFIX
|
Constructor Summary | |
---|---|
JavaBean2XMLTransformer()
|
Method Summary | |
---|---|
abstract void |
appendChild(T parentElement,
T childElement)
Add the child element to the parent |
abstract void |
appendText(T parentElement,
java.lang.String textData)
Create a text node and add it to the parent |
abstract T |
createElement(javax.xml.namespace.QName qName)
Create an element with the given name |
java.lang.String |
getNexPrefix()
|
java.lang.String |
getSourceDataBinding()
Get the source type that this transformer transforms data from. |
java.lang.Class<java.lang.Object> |
getSourceType()
|
int |
getWeight()
Get the cost of the transformation. |
protected boolean |
isMappedGetter(java.lang.String methodName)
|
T |
transform(java.lang.Object source,
TransformationContext context)
Transform source data into the result type. |
Methods inherited from class org.apache.tuscany.sca.databinding.impl.BaseTransformer |
---|
getTargetDataBinding, getTargetType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tuscany.sca.databinding.Transformer |
---|
getTargetDataBinding |
Field Detail |
---|
public static final java.lang.String GET
public static final java.lang.String PREFIX
public static final java.lang.String PERIOD
public static final java.lang.String FWD_SLASH
public static final java.lang.String HTTP
protected SimpleTypeMapperImpl mapper
Constructor Detail |
---|
public JavaBean2XMLTransformer()
Method Detail |
---|
public T transform(java.lang.Object source, TransformationContext context)
PullTransformer
transform
in interface PullTransformer<java.lang.Object,T>
source
- The source datacontext
- The context for the transformation
protected boolean isMappedGetter(java.lang.String methodName)
public java.lang.String getSourceDataBinding()
Transformer
getSourceDataBinding
in interface Transformer
getSourceDataBinding
in class BaseTransformer<java.lang.Object,T>
public java.lang.Class<java.lang.Object> getSourceType()
getSourceType
in class BaseTransformer<java.lang.Object,T>
public java.lang.String getNexPrefix()
public int getWeight()
Transformer
getWeight
in interface Transformer
getWeight
in class BaseTransformer<java.lang.Object,T>
public abstract T createElement(javax.xml.namespace.QName qName) throws Java2XMLMapperException
qName
-
Java2XMLMapperException
public abstract void appendText(T parentElement, java.lang.String textData) throws Java2XMLMapperException
parentElement
- textData
-
Java2XMLMapperException
public abstract void appendChild(T parentElement, T childElement) throws Java2XMLMapperException
parentElement
- childElement
-
Java2XMLMapperException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |