The declaredType and scope property are the
JAXB class binding for the xml type definition.

Scope is either JAXBElement.GlobalScope or the Java class representing the
complex type definition containing the schema element declaration.

There is a property constraint that if value is null,
then nil must be true. The converse is not true to enable
representing a nil element with attribute(s). If nil is true, it is possible
that value is non-null so it can hold the value of the attributes
associated with a nil element.

Field Detail

name

declaredType

scope

protected final java.lang.Class scope

Scope of xml element declaration representing this xml element instance.
Can be one of the following values:
- JAXBElement.GlobalScope for global xml element declaration.
- local element declaration has a scope set to the Java class
representation of complex type defintion containing
xml element declaration.

getScope

isNil

public boolean isNil()

Returns true iff this element instance content model
is nil.

This property always returns true when getValue() is null.
Note that the converse is not true, when this property is true,
getValue() can contain a non-null value for attribute(s). It is
valid for a nil xml element to have attribute(s).