public class CommonXmlTransformer extends java.lang.Object implements IXmlTransformer
Class that transforms input parameters to a XML request for the native web services of @Firma.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Constructor and Description |
|---|
CommonXmlTransformer()
Constructor method for the class CommonXmlTransformer.java.
|
CommonXmlTransformer(java.lang.String svc,
java.lang.String methodParam,
java.lang.String typ,
java.lang.String msgVersion)
Constructor method for the class CommonXmlTransformer.java.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessageVersion()
Method that obtains the version of the parameter used to configure the generator.
|
java.lang.String |
getMethod()
Method that obtains the name of the method to invoke.
|
java.lang.String |
getService()
Method that obtains the name of the service used to configure the generator.
|
java.lang.String |
getType()
Method that obtains the type of the parameter to generate (input or output).
|
void |
setMessageVersion(java.lang.String msgVersion)
Sets the value of the attribute
messageVersion. |
void |
setService(java.lang.String svc)
Sets the value of the attribute
service. |
void |
setType(java.lang.String typ)
Sets the value of the attribute
type. |
java.lang.Object |
transform(java.lang.Object params)
Method that transforms a structure to an input or output parameter of a web service.
|
public CommonXmlTransformer()
public CommonXmlTransformer(java.lang.String svc,
java.lang.String methodParam,
java.lang.String typ,
java.lang.String msgVersion)
svc - Parameter that represents the native service name.methodParam - Parameter that represents the method of web service.typ - Parameter that represents the type.msgVersion - Parameter that represents the message version.public final java.lang.String getService()
getService in interface IXmlTransformerIXmlTransformer.getService()public final java.lang.String getType()
getType in interface IXmlTransformerIXmlTransformer.getType()public final java.lang.String getMessageVersion()
getMessageVersion in interface IXmlTransformerIXmlTransformer.getMessageVersion()public final java.lang.Object transform(java.lang.Object params)
throws TransformersException
transform in interface IXmlTransformerparams - Values of the input or output parameters on XML format.TransformersException - If the method fails.IXmlTransformer.transform(java.lang.Object)public final void setMessageVersion(java.lang.String msgVersion)
messageVersion.msgVersion - The value for the attribute messageVersion.public final void setService(java.lang.String svc)
service.svc - The value for the attribute service.public final void setType(java.lang.String typ)
type.typ - The value for the attribute type.public final java.lang.String getMethod()
getMethod in interface IXmlTransformerIXmlTransformer.getMethod()