org.ws4d.java.service.parameter
Class ParameterDefinition
java.lang.Object
org.ws4d.java.service.parameter.ParameterValue
org.ws4d.java.service.parameter.ParameterDefinition
- Direct Known Subclasses:
- AttachmentValue, QNameValue, StringValue
public abstract class ParameterDefinition
- extends ParameterValue
Method Summary |
int |
getValueType()
Returns the VALUE TYPE for this parameter. |
abstract void |
parse(java.lang.String content)
|
static ParameterValue |
parse(org.xmlpull.v1.XmlPullParser parser,
Element base,
OperationDescription operation)
This method parses an given XML Parser object (XML instance document)
into a equivalent parameter value. |
abstract void |
parseContent(org.xmlpull.v1.XmlPullParser parser)
|
abstract java.lang.String |
serialize()
|
abstract void |
serializeContent(org.xmlpull.v1.XmlSerializer serializer)
|
java.lang.String |
toString()
|
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 |
ParameterDefinition
public ParameterDefinition()
serialize
public abstract java.lang.String serialize()
parse
public abstract void parse(java.lang.String content)
parseContent
public abstract void parseContent(org.xmlpull.v1.XmlPullParser parser)
throws java.io.IOException,
org.xmlpull.v1.XmlPullParserException
- Throws:
java.io.IOException
org.xmlpull.v1.XmlPullParserException
serializeContent
public abstract void serializeContent(org.xmlpull.v1.XmlSerializer serializer)
throws java.io.IOException
- Throws:
java.io.IOException
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 ParameterValue
- Returns:
- the VALUE TYPE.
parse
public static ParameterValue parse(org.xmlpull.v1.XmlPullParser parser,
Element base,
OperationDescription operation)
throws org.xmlpull.v1.XmlPullParserException,
java.io.IOException
- This method parses an given XML Parser object (XML instance document)
into a equivalent parameter value.
- Parameters:
parser
- the XML Parser.
- Returns:
- the parsed parameter value.
- Throws:
org.xmlpull.v1.XmlPullParserException
- throws this exception if the parser cannot
correctly parse the XML.
java.io.IOException
- throws this exception if the parser cannot correctly
parse the XML.
toString
public java.lang.String toString()
- Overrides:
toString
in class ParameterValue