| java.lang.Object javax.microedition.xml.rpc.Type javax.microedition.xml.rpc.Element
Element | public class Element extends Type (Code) | | 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.
version: 0.1 See Also: javax.xml.rpc.Stub See Also: javax.microedition.xml.rpc.Operation |
Field Summary | |
final public static int | UNBOUNDED Constant use to indicate that maxOccurrs
is unbounded. | final public Type | contentType The Type of this Element's content. | final public boolean | isArray | final public boolean | isNillable | final public boolean | isOptional True if this element is optional, that is, its minOccurs
is defined as being 0. | final public int | maxOccurs The 'maxOccurs' attribute of this element. | final public int | minOccurs The 'minOccurs' attribute of this element. | final public QName | name |
Constructor Summary | |
public | Element(QName name, Type type, int minOccurs, int maxOccurs, boolean nillable) Construct an Element with the given properties.
This Type subclass will have an intValue() of 9.
Parameters: name - the QName of this element Parameters: type - the Type of this element's content Parameters: minOccurs - indicates the minimum number of times thiselement can occur. | public | Element(QName name, Type type) Construct an Element with the given properties. |
UNBOUNDED | final public static int UNBOUNDED(Code) | | Constant use to indicate that maxOccurrs
is unbounded.
|
contentType | final public Type contentType(Code) | | The Type of this Element's content.
|
isArray | final public boolean isArray(Code) | | True if this element is an array
|
isNillable | final public boolean isNillable(Code) | | True if this element is nillable
|
isOptional | final public boolean isOptional(Code) | | True if this element is optional, that is, its minOccurs
is defined as being 0.
|
maxOccurs | final public int maxOccurs(Code) | | The 'maxOccurs' attribute of this element. -1 if this
element has no 'maxOccurs' attribute.
|
minOccurs | final public int minOccurs(Code) | | The 'minOccurs' attribute of this element. -1 if this
element has no 'minOccurs' attribute.
|
name | final public QName name(Code) | | The QName of this element
|
Element | public Element(QName name, Type type, int minOccurs, int maxOccurs, boolean nillable) throws IllegalArgumentException(Code) | | Construct an Element with the given properties.
This Type subclass will have an intValue() of 9.
Parameters: name - the QName of this element Parameters: type - the Type of this element's content Parameters: minOccurs - indicates the minimum number of times thiselement can occur. A value of '0' indicatesthis element is optional. Parameters: maxOccurs - indicates the maximum number of times thiselement can occur. A value > 1, in additionto isArray being true, indicatesthis element is an array. throws: IllegalArgumentException - - if
minOccurs < 0 , or - if
name or type are null - if
type is an instance of Element
|
Element | public Element(QName name, Type type) throws IllegalArgumentException(Code) | | Construct an Element with the given properties. The defaults for
the unspecified properties are:
- minOccurs = 1
- maxOccurs = 1
- isOptional = false
- isArray = false
- nillable = false
This Type subclass will have an intValue() of 9.
Parameters: name - the QName of this element Parameters: type - the Type of this element's content throws: IllegalArgumentException - - if
name or type are null - if
type is an instance of Element
|
|
|