javax.microedition.xml.rpc
Class ComplexType

java.lang.Object
  extended by javax.microedition.xml.rpc.Type
      extended by 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:
BlackBerry API 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:
BlackBerry API 4.3.0

value

public final int value
The integer value of this ComplexType object.

Since:
BlackBerry API 4.3.0


Constructor Detail

ComplexType

public ComplexType()
Constructs a ComplexType.

Since:
BlackBerry API 4.3.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal