org.ws4d.java.service.parameter
Class StringValue

java.lang.Object
  extended by org.ws4d.java.service.parameter.ParameterValue
      extended by org.ws4d.java.service.parameter.ParameterDefinition
          extended by org.ws4d.java.service.parameter.StringValue

public class StringValue
extends ParameterDefinition


Field Summary
 
Fields inherited from class org.ws4d.java.service.parameter.ParameterValue
ALLOW_NOINDEX, TYPE_ATTACHMENT, TYPE_COMPLEX, TYPE_QNAME, TYPE_STRING, TYPE_UNKNOWN
 
Constructor Summary
StringValue(java.lang.String value)
           
 
Method Summary
 java.lang.String get()
          Returns the value of this parameter value.
 int getValueType()
          Returns the VALUE TYPE for this parameter.
 void parse(java.lang.String content)
           
 void parseContent(org.xmlpull.v1.XmlPullParser parser)
           
 java.lang.String serialize()
           
 void serializeContent(org.xmlpull.v1.XmlSerializer serializer)
           
 void set(java.lang.String value)
          Sets the value of this parameter value.
 java.lang.String toString()
           
 
Methods inherited from class org.ws4d.java.service.parameter.ParameterDefinition
parse
 
Methods inherited from class org.ws4d.java.service.parameter.ParameterValue
add, add, addAnyAttribute, attributeNames, attributes, childCount, children, childrenFromType, createChild, createChild, createElementValue, createElementValue, get, getAttributeValue, getChildren, getChildrenCount, getChildrenCount, getChildrenList, getInstanceType, getMaxOccurs, getMinOccurs, getName, getNamespaces, getType, hasAttributes, hasChildren, hasChildrenFromType, isNil, isOverriden, overrideSerialization, register, remove, removeChild, resolveTypes, serialize, serialize, setAttributeValue, setInstanceType, setNil, unregister
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringValue

public StringValue(java.lang.String value)
Method Detail

get

public java.lang.String get()
Returns the value of this parameter value.

Returns:
the value.

set

public void set(java.lang.String value)
Sets the value of this parameter value.

Parameters:
value - the value to set.

toString

public java.lang.String toString()
Overrides:
toString in class ParameterDefinition

getValueType

public int getValueType()
Description copied from class: ParameterValue
Returns the VALUE TYPE for this parameter.

A VALUE TYPE should be a unique representation of a ParameterValue implementation which allows to identify the implementation and cast correctly.

Overrides:
getValueType in class ParameterDefinition
Returns:
the VALUE TYPE.

serialize

public java.lang.String serialize()
Specified by:
serialize in class ParameterDefinition

parse

public void parse(java.lang.String content)
Specified by:
parse in class ParameterDefinition

parseContent

public void parseContent(org.xmlpull.v1.XmlPullParser parser)
                  throws java.io.IOException,
                         org.xmlpull.v1.XmlPullParserException
Specified by:
parseContent in class ParameterDefinition
Throws:
java.io.IOException
org.xmlpull.v1.XmlPullParserException

serializeContent

public void serializeContent(org.xmlpull.v1.XmlSerializer serializer)
                      throws java.io.IOException
Specified by:
serializeContent in class ParameterDefinition
Throws:
java.io.IOException