org.ws4d.java.service.parameter
Class AttachmentValue

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.AttachmentValue

public class AttachmentValue
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
AttachmentValue()
           
AttachmentValue(java.lang.String href)
           
 
Method Summary
 IncomingAttachment getAttachment()
          Returns an attachment for this parameter value.
 List getNamespaces()
          Returns the namespaces used by this parameter value.
 int getValueType()
          Returns the VALUE TYPE for this parameter.
 void initialize(java.lang.String href)
           
 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 setAttachment(Attachment attachment)
          Sets the attachment for this parameter value.
 void setAttachmentScope(ContextID context)
           
 
Methods inherited from class org.ws4d.java.service.parameter.ParameterDefinition
parse, 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
 

Constructor Detail

AttachmentValue

public AttachmentValue()

AttachmentValue

public AttachmentValue(java.lang.String href)
Method Detail

getAttachment

public IncomingAttachment getAttachment()
Returns an attachment for this parameter value.

Returns:
the attachment for this parameter value.

setAttachment

public void setAttachment(Attachment attachment)
Sets the attachment for this parameter value.

Parameters:
attachment - the attachment to set.

setAttachmentScope

public void setAttachmentScope(ContextID context)

initialize

public void initialize(java.lang.String href)

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.

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