public class Element extends Type
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.| Modifier and Type | Field and Description |
|---|---|
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. -1 if this
element has no 'maxOccurs' attribute.
|
int |
minOccurs
The 'minOccurs' attribute of this element. -1 if this
element has no 'minOccurs' attribute.
|
QName |
name
The QName of this element
|
static int |
UNBOUNDED
Constant use to indicate that
maxOccurrs
is unbounded. |
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.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 contentjava.lang.IllegalArgumentException - name or type are null
type is an instance of Element
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.