org.apache.xerces.impl.xs
public class XSElementDecl extends Object implements XSElementDeclaration
Version: $Id: XSElementDecl.java,v 1.19 2004/12/07 18:11:27 sandygao Exp $
Field Summary | |
---|---|
XSAnnotationImpl | fAnnotation |
short | fBlock |
ValidatedInfo | fDefault |
short | fFinal |
String | fName |
short | fScope |
XSElementDecl | fSubGroup |
String | fTargetNamespace |
XSTypeDefinition | fType |
static short | SCOPE_ABSENT |
static short | SCOPE_GLOBAL |
static short | SCOPE_LOCAL |
Method Summary | |
---|---|
void | addIDConstraint(IdentityConstraint idc) |
boolean | equals(Object o)
whether two decls are the same |
boolean | getAbstract()
{abstract} A boolean. |
Object | getActualVC() |
short | getActualVCType() |
XSAnnotation | getAnnotation()
Optional. |
short | getConstraintType()
A value constraint: one of default, fixed. |
String | getConstraintValue()
A value constraint: The actual value (with respect to the {type
definition}) |
short | getDisallowedSubstitutions()
The supplied values for {disallowed substitutions}
|
XSComplexTypeDefinition | getEnclosingCTDefinition()
Locally scoped declarations are available for use only within the
complex type definition identified by the scope
property. |
XSNamedMap | getIdentityConstraints()
{identity-constraint definitions} A set of constraint definitions. |
IdentityConstraint[] | getIDConstraints() |
ShortList | getItemValueTypes() |
String | getName()
The name of this XSObject depending on the
XSObject type. |
String | getNamespace()
The namespace URI of this node, or null if it is
unspecified. defines how a namespace URI is attached to schema
components. |
XSNamespaceItem | getNamespaceItem() |
boolean | 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. |
short | getScope()
Optional. |
XSElementDeclaration | getSubstitutionGroupAffiliation()
{substitution group affiliation} Optional. |
short | 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.
|
short | getType()
Get the type of the object, i.e ELEMENT_DECLARATION. |
XSTypeDefinition | getTypeDefinition()
Either a simple type definition or a complex type definition. |
int | hashCode()
get the hash code |
boolean | isDisallowedSubstitution(short disallowed)
Convenience method. |
boolean | isSubstitutionGroupExclusion(short exclusion)
Convenience method. |
void | reset()
Reset current element declaration |
void | setConstraintType(short constraintType) |
void | setIsAbstract() |
void | setIsGlobal() |
void | setIsLocal(XSComplexTypeDecl enclosingCT) |
void | setIsNillable() |
String | toString() |
Returns: A bit flag representing {substitution, extension, restriction} or NONE.
scope
property.name
of this XSObject
depending on the
XSObject
type.null
if it is
unspecified. defines how a namespace URI is attached to schema
components.See Also: org.apache.xerces.xs.XSObject#getNamespaceItem()
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.Returns: A bit flag representing {extension, restriction} or NONE.
disallowed
is a disallowed
substitution for this element declaration.Parameters: disallowed Substitution, extension, restriction or none. Represents a block set for the element.
Returns: True if disallowed
is a part of the substitution
group exclusion subset.
exclusion
is a substitution
group exclusion for this element declaration.Parameters: exclusion Extension, restriction or none. Represents final set for the element.
Returns: True if exclusion
is a part of the substitution
group exclusion subset.