|
BenQ Mobile |
|||||||||
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.Element
The class Element
is a special Object
used to represent an xsd:element defined in a Web Service's
WSDL definition. An element can have the additional properties
of being an array, being nillable, and has minOccurs and
maxOccurs values. For more details on minOccours
and maxOccours
see the fields in this class of
the same name.
Stub
,
Operation
Field Summary | |
Type |
contentType
The Type of this Element's content. |
boolean |
isArray
True if this element is an array. |
boolean |
isNillable
True if this element is nillable. |
boolean |
isOptional
True if this element is optional, that is, its minOccurs is defined as being 0. |
int |
maxOccurs
Specifies the maximum limit of the number of subelements this element may contain. |
int |
minOccurs
Specifies the minimum limit of the number of subelements this element should contain. |
QName |
name
The QName of this element. |
static int |
UNBOUNDED
Constant use to indicate that maxOccurrs
is unbounded. |
Fields inherited from class javax.microedition.xml.rpc.Type |
BOOLEAN, BYTE, DOUBLE, FLOAT, INT, LONG, SHORT, STRING, value |
Constructor Summary | |
Element(QName lname,
Type type)
Construct an Element with the given properties. |
|
Element(QName lname,
Type type,
int llminOccurs,
int lmaxOccurs,
boolean nillable)
Construct an Element with the given properties. |
Methods inherited from class javax.microedition.xml.rpc.Type |
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public final QName name
public final Type contentType
public final boolean isNillable
public final boolean isArray
public final boolean isOptional
public final int minOccurs
minOccurs
is set to -1 this element
has no minimal limit.
public final int maxOccurs
maxOccurs
is set to -1 this element
has no minimal limit.
public static final int UNBOUNDED
maxOccurrs
is unbounded. Unbounded means infinite in this context,
i.e. specifying an elements as unbounded means that it
may contains an infinite number of subelements.
Constructor Detail |
public Element(QName lname, Type type, int llminOccurs, int lmaxOccurs, boolean nillable) throws java.lang.IllegalArgumentException
intValue()
of 9.
lname
- the QName of this elementtype
- the Type of this element's contentllminOccurs
- indicates the minimum number of times this
element can occur. A value of '0' indicates
this element is optional.lmaxOccurs
- indicates the maximum number of times this
element can occur. A value > 1, in addition
to isArray
being true, indicates
this element is an array.nillable
- indicates if element may be nillable.
java.lang.IllegalArgumentException
- minOccurs < 0
, or
name
or type
are null
type
is an instance of Element
public Element(QName lname, Type type) throws java.lang.IllegalArgumentException
intValue()
of 9.
lname
- the QName of this elementtype
- the Type of this element's content
java.lang.IllegalArgumentException
- name
or type
are null
type
is an instance of Element
|
BenQ Mobile |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. |
For further information about Mobility Toolkit (MTK) visit our Developer Portal. |