public class XSComplexTypeDecl
extends java.lang.Object
implements org.apache.xerces.xs.XSComplexTypeDefinition, TypeInfo
containsTypeID
public boolean containsTypeID()
derivedFrom
public boolean derivedFrom(String ancestorNS,
String ancestorName,
short derivationMethod)
- derivedFrom in interface org.apache.xerces.xs.XSTypeDefinition
derivedFromType
public boolean derivedFromType(org.apache.xerces.xs.XSTypeDefinition ancestor,
short derivationMethod)
- derivedFromType in interface org.apache.xerces.xs.XSTypeDefinition
getAbstract
public boolean getAbstract()
{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.
- getAbstract in interface org.apache.xerces.xs.XSComplexTypeDefinition
getAnnotations
public org.apache.xerces.xs.XSObjectList getAnnotations()
Optional. Annotation.
- getAnnotations in interface org.apache.xerces.xs.XSComplexTypeDefinition
getAnonymous
public boolean getAnonymous()
A boolean that specifies if the type definition is anonymous.
Convenience attribute. This is a field is not part of
XML Schema component model.
- getAnonymous in interface org.apache.xerces.xs.XSTypeDefinition
getAttributeUse
public org.apache.xerces.xs.XSAttributeUse getAttributeUse(String namespace,
String name)
getAttributeUses
public org.apache.xerces.xs.XSObjectList getAttributeUses()
{attribute uses} A set of attribute uses.
- getAttributeUses in interface org.apache.xerces.xs.XSComplexTypeDefinition
getAttributeWildcard
public org.apache.xerces.xs.XSWildcard getAttributeWildcard()
{attribute wildcard} Optional. A wildcard.
- getAttributeWildcard in interface org.apache.xerces.xs.XSComplexTypeDefinition
getBaseType
public org.apache.xerces.xs.XSTypeDefinition getBaseType()
{base type definition} Either a simple type definition or a complex
type definition.
- getBaseType in interface org.apache.xerces.xs.XSTypeDefinition
getContentType
public short getContentType()
{content type} One of empty, a simple type definition (see
simpleType
, or mixed, element-only (see
cmParticle
).
- getContentType in interface org.apache.xerces.xs.XSComplexTypeDefinition
getDerivationMethod
public short getDerivationMethod()
{derivation method} Either extension or restriction. The valid constant
value for this XSConstants
EXTENTION, RESTRICTION.
- getDerivationMethod in interface org.apache.xerces.xs.XSComplexTypeDefinition
getFinal
public short getFinal()
{final} For complex type definition it is a subset of {extension, restriction}.
- getFinal in interface org.apache.xerces.xs.XSTypeDefinition
- A bit flag that represents:
{extension, restriction) or none for complexTypes;
{extension, list, restriction, union} or none for simpleTypes;
getFinalSet
public short getFinalSet()
getName
public String getName()
The name
of this XSObject
depending on the
XSObject
type.
- getName in interface org.apache.xerces.xs.XSObject
getNamespace
public String getNamespace()
The namespace URI of this node, or null
if it is
unspecified. defines how a namespace URI is attached to schema
components.
- getNamespace in interface org.apache.xerces.xs.XSObject
getNamespaceItem
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
- getNamespaceItem in interface org.apache.xerces.xs.XSObject
org.apache.xerces.xs.XSObject.getNamespaceItem()
getParticle
public org.apache.xerces.xs.XSParticle getParticle()
A particle for mixed or element-only content model, otherwise
null
- getParticle in interface org.apache.xerces.xs.XSComplexTypeDefinition
getProhibitedSubstitutions
public short getProhibitedSubstitutions()
{prohibited substitutions}
- getProhibitedSubstitutions in interface org.apache.xerces.xs.XSComplexTypeDefinition
- A bit flag corresponding to prohibited substitutions
getSimpleType
public org.apache.xerces.xs.XSSimpleTypeDefinition getSimpleType()
A simple type definition corresponding to simple content model,
otherwise null
- getSimpleType in interface org.apache.xerces.xs.XSComplexTypeDefinition
getTargetNamespace
public String getTargetNamespace()
getType
public short getType()
Get the type of the object, i.e ELEMENT_DECLARATION.
- getType in interface org.apache.xerces.xs.XSObject
getTypeCategory
public short getTypeCategory()
- getTypeCategory in interface org.apache.xerces.xs.XSTypeDefinition
getTypeName
public String getTypeName()
getTypeNamespace
public String getTypeNamespace()
isDOMDerivedFrom
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. See:
http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#TypeInfo-isDerivedFrom
ancestorNS
- The namspace of the ancestor type declarationancestorName
- The name of the ancestor type declaration
- boolean True if the ancestor type is derived from the reference
type by the specifiied derivation method.
isDerivedFrom
public boolean isDerivedFrom(String typeNamespaceArg,
String typeNameArg,
int derivationMethod)
isFinal
public boolean isFinal(short derivation)
{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}.
- isFinal in interface org.apache.xerces.xs.XSTypeDefinition
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)
{prohibited substitutions} A subset of {extension, restriction}.
- isProhibitedSubstitution in interface org.apache.xerces.xs.XSComplexTypeDefinition
prohibited
- extention or restriction constants (defined in
XSConstants
).
- True if prohibited is a prohibited substitution, otherwise
false.
setContainsTypeID
public void setContainsTypeID()
setIsAbstractType
public void setIsAbstractType()
setIsAnonymous
public void setIsAnonymous()
setName
public void setName(String name)
setValues
public void setValues(String name,
String targetNamespace,
org.apache.xerces.xs.XSTypeDefinition baseType,
short derivedBy,
short schemaFinal,
short block,
short contentType,
boolean isAbstract,
XSAttributeGroupDecl attrGrp,
XSSimpleType simpleType,
XSParticleDecl particle,
XSObjectListImpl annotations)
toString
public String toString()