org.gxml.xs
Interface SmElement<A,S>

All Superinterfaces:
SmComponent<A,S>, SmDataComponent<A,S>, SmElementNodeType<A,S>, SmHasValueConstraint<A>, SmNodeType<A,S>, SmParticleTerm<A,S>, SmPrimeType<A,S>, SmSequenceType<A,S>

public interface SmElement<A,S>
extends SmElementNodeType<A,S>, SmDataComponent<A,S>, SmParticleTerm<A,S>

The SmElement interface models an element declaration, which could be global within the schema or local to some other element.
An element declaration is an association between a name and a type.


Method Summary
 java.util.Set<SmDerivationMethod> getDisallowedSubtitutions()
          {disallowed substitutions} property.
 java.lang.Iterable<SmIdentityConstraint<A,S>> getIdentityConstraints()
          Returns the {identity-constraints definitions} for this element.
 SmScope getScope()
          The {scope} property.
 SmElement<A,S> getSubstitutionGroup()
          The element declaration resolved to by the actual value of the substitutionGroup [attribute], if present, otherwise null.
 java.util.Set<SmDerivationMethod> getSubstitutionGroupExclusions()
          Returns the set of derivation methods that are final.
 java.lang.Iterable<SmElement<A,S>> getSubstitutionGroupMembers()
          Returns the elements that are members of the group with this element as the head.
 SmType<A,S> getType()
          The {type definition} property.
 boolean hasIdentityConstraints()
          Determines (quickly) whether this element has {identity-constraints definitions}.
 boolean hasSubstitutionGroup()
          Determines whether this element declaration is affiliated with a substitution group.
 boolean hasSubstitutionGroupMembers()
          Determines if the substitution group, with this element as the head, has members.
 boolean isAbstract()
          Returns the {abstract} property for this element.
 
Methods inherited from interface org.gxml.xs.SmElementNodeType
isNillable
 
Methods inherited from interface org.gxml.xs.SmComponent
getLocalName, getName, getTargetNamespace, isAnonymous
 
Methods inherited from interface org.gxml.xs.SmHasValueConstraint
getValueConstraint
 
Methods inherited from interface org.gxml.xs.SmNodeType
getNodeKind
 
Methods inherited from interface org.gxml.xs.SmPrimeType
choice, getKind, isChoice, isNative, isNone, subtype, zeroOrOne
 
Methods inherited from interface org.gxml.xs.SmSequenceType
accept, atomSet, parentAxis, prime, quantifier
 

Method Detail

getDisallowedSubtitutions

java.util.Set<SmDerivationMethod> getDisallowedSubtitutions()
{disallowed substitutions} property.
Returns the set of derivation methods that are blocked from substitution. Determines whether this element can be used for a xsi:type or substitution group substitution.

This is a instance constraint.


getIdentityConstraints

java.lang.Iterable<SmIdentityConstraint<A,S>> getIdentityConstraints()
Returns the {identity-constraints definitions} for this element.


getScope

SmScope getScope()
The {scope} property.

Specified by:
getScope in interface SmComponent<A,S>

getSubstitutionGroup

SmElement<A,S> getSubstitutionGroup()
The element declaration resolved to by the actual value of the substitutionGroup [attribute], if present, otherwise null.

Returns the head element of the substition group that this element belongs to. May be null if there is no substitution group for this element.


getSubstitutionGroupExclusions

java.util.Set<SmDerivationMethod> getSubstitutionGroupExclusions()
Returns the set of derivation methods that are final. Determines whether this element can be used as the head of a substitution group for elements whose types are derived by extension or restriction from the type of the element.

This is a schema constraint.


getSubstitutionGroupMembers

java.lang.Iterable<SmElement<A,S>> getSubstitutionGroupMembers()
Returns the elements that are members of the group with this element as the head.


getType

SmType<A,S> getType()
The {type definition} property.

Specified by:
getType in interface SmElementNodeType<A,S>

hasIdentityConstraints

boolean hasIdentityConstraints()
Determines (quickly) whether this element has {identity-constraints definitions}.


hasSubstitutionGroup

boolean hasSubstitutionGroup()
Determines whether this element declaration is affiliated with a substitution group.


hasSubstitutionGroupMembers

boolean hasSubstitutionGroupMembers()
Determines if the substitution group, with this element as the head, has members.


isAbstract

boolean isAbstract()
Returns the {abstract} property for this element.

Returns:
true if abstract, otherwise false.


Copyright © 2009 TIBCO Software Inc. All Rights Reserved.