The XML representation for an element declaration
schema component is an <element> element information item
author: Elena Litani, IBM author: Sandy Gao, IBM version: $Id: XSElementDecl.java 449424 2006-09-24 16:22:30Z mrglavas $
getNillable() If {nillable} is true, then an element may also be valid if it carries
the namespace qualified attribute with [local name] nil from
namespace http://www.w3.org/2001/XMLSchema-instance and value true
(see xsi:nil (2.6.2)) even if it has no text or element content
despite a {content type} which would otherwise require content.
getSubstitutionGroupExclusions() Specifies if this declaration can be nominated as
the {substitution group affiliation} of other
element declarations having the same {type definition}
or types derived therefrom.
public short
getType() Get the type of the object, i.e ELEMENT_DECLARATION.
If {nillable} is true, then an element may also be valid if it carries
the namespace qualified attribute with [local name] nil from
namespace http://www.w3.org/2001/XMLSchema-instance and value true
(see xsi:nil (2.6.2)) even if it has no text or element content
despite a {content type} which would otherwise require content.
Optional. Either global or a complex type definition (
ctDefinition). This property is absent in the case of
declarations within named model groups: their scope will be
determined when they are used in the construction of complex type
definitions.
{substitution group affiliation} Optional. A top-level element
definition.
getSubstitutionGroupExclusions
public short getSubstitutionGroupExclusions()(Code)
Specifies if this declaration can be nominated as
the {substitution group affiliation} of other
element declarations having the same {type definition}
or types derived therefrom.
A bit flag representing {extension, restriction} or NONE.
public boolean isDisallowedSubstitution(short disallowed)(Code)
Convenience method. Check if disallowed is a disallowed
substitution for this element declaration.
Parameters: disallowed - Substitution, extension, restriction or none.Represents a block set for the element. True if disallowed is a part of the substitutiongroup exclusion subset.
isSubstitutionGroupExclusion
public boolean isSubstitutionGroupExclusion(short exclusion)(Code)
Convenience method. Check if exclusion is a substitution
group exclusion for this element declaration.
Parameters: exclusion - Extension, restriction or none. Represents finalset for the element. True if exclusion is a part of the substitutiongroup exclusion subset.