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

All Superinterfaces:
SmComponent<A,S>, SmSequenceType<A,S>
All Known Subinterfaces:
SmAtomicType<A,S>, SmAtomicUrType<A,S>, SmComplexType<A,S>, SmComplexUrType<A,S>, SmListType<A,S>, SmSimpleType<A,S>, SmSimpleUrType<A,S>, SmUnionType<A,S>

public interface SmType<A,S>
extends SmComponent<A,S>, SmSequenceType<A,S>

Represents all types in a schema, both simple types and complex types.


Method Summary
 boolean derivedFrom(S namespace, S name, java.util.Set<SmDerivationMethod> derivationMethods)
           
 boolean derivedFromType(SmType<A,S> ancestorType, java.util.Set<SmDerivationMethod> derivationMethods)
           
 SmType<A,S> getBaseType()
          Returns the {base type definition} of this type.
 SmDerivationMethod getDerivationMethod()
          Returns the {derivation method} property of this type from its base type.
 java.util.Set<SmDerivationMethod> getFinal()
          Returns the {final} property.
 S getLocalName()
          The {name} property.
 SmName<S> getName()
          The {name} and {target namespace} properties.
 S getTargetNamespace()
          The {target namespace} property.
 boolean isAbstract()
          Returns the {abstract} property of this type.
 boolean isAnonymous()
          A component is anonymous if it does not explicity have a name in a schema document.
 boolean isAtomicUrType()
          Returns whether this type is the Atomic Ur-Type.
 boolean isComplexUrType()
          Returns whether this type is the Complex Ur-Type.
 boolean isFinal(SmDerivationMethod derivation)
          Determines whether a particular derivation method is final.
 boolean isNative()
          Returns whether this type is a built-in type.
 boolean isSimpleUrType()
          Returns whether this type is the Simple Ur-Type.
 
Methods inherited from interface org.gxml.xs.SmComponent
getScope
 
Methods inherited from interface org.gxml.xs.SmSequenceType
accept, atomSet, parentAxis, prime, quantifier
 

Method Detail

derivedFrom

boolean derivedFrom(S namespace,
                    S name,
                    java.util.Set<SmDerivationMethod> derivationMethods)

derivedFromType

boolean derivedFromType(SmType<A,S> ancestorType,
                        java.util.Set<SmDerivationMethod> derivationMethods)

getBaseType

SmType<A,S> getBaseType()
Returns the {base type definition} of this type. This may be a simple type or a complex type.


getDerivationMethod

SmDerivationMethod getDerivationMethod()
Returns the {derivation method} property of this type from its base type.


getFinal

java.util.Set<SmDerivationMethod> getFinal()
Returns the {final} property. Applies to both simple types and complex types. This is a design-time constraint on types. For simple types, this is a subset of {list, union, restriction}. For complex types, this is a subset of {extension, restriction}.


getLocalName

S getLocalName()
The {name} property.

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

getName

SmName<S> getName()
The {name} and {target namespace} properties.

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

getTargetNamespace

S getTargetNamespace()
The {target namespace} property.

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

isAbstract

boolean isAbstract()
Returns the {abstract} property of this type.
Determines whether object of this type can be instantiated. An abstract type can only be used to derive subtypes.


isAnonymous

boolean isAnonymous()
Description copied from interface: SmComponent
A component is anonymous if it does not explicity have a name in a schema document. A component may be assigned a processing-context unique name if it is anonymous.

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

isAtomicUrType

boolean isAtomicUrType()
Returns whether this type is the Atomic Ur-Type.


isNative

boolean isNative()
Returns whether this type is a built-in type.


isComplexUrType

boolean isComplexUrType()
Returns whether this type is the Complex Ur-Type.


isFinal

boolean isFinal(SmDerivationMethod derivation)
Determines whether a particular derivation method is final.

Parameters:
derivation - The derivation method.

isSimpleUrType

boolean isSimpleUrType()
Returns whether this type is the Simple Ur-Type.



Copyright © 2009 TIBCO Software Inc. All Rights Reserved.