public class FragmentSerializer extends Object implements org.milyn.delivery.sax.SAXVisitBefore, org.milyn.delivery.sax.SAXVisitAfter, org.milyn.delivery.dom.DOMVisitBefore, org.milyn.delivery.dom.DOMVisitAfter, org.milyn.delivery.ordering.Producer, org.milyn.delivery.VisitLifecycleCleanable
| Constructor and Description |
|---|
FragmentSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeVisitLifecycleCleanup(org.milyn.delivery.Fragment fragment,
org.milyn.container.ExecutionContext executionContext) |
Set<? extends Object> |
getProducts() |
FragmentSerializer |
setBindTo(String bindTo)
Set the bind-to beanId for the serialized fragment.
|
FragmentSerializer |
setChildContentOnly(boolean childContentOnly)
Set whether or not the child content only should be serialized.
|
FragmentSerializer |
setOmitXMLDeclaration(boolean omitXMLDeclaration)
Omit the XML Declaration from the serialized fragments.
|
FragmentSerializer |
setRetain(boolean retain)
Retain the fragment bean in the
BeanContext after it's creating fragment
has been processed. |
void |
visitAfter(Element element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitAfter(org.milyn.delivery.sax.SAXElement saxElement,
org.milyn.container.ExecutionContext executionContext) |
void |
visitBefore(Element element,
org.milyn.container.ExecutionContext executionContext) |
void |
visitBefore(org.milyn.delivery.sax.SAXElement saxElement,
org.milyn.container.ExecutionContext executionContext) |
@ConfigParam public FragmentSerializer setBindTo(String bindTo)
bindTo - The bind-to beanId for the serialized fragment.@ConfigParam(defaultVal="false") public FragmentSerializer setOmitXMLDeclaration(boolean omitXMLDeclaration)
omitXMLDeclaration - True if the XML declaration is to be omitted, otherwise false.@ConfigParam(defaultVal="false") public FragmentSerializer setChildContentOnly(boolean childContentOnly)
childContentOnly - True if the child content only (exclude
the targeted element itself), otherwise false.@ConfigParam(defaultVal="false") public FragmentSerializer setRetain(boolean retain)
BeanContext after it's creating fragment
has been processed.retain - True if the fragment bean is to be retained in the BeanContext,
otherwise false.public Set<? extends Object> getProducts()
getProducts in interface org.milyn.delivery.ordering.Producerpublic void visitBefore(org.milyn.delivery.sax.SAXElement saxElement,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitBefore in interface org.milyn.delivery.sax.SAXVisitBeforeorg.milyn.SmooksExceptionIOExceptionpublic void visitAfter(org.milyn.delivery.sax.SAXElement saxElement,
org.milyn.container.ExecutionContext executionContext)
throws org.milyn.SmooksException,
IOException
visitAfter in interface org.milyn.delivery.sax.SAXVisitAfterorg.milyn.SmooksExceptionIOExceptionpublic void visitBefore(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitBefore in interface org.milyn.delivery.dom.DOMVisitBeforeorg.milyn.SmooksExceptionpublic void visitAfter(Element element, org.milyn.container.ExecutionContext executionContext) throws org.milyn.SmooksException
visitAfter in interface org.milyn.delivery.dom.DOMVisitAfterorg.milyn.SmooksExceptionpublic void executeVisitLifecycleCleanup(org.milyn.delivery.Fragment fragment,
org.milyn.container.ExecutionContext executionContext)
executeVisitLifecycleCleanup in interface org.milyn.delivery.VisitLifecycleCleanableCopyright © 2016. All rights reserved.