|
J2ME[tm] Web Services | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.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.
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
The 'maxOccurs' attribute of this element. |
int |
minOccurs
The 'minOccurs' attribute of this element. |
QName |
name
The QName of this element |
static int |
UNBOUNDED
Constant used to indicate that maxOccurs
is unbounded. |
Fields inherited from class javax.microedition.xml.rpc.Type |
BOOLEAN, BYTE, DOUBLE, FLOAT, INT, LONG, SHORT, STRING, value |
Constructor Summary | |
Element(QName name,
Type type)
Construct an Element with the given properties. |
|
Element(QName name,
Type type,
int minOccurs,
int maxOccurs,
boolean nillable)
Construct an Element with the given properties. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, 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
public final int maxOccurs
public static final int UNBOUNDED
maxOccurs
is unbounded.
Constructor Detail |
public Element(QName name, Type type, int minOccurs, int maxOccurs, boolean nillable) throws java.lang.IllegalArgumentException
Element
with the given properties.
This Type
subclass will have a value of 9
.
name
- the QName of this elementtype
- the Type of this element's contentminOccurs
- indicates the minimum number of times this
element can occur. A value of '0' indicates
this element is optional.maxOccurs
- indicates the maximum number of times this
element can occur. A value > 1 or equal to
UNBOUNDED
indicates
this element is an array.nillable
- indicates if this element may have the
xsd:nil
attribute equal true
.
java.lang.IllegalArgumentException
- minOccurs < 0
, or
minOccurs > maxOccurs
, and
maxOccurs
is not UNBOUNDED
, or
maxOccurs == 0
, or
name
or type
are null
type
is an instance of Element
public Element(QName name, Type type) throws java.lang.IllegalArgumentException
Element
with the given properties. The defaults for
the unspecified properties are:
Type
subclass will have a value of 9
.
name
- 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
|
J2ME[tm] Web Services | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |