org.apache.xerces.impl.xs
public class XSComplexTypeDecl extends Object implements XSComplexTypeDefinition, TypeInfo
Version: $Id: XSComplexTypeDecl.java,v 1.22 2005/06/13 20:43:27 mrglavas Exp $
Constructor Summary | |
---|---|
XSComplexTypeDecl() |
Method Summary | |
---|---|
boolean | containsTypeID() |
boolean | derivedFrom(String ancestorNS, String ancestorName, short derivationMethod) |
boolean | derivedFromType(XSTypeDefinition ancestor, short derivationMethod) |
boolean | getAbstract()
{abstract} A boolean. |
XSObjectList | getAnnotations()
Optional. |
boolean | getAnonymous()
A boolean that specifies if the type definition is anonymous.
|
XSAttributeGroupDecl | getAttrGrp() |
XSAttributeUse | getAttributeUse(String namespace, String name) |
XSObjectList | getAttributeUses()
{attribute uses} A set of attribute uses. |
XSWildcard | getAttributeWildcard()
{attribute wildcard} Optional. |
XSTypeDefinition | getBaseType()
{base type definition} Either a simple type definition or a complex
type definition. |
XSCMValidator | getContentModel(CMBuilder cmBuilder) |
short | getContentType()
{content type} One of empty, a simple type definition (see
simpleType , or mixed, element-only (see
cmParticle ). |
short | getDerivationMethod()
{derivation method} Either extension or restriction. |
short | getFinal()
{final} For complex type definition it is a subset of {extension, restriction}.
|
short | getFinalSet() |
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() |
XSParticle | getParticle()
A particle for mixed or element-only content model, otherwise
null |
short | getProhibitedSubstitutions()
{prohibited substitutions}
|
XSSimpleTypeDefinition | getSimpleType()
A simple type definition corresponding to simple content model,
otherwise null |
String | getTargetNamespace() |
short | getType()
Get the type of the object, i.e ELEMENT_DECLARATION. |
short | getTypeCategory() |
String | getTypeName() |
String | getTypeNamespace() |
boolean | isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod) |
boolean | isDOMDerivedFrom(String ancestorNS, String ancestorName, int derivationMethod)
Checks if a type is derived from another given the the name, namespace
and derivation method. |
boolean | isFinal(short derivation)
{final} For complex type definition it is a subset of {extension,
restriction}. |
boolean | isProhibitedSubstitution(short prohibited)
{prohibited substitutions} A subset of {extension, restriction}. |
void | reset() |
void | setContainsTypeID() |
void | setIsAbstractType() |
void | setIsAnonymous() |
void | setName(String name) |
void | setValues(String name, String targetNamespace, XSTypeDefinition baseType, short derivedBy, short schemaFinal, short block, short contentType, boolean isAbstract, XSAttributeGroupDecl attrGrp, XSSimpleType simpleType, XSParticleDecl particle, XSObjectListImpl annotations) |
String | toString() |
simpleType
, or mixed, element-only (see
cmParticle
).XSConstants
EXTENTION, RESTRICTION.Returns: A bit flag that represents: {extension, restriction) or none for complexTypes; {extension, list, restriction, union} or none for simpleTypes;
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()
null
Returns: A bit flag corresponding to prohibited substitutions
null
Parameters: ancestorNS The namspace of the ancestor type declaration ancestorName The name of the ancestor type declaration derivation The derivation method
Returns: boolean True if the ancestor type is derived from the reference type by the specifiied derivation method.
Parameters: derivation Extension, restriction, list, union constants
(defined in XSConstants
).
Returns: True if derivation is in the final set, otherwise false.
Parameters: prohibited extention or restriction constants (defined in
XSConstants
).
Returns: True if prohibited is a prohibited substitution, otherwise false.