public class FragmentSerializer extends Object implements org.smooks.api.resource.visitor.sax.ng.BeforeVisitor, org.smooks.api.resource.visitor.sax.ng.AfterVisitor, org.smooks.api.delivery.ordering.Producer, org.smooks.api.lifecycle.VisitLifecycleCleanable
| Constructor and Description |
|---|
FragmentSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
executeVisitLifecycleCleanup(org.smooks.api.delivery.fragment.Fragment fragment,
org.smooks.api.ExecutionContext executionContext) |
Set<? extends Object> |
getProducts() |
FragmentSerializer |
setBindTo(String bindTo)
Set the bind-to beanId for the serialized fragment.
|
FragmentSerializer |
setChildContentOnly(Optional<Boolean> childContentOnly)
Set whether or not the child content only should be serialized.
|
FragmentSerializer |
setOmitXMLDeclaration(Optional<Boolean> omitXMLDeclaration)
Omit the XML Declaration from the serialized fragments.
|
FragmentSerializer |
setRetain(Optional<Boolean> retain)
Retain the fragment bean in the
BeanContext after it's creating fragment
has been processed. |
void |
visitAfter(Element element,
org.smooks.api.ExecutionContext executionContext) |
void |
visitBefore(Element element,
org.smooks.api.ExecutionContext executionContext) |
@Inject public FragmentSerializer setBindTo(String bindTo)
bindTo - The bind-to beanId for the serialized fragment.@Inject public FragmentSerializer setOmitXMLDeclaration(Optional<Boolean> omitXMLDeclaration)
omitXMLDeclaration - True if the XML declaration is to be omitted, otherwise false.@Inject public FragmentSerializer setChildContentOnly(Optional<Boolean> childContentOnly)
childContentOnly - True if the child content only (exclude
the targeted element itself), otherwise false.@Inject public FragmentSerializer setRetain(Optional<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.smooks.api.delivery.ordering.Producerpublic void visitBefore(Element element, org.smooks.api.ExecutionContext executionContext) throws org.smooks.api.SmooksException
visitBefore in interface org.smooks.api.resource.visitor.sax.ng.BeforeVisitororg.smooks.api.SmooksExceptionpublic void visitAfter(Element element, org.smooks.api.ExecutionContext executionContext) throws org.smooks.api.SmooksException
visitAfter in interface org.smooks.api.resource.visitor.sax.ng.AfterVisitororg.smooks.api.SmooksExceptionpublic void executeVisitLifecycleCleanup(org.smooks.api.delivery.fragment.Fragment fragment,
org.smooks.api.ExecutionContext executionContext)
executeVisitLifecycleCleanup in interface org.smooks.api.lifecycle.VisitLifecycleCleanableCopyright © 2022. All rights reserved.