|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.xml.rpc.Type
javax.microedition.xml.rpc.ComplexType
public class ComplexType
The JAX-RPC subset runtime SPI (Service Provider Interface) is used
by generated stubs to execute RPC calls. The SPI is defined by the
Type
,
Element
,
ComplexType
, and
Operation
classes.
Complex types, consisting of a sequence of elements, are described
to the runtime using the ComplexType
class. As with
the XML Schema complexType, a ComplexType
contains
a sequence of Element
s.
Note that ComplexType
representing an empty sequence
contains an empty array of Element
objects.
Example (JSR 172, Subsection 8.2.2): Consider the XML Schema
<xsd:complexType name="NameType">
<xsd:sequence>
<xsd:element name="firstName" type="xsd:string"/>
<xsd:element name="lastName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType">
The description of NameType
passed to JAX-RPC subset
runtime is:
ComplexType nameType = new ComplexType();
nameType.elements = new Element[2];
nameType.elements[0] = new Element(new QName(tns, "firstName"),
Type.STRING);
nameType.elements[1] = new Element(new QName(tns, "lastName"),
Type.STRING);
Type
,
Element
,
Operation
.
Field Summary | ||
---|---|---|
Element[] |
elements
The sequence of Elements (where each Element is of either simple type or complex type) made up the ComplexType . |
|
int |
value
The integer value of this ComplexType object. |
Fields inherited from class javax.microedition.xml.rpc.Type |
---|
BOOLEAN, BYTE, DOUBLE, FLOAT, INT, LONG, SHORT, STRING |
Constructor Summary | ||
---|---|---|
ComplexType()
Constructs a ComplexType . |
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Element[] elements
ComplexType
.
public final int value
ComplexType
object.
Constructor Detail |
---|
public ComplexType()
ComplexType
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.