Package com.proagrica.bip.services
Class AddFullNodeService
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.proagrica.bip.services.AddFullNodeService
-
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,MessageEventGenerator,Service,StateManagedComponent
@ComponentProfile(summary="Duplicate and modify the configured node to an xml payload as a sibling of the configured base-xpath.", tag="service,xml,bip") public class AddFullNodeService extends ServiceImpBIP Service
This service will take the base-xpath and attempt to find it's parent element node within the xml payoload. Once the parent has been found we will duplicate the node found by the base-xpath. Finally we will modify the duplicated node by setting the attribute named by attribute-name-to-change to the value equal to attribute-value;
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description AddFullNodeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseService()voiddoService(AdaptrisMessage message)java.lang.StringgetAttributeNameToChange()java.lang.StringgetAttributeValue()java.lang.StringgetBaseXPath()KeyValuePairSetgetNamespaceContext()java.lang.StringgetRelativeXPath1()java.lang.StringgetRelativeXPath2()java.lang.StringgetRelativeXPath3()java.lang.StringgetSerializedCodesMetadataKey()DocumentBuilderFactoryBuildergetXmlDocumentFactoryConfig()java.lang.StringgetXmlSource()protected voidinitService()voidprepare()voidsetAttributeNameToChange(java.lang.String attributeNameToChange)voidsetAttributeValue(java.lang.String attributeValue)voidsetBaseXPath(java.lang.String baseXPath)voidsetNamespaceContext(KeyValuePairSet namespaceContext)voidsetRelativeXPath1(java.lang.String relativeXPath1)voidsetRelativeXPath2(java.lang.String relativeXPath2)voidsetRelativeXPath3(java.lang.String relativeXPath3)voidsetSerializedCodesMetadataKey(java.lang.String serializedCodesMetadataKey)voidsetXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xmlDocumentFactoryConfig)voidsetXmlSource(java.lang.String xmlSource)-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
-
-
-
Method Detail
-
doService
public void doService(AdaptrisMessage message) throws ServiceException
- Throws:
ServiceException
-
prepare
public void prepare() throws CoreException- Throws:
CoreException
-
initService
protected void initService() throws CoreException- Specified by:
initServicein classServiceImp- Throws:
CoreException
-
closeService
protected void closeService()
- Specified by:
closeServicein classServiceImp
-
getSerializedCodesMetadataKey
public java.lang.String getSerializedCodesMetadataKey()
-
setSerializedCodesMetadataKey
public void setSerializedCodesMetadataKey(java.lang.String serializedCodesMetadataKey)
-
getBaseXPath
public java.lang.String getBaseXPath()
-
setBaseXPath
public void setBaseXPath(java.lang.String baseXPath)
-
getRelativeXPath1
public java.lang.String getRelativeXPath1()
-
setRelativeXPath1
public void setRelativeXPath1(java.lang.String relativeXPath1)
-
getRelativeXPath2
public java.lang.String getRelativeXPath2()
-
setRelativeXPath2
public void setRelativeXPath2(java.lang.String relativeXPath2)
-
getRelativeXPath3
public java.lang.String getRelativeXPath3()
-
setRelativeXPath3
public void setRelativeXPath3(java.lang.String relativeXPath3)
-
getAttributeNameToChange
public java.lang.String getAttributeNameToChange()
-
setAttributeNameToChange
public void setAttributeNameToChange(java.lang.String attributeNameToChange)
-
getAttributeValue
public java.lang.String getAttributeValue()
-
setAttributeValue
public void setAttributeValue(java.lang.String attributeValue)
-
getXmlSource
public java.lang.String getXmlSource()
-
setXmlSource
public void setXmlSource(java.lang.String xmlSource)
-
getNamespaceContext
public KeyValuePairSet getNamespaceContext()
-
setNamespaceContext
public void setNamespaceContext(KeyValuePairSet namespaceContext)
-
getXmlDocumentFactoryConfig
public DocumentBuilderFactoryBuilder getXmlDocumentFactoryConfig()
-
setXmlDocumentFactoryConfig
public void setXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xmlDocumentFactoryConfig)
-
-