org.hpccsystems.ws.client.wrappers.wsworkunits.NamedValueWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wsclient Show documentation
Show all versions of wsclient Show documentation
This project allows a user to interact with ESP services in a controlled manner. The API calls available under org.hpccsystems.ws.client.platform allow for a user to target ESP's across multiple environments running a range of hpccsystems-platform versions. There is no guarantee that if a user utilizes org.hpccsystems.ws.client.gen generated stub code from wsdl, that the calls will be backwards compatible with older hpccsystems-platform versions.
package org.hpccsystems.ws.client.wrappers.wsworkunits;
import org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.NamedValue;
@Deprecated
public class NamedValueWrapper
{
private String name;
private String value;
/**
* Instantiates a new named value wrapper.
*/
public NamedValueWrapper()
{
}
/**
* Instantiates a new named value wrapper.
*
* @param name
* the name
* @param value
* the value
*/
public NamedValueWrapper(String name, String value)
{
this.name = name;
this.value = value;
}
/**
* Instantiates a new named value wrapper.
*
* @param raw
* the raw
*/
public NamedValueWrapper(NamedValue raw)
{
name = raw.getName();
value = raw.getValue();
}
/**
* Gets the value.
*
* @return the value
*/
public String getValue()
{
return value;
}
/**
* Sets the value.
*
* @param value
* the new value
*/
public void setValue(String value)
{
this.value = value;
}
/**
* Gets the name.
*
* @return the name
*/
public String getName()
{
return name;
}
/**
* Sets the name.
*
* @param name
* the new name
*/
public void setName(String name)
{
this.name = name;
}
/**
* Gets the raw.
*
* @return the raw
*/
public NamedValue getRaw()
{
NamedValue nv = new NamedValue();
nv.setName(name);
nv.setValue(value);
return nv;
}
}