javax.microedition.xml.rpc
Class Element

java.lang.Object
  extended by javax.microedition.xml.rpc.Type
      extended by javax.microedition.xml.rpc.Element

public class Element
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.

The Element class is used to describe additional properties of a Type. The properties mirror those that can be defined in XML Schema, and referenced in the WSDL description of an element. They are

(See JSR 172 Specification, Section 8.2.2.)

See Type, ComplexType, Operation.

Since:
BlackBerry API 4.3.0

Field Summary
static int UNBOUNDED
          A number representing unbounded for maxOccurs.
 Type contentType
          The Type of the content of this Element.
 boolean isArray
          A boolean flag indicating if this Element is an array.
 boolean isNillable
          A boolean flag indicating whether this Element is nillable.
 boolean isOptional
          A boolean flag indicating whether this Element is optional.
 int maxOccurs
          The maxOccurs attribute of this Element.
 int minOccurs
          The minOccurs attribute of this Element.
 QName name
          The qualified name of this Element.
 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
Element(QName qname, Type type)
          Constructs an Element with the default properties.
Element(QName qname, Type type, int minOccurs, int maxOccurs, boolean nillable)
          Constructs an Element with the given properties.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

UNBOUNDED

public static final int UNBOUNDED
A number representing unbounded for maxOccurs.

See Also:
Constant Field Values
Since:
BlackBerry API 4.3.0

value

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

Since:
BlackBerry API 4.3.0

contentType

public final Type contentType
The Type of the content of this Element.

Since:
BlackBerry API 4.3.0

name

public final QName name
The qualified name of this Element.

Since:
BlackBerry API 4.3.0

minOccurs

public final int minOccurs
The minOccurs attribute of this Element.

Since:
BlackBerry API 4.3.0

isOptional

public final boolean isOptional
A boolean flag indicating whether this Element is optional. It is set to true if minOccurs=0; false otherwise.

Since:
BlackBerry API 4.3.0

maxOccurs

public final int maxOccurs
The maxOccurs attribute of this Element.

Since:
BlackBerry API 4.3.0

isNillable

public final boolean isNillable
A boolean flag indicating whether this Element is nillable. It is set to true if this Element is nillable; false otherwise.

Since:
BlackBerry API 4.3.0

isArray

public final boolean isArray
A boolean flag indicating if this Element is an array. It is set to true if this Element has the the attribute maxOccurs assigned to a value bigger than 1 or to UNBOUNDED; false otherwise.

Since:
BlackBerry API 4.3.0


Constructor Detail

Element

public Element(QName qname,
               Type type,
               int minOccurs,
               int maxOccurs,
               boolean nillable)
        throws IllegalArgumentException
Constructs an Element with the given properties.

Parameters:
qname - the qualified name of this Element.
type - the Type of the content of this Element.
minOccurs - the minimum number of occurrence(s) this Element might appear.
maxOccurs - the maximum number of occurrence(s) this Element might appear.
Throws:
IllegalArgumentException - if
  • qname=null, or
  • type=null, or
  • type is an instance of Element, or
  • minOccurs<0, or
  • maxOccurs<0 and maxOccurs != UNBOUNDED
  • minOccurs>maxOccurs and maxOccurs != UNBOUNDED.
Since:
BlackBerry API 4.3.0

Element

public Element(QName qname,
               Type type)
        throws IllegalArgumentException
Constructs an Element with the default properties.

Parameters:
qname - the qualified name of this Element.
type - the Type of the content of this Element.
Throws:
IllegalArgumentException - if
  • qname=null, or
  • type=null, or
  • type is an instance of Element.
Since:
BlackBerry API 4.3.0





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.