|
JSR 172 | ||||||||
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
public class 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 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 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. |
Method Summary |
---|
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
maxOccurrs
is unbounded.
Constructor Detail |
---|
public Element(QName name, Type type, int minOccurs, int maxOccurs, boolean nillable) throws java.lang.IllegalArgumentException
intValue()
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, in addition
to isArray
being true, indicates
this element is an array.
java.lang.IllegalArgumentException
- minOccurs < 0
, or
name
or type
are null
type
is an instance of Element
public Element(QName name, Type type) throws java.lang.IllegalArgumentException
intValue()
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
|
JSR 172 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |