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 ServiceImp
BIP 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddoService(AdaptrisMessage message) protected voidvoidprepare()voidsetAttributeNameToChange(String attributeNameToChange) voidsetAttributeValue(String attributeValue) voidsetBaseXPath(String baseXPath) voidsetNamespaceContext(KeyValuePairSet namespaceContext) voidsetRelativeXPath1(String relativeXPath1) voidsetRelativeXPath2(String relativeXPath2) voidsetRelativeXPath3(String relativeXPath3) voidsetSerializedCodesMetadataKey(String serializedCodesMetadataKey) voidsetXmlDocumentFactoryConfig(DocumentBuilderFactoryBuilder xmlDocumentFactoryConfig) voidsetXmlSource(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
-
Constructor Details
-
AddFullNodeService
public AddFullNodeService()
-
-
Method Details
-
doService
- Throws:
ServiceException
-
prepare
- Throws:
CoreException
-
initService
- Specified by:
initServicein classServiceImp- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeServicein classServiceImp
-
getSerializedCodesMetadataKey
-
setSerializedCodesMetadataKey
-
getBaseXPath
-
setBaseXPath
-
getRelativeXPath1
-
setRelativeXPath1
-
getRelativeXPath2
-
setRelativeXPath2
-
getRelativeXPath3
-
setRelativeXPath3
-
getAttributeNameToChange
-
setAttributeNameToChange
-
getAttributeValue
-
setAttributeValue
-
getXmlSource
-
setXmlSource
-
getNamespaceContext
-
setNamespaceContext
-
getXmlDocumentFactoryConfig
-
setXmlDocumentFactoryConfig
-