org.codehaus.xfire.service.object
Class Parameter
java.lang.Object
org.codehaus.xfire.service.object.Parameter
public class Parameter
- extends java.lang.Object
A parameter for an operation.
A parameter looks up a Type
which is used to serialize it. Type
s
are searched in the following order:
- A
Type
with the schema type of getName()
- A
Type
with the schema type of getAbstractType()
- A
Type
with the type class of getTypeClass()
- Since:
- Nov 16, 2004
- Author:
- Dan Diephouse
Constructor Summary |
Parameter()
|
Parameter(javax.xml.namespace.QName name,
java.lang.Class typeClass)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parameter
public Parameter()
Parameter
public Parameter(javax.xml.namespace.QName name,
java.lang.Class typeClass)
getName
public javax.xml.namespace.QName getName()
- Returns:
- Returns the name.
setName
public void setName(javax.xml.namespace.QName name)
- Parameters:
name
- The name to set.
getAbstractType
public javax.xml.namespace.QName getAbstractType()
- The xml schema type which this parameter "extends".
- Returns:
setAbstractType
public void setAbstractType(javax.xml.namespace.QName abstractType)
getTypeClass
public java.lang.Class getTypeClass()
setTypeClass
public void setTypeClass(java.lang.Class typeClass)
isHeader
public boolean isHeader()
setHeader
public void setHeader(boolean header)
read
public java.lang.Object read(MessageReader reader,
MessageContext context)
throws XFireFault
- Throws:
XFireFault
write
public void write(java.lang.Object value,
MessageWriter writer,
MessageContext context)
throws XFireFault
- Throws:
XFireFault
getType
protected Type getType(MessageContext context)