| java.lang.Object org.apache.xerces.impl.xs.XSComplexTypeDecl
XSComplexTypeDecl | public class XSComplexTypeDecl implements XSComplexTypeDefinition,TypeInfo(Code) | | The XML representation for a complexType
schema component is a <complexType> element information item
author: Elena Litani, IBM author: Sandy Gao, IBM version: $Id: XSComplexTypeDecl.java 573322 2007-09-06 16:48:47Z peterjm $ |
Method Summary | |
void | appendTypeInfo(StringBuffer str) | public boolean | containsTypeID() | public boolean | derivedFrom(String ancestorNS, String ancestorName, short derivationMethod) | public boolean | derivedFromType(XSTypeDefinition ancestor, short derivationMethod) | public boolean | getAbstract() {abstract} A boolean. | public XSObjectList | getAnnotations() Optional. | public boolean | getAnonymous() A boolean that specifies if the type definition is anonymous.
Convenience attribute. | public XSAttributeGroupDecl | getAttrGrp() | public XSAttributeUse | getAttributeUse(String namespace, String name) | public XSObjectList | getAttributeUses() {attribute uses} A set of attribute uses. | public XSWildcard | getAttributeWildcard() {attribute wildcard} Optional. | public XSTypeDefinition | getBaseType() {base type definition} Either a simple type definition or a complex
type definition. | public XSCMValidator | getContentModel(CMBuilder cmBuilder) | public synchronized XSCMValidator | getContentModel(CMBuilder cmBuilder, boolean forUPA) | public short | getContentType() {content type} One of empty, a simple type definition (see
simpleType , or mixed, element-only (see
cmParticle ). | public short | getDerivationMethod() {derivation method} Either extension or restriction. | public short | getFinal() {final} For complex type definition it is a subset of {extension, restriction}. | public short | getFinalSet() | public String | getName() The name of this XSObject depending on the
XSObject type. | public String | getNamespace() The namespace URI of this node, or null if it is
unspecified. | public XSNamespaceItem | getNamespaceItem() | public XSParticle | getParticle() | public short | getProhibitedSubstitutions() | public XSSimpleTypeDefinition | getSimpleType() | public String | getTargetNamespace() | public short | getType() Get the type of the object, i.e ELEMENT_DECLARATION. | public short | getTypeCategory() | public String | getTypeName() | public String | getTypeNamespace() | public boolean | isDOMDerivedFrom(String ancestorNS, String ancestorName, int derivationMethod) Checks if a type is derived from another given the the name, namespace
and derivation method. | public boolean | isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod) | public boolean | isFinal(short derivation) {final} For complex type definition it is a subset of {extension,
restriction}. | public boolean | isProhibitedSubstitution(short prohibited) {prohibited substitutions} A subset of {extension, restriction}.
Parameters: prohibited - extention or restriction constants (defined inXSConstants ). | public void | reset() | public void | setContainsTypeID() | public void | setIsAbstractType() | public void | setIsAnonymous() | public void | setName(String name) | public 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) | public String | toString() |
DERIVATION_ANY | final static int DERIVATION_ANY(Code) | | |
DERIVATION_EXTENSION | final static int DERIVATION_EXTENSION(Code) | | |
DERIVATION_LIST | final static int DERIVATION_LIST(Code) | | |
DERIVATION_RESTRICTION | final static int DERIVATION_RESTRICTION(Code) | | |
DERIVATION_UNION | final static int DERIVATION_UNION(Code) | | |
fContentType | short fContentType(Code) | | |
fDerivedBy | short fDerivedBy(Code) | | |
fMiscFlags | short fMiscFlags(Code) | | |
XSComplexTypeDecl | public XSComplexTypeDecl()(Code) | | |
containsTypeID | public boolean containsTypeID()(Code) | | |
derivedFrom | public boolean derivedFrom(String ancestorNS, String ancestorName, short derivationMethod)(Code) | | |
getAbstract | public boolean getAbstract()(Code) | | {abstract} A boolean. Complex types for which {abstract} is true must
not be used as the {type definition} for the validation of element
information items.
|
getAnonymous | public boolean getAnonymous()(Code) | | A boolean that specifies if the type definition is anonymous.
Convenience attribute. This is a field is not part of
XML Schema component model.
|
getAttributeUses | public XSObjectList getAttributeUses()(Code) | | {attribute uses} A set of attribute uses.
|
getAttributeWildcard | public XSWildcard getAttributeWildcard()(Code) | | {attribute wildcard} Optional. A wildcard.
|
getBaseType | public XSTypeDefinition getBaseType()(Code) | | {base type definition} Either a simple type definition or a complex
type definition.
|
getContentType | public short getContentType()(Code) | | {content type} One of empty, a simple type definition (see
simpleType , or mixed, element-only (see
cmParticle ).
|
getDerivationMethod | public short getDerivationMethod()(Code) | | {derivation method} Either extension or restriction. The valid constant
value for this XSConstants EXTENTION, RESTRICTION.
|
getFinal | public short getFinal()(Code) | | {final} For complex type definition it is a subset of {extension, restriction}.
A bit flag that represents:{extension, restriction) or none for complexTypes;{extension, list, restriction, union} or none for simpleTypes; |
getFinalSet | public short getFinalSet()(Code) | | |
getName | public String getName()(Code) | | The name of this XSObject depending on the
XSObject type.
|
getNamespace | public String getNamespace()(Code) | | The namespace URI of this node, or null if it is
unspecified. defines how a namespace URI is attached to schema
components.
|
getParticle | public XSParticle getParticle()(Code) | | A particle for mixed or element-only content model, otherwise
null
|
getProhibitedSubstitutions | public short getProhibitedSubstitutions()(Code) | | {prohibited substitutions}
A bit flag corresponding to prohibited substitutions |
getSimpleType | public XSSimpleTypeDefinition getSimpleType()(Code) | | A simple type definition corresponding to simple content model,
otherwise null
|
getType | public short getType()(Code) | | Get the type of the object, i.e ELEMENT_DECLARATION.
|
getTypeCategory | public short getTypeCategory()(Code) | | |
isDOMDerivedFrom | public boolean isDOMDerivedFrom(String ancestorNS, String ancestorName, int derivationMethod)(Code) | | Checks if a type is derived from another given the the name, namespace
and derivation method. See:
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#TypeInfo-isDerivedFrom
Parameters: ancestorNS - The namspace of the ancestor type declaration Parameters: ancestorName - The name of the ancestor type declaration Parameters: derivationMethod - The derivation method boolean True if the ancestor type is derived from the referencetype by the specifiied derivation method. |
isDerivedFrom | public boolean isDerivedFrom(String typeNamespaceArg, String typeNameArg, int derivationMethod)(Code) | | |
isFinal | public boolean isFinal(short derivation)(Code) | | {final} For complex type definition it is a subset of {extension,
restriction}. For simple type definition it is a subset of
{extension, list, restriction, union}.
Parameters: derivation - Extension, restriction, list, union constants(defined in XSConstants ). True if derivation is in the final set, otherwise false. |
isProhibitedSubstitution | public boolean isProhibitedSubstitution(short prohibited)(Code) | | {prohibited substitutions} A subset of {extension, restriction}.
Parameters: prohibited - extention or restriction constants (defined inXSConstants ). True if prohibited is a prohibited substitution, otherwisefalse. |
reset | public void reset()(Code) | | |
setContainsTypeID | public void setContainsTypeID()(Code) | | |
setIsAbstractType | public void setIsAbstractType()(Code) | | |
setIsAnonymous | public void setIsAnonymous()(Code) | | |
setValues | public 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)(Code) | | |
|
|