FileDocCategorySizeDatePackage
XSElementDeclaration.javaAPI DocJava SE 5 API6470Fri Aug 26 14:55:52 BST 2005com.sun.org.apache.xerces.internal.impl.xs.psvi

XSElementDeclaration

public interface XSElementDeclaration implements XSTerm
The interfaces represents the Element Declaration schema component. The interface may be updated or replaced.

Fields Summary
Constructors Summary
Methods Summary
public booleangetAbstract()
{abstract} A boolean.

public XSAnnotationgetAnnotation()
Optional. Annotation.

public shortgetConstraintType()
[Value constraint]: one of VC_NONE, VC_DEFAULT, VC_FIXED.

public java.lang.StringgetConstraintValue()
[Value constraint]: the actual value with respect to the [type definition].

public shortgetDisallowedSubstitutions()
[disallowed substitutions]: the returned value is a bit combination of the subset of { DERIVATION_SUBSTITUTION, DERIVATION_EXTENSION, DERIVATION_RESTRICTION } corresponding to substitutions disallowed by this XSElementDeclaration or DERIVATION_NONE.

public XSComplexTypeDefinitiongetEnclosingCTDefinition()
The complex type definition for locally scoped declarations (see scope).

public XSNamedMapgetIdentityConstraints()
identity-constraint definitions: a set of constraint definitions.

public booleangetNillable()
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 (xsi:nil) even if it has no text or element content despite a content type which would otherwise require content.

public shortgetScope()
Optional. One of SCOPE_GLOBAL, SCOPE_LOCAL, or SCOPE_ABSENT. If the scope is local, then the enclosingCTDefinition is present.

public com.sun.org.apache.xerces.internal.impl.xs.psvi.XSElementDeclarationgetSubstitutionGroupAffiliation()
[substitution group affiliation]: optional. A top-level element definition.

public shortgetSubstitutionGroupExclusions()
[substitution group exclusions]: the returned value is a bit combination of the subset of { DERIVATION_EXTENSION, DERIVATION_RESTRICTION} or DERIVATION_NONE.

public XSTypeDefinitiongetTypeDefinition()
[type definition]: either a simple type definition or a complex type definition.

public booleanisDisallowedSubstitution(short disallowed)
Convenience method. Check if disallowed is a disallowed substitution for this element declaration.

param
disallowed { DERIVATION_SUBSTITUTION, DERIVATION_EXTENSION, DERIVATION_RESTRICTION } or DERIVATION_NONE. Represents a block set for the element.
return
True if disallowed is a part of the substitution group exclusion subset.

public booleanisSubstitutionGroupExclusion(short exclusion)
Convenience method. Check if exclusion is a substitution group exclusion for this element declaration.

param
exclusion DERIVATION_EXTENSION, DERIVATION_RESTRICTION or DERIVATION_NONE. Represents final set for the element.
return
True if exclusion is a part of the substitution group exclusion subset.