public class Parameter {
// Holds name of parameter.
private String name;
// Holds data type of parameter.
private String type;
// Holds value of parameter, if present.
private String value;
// Constructor when there is no value.
// Used while parsing wsdl file.
public Parameter (String name, String type)
{
setName(name);
setType(type);
}//constructor
// Constructor when we have all three _
attributes.
// Used while authoring SOAP request.
public Parameter (String name, String _
type, String value)
{
setName(name);
setType(type);
setValue (value);
}//constructor
private void setName( String name)
{
this.name = name;
}//setName
public String getName()
{
return name;
}//getName
private void setType( String type)
{
this.type = type;
}//setType
public String getType()
{
return type;
}//getType
public void setValue( String value)
{
this.value = value;
}//setValue
public String getValue()
{
return value;
}//getValue
}//class
|