org.ws4d.java.service.parameter
Class QNameValue
java.lang.Object
org.ws4d.java.service.parameter.ParameterValue
org.ws4d.java.service.parameter.ParameterDefinition
org.ws4d.java.service.parameter.QNameValue
public class QNameValue
- extends ParameterDefinition
Method Summary |
QName |
get()
Returns the value of this parameter value. |
List |
getNamespaces()
Returns the namespaces used by 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(QName value)
Sets the value of this parameter value. |
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, 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 |
QNameValue
public QNameValue(QName value)
get
public QName get()
- Returns the value of this parameter value.
- Returns:
- the value.
getNamespaces
public List getNamespaces()
- Description copied from class:
ParameterValue
- Returns the namespaces used by this parameter value.
This method allows to collect all namespaces and use it if necessary.
- Overrides:
getNamespaces
in class ParameterValue
- Returns:
- a
List
of QName
.
set
public void set(QName value)
- Sets the value of this parameter value.
- Parameters:
value
- the value to set.
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.
toString
public java.lang.String toString()
- Overrides:
toString
in class ParameterDefinition
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