javax.microedition.xml.rpc
Class ComplexType

java.lang.Object
  |
  +--javax.microedition.xml.rpc.Type
        |
        +--javax.microedition.xml.rpc.ComplexType

public class ComplexType
extends Type

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

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);

See Type, Element, Operation.

Since:
JDE 4.3.0

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

elements

public Element[] elements
The sequence of Elements (where each Element is of either simple type or complex type) made up the ComplexType.
Since:
JDE 4.3.0

value

public final int value
The integer value of this ComplexType object.
Since:
JDE 4.3.0
Constructor Detail

ComplexType

public ComplexType()
Constructs a ComplexType.
Since:
JDE 4.3.0



Copyright 1999-2009 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.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.