|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xerces.impl.xs.XSComplexTypeDecl
public class XSComplexTypeDecl
The XML representation for a complexType schema component is a <complexType> element information item
Field Summary |
---|
Fields inherited from interface org.apache.xerces.xs.XSComplexTypeDefinition |
---|
CONTENTTYPE_ELEMENT, CONTENTTYPE_EMPTY, CONTENTTYPE_MIXED, CONTENTTYPE_SIMPLE |
Fields inherited from interface org.apache.xerces.xs.XSTypeDefinition |
---|
COMPLEX_TYPE, SIMPLE_TYPE |
Constructor Summary | |
---|---|
XSComplexTypeDecl()
|
Method Summary | |
---|---|
boolean |
containsTypeID()
|
boolean |
derivedFrom(java.lang.String ancestorNS,
java.lang.String ancestorName,
short derivationMethod)
Convenience method which checks if this type is derived from the given ancestor type. |
boolean |
derivedFromType(org.apache.xerces.xs.XSTypeDefinition ancestor,
short derivationMethod)
Convenience method which checks if this type is derived from the given ancestorType . |
boolean |
getAbstract()
{abstract} A boolean. |
org.apache.xerces.xs.XSObjectList |
getAnnotations()
Optional. |
boolean |
getAnonymous()
A boolean that specifies if the type definition is anonymous. |
XSAttributeGroupDecl |
getAttrGrp()
|
org.apache.xerces.xs.XSAttributeUse |
getAttributeUse(java.lang.String namespace,
java.lang.String name)
|
org.apache.xerces.xs.XSObjectList |
getAttributeUses()
{attribute uses} A set of attribute uses. |
org.apache.xerces.xs.XSWildcard |
getAttributeWildcard()
{attribute wildcard} Optional. |
org.apache.xerces.xs.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()
|
java.lang.String |
getName()
The name of this XSObject depending on the
XSObject type. |
java.lang.String |
getNamespace()
The namespace URI of this node, or null if it is
unspecified. |
org.apache.xerces.xs.XSNamespaceItem |
getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it is globally declared; or null otherwise. |
org.apache.xerces.xs.XSParticle |
getParticle()
A particle for mixed or element-only content model, otherwise null |
short |
getProhibitedSubstitutions()
{prohibited substitutions} |
org.apache.xerces.xs.XSSimpleTypeDefinition |
getSimpleType()
A simple type definition corresponding to simple content model, otherwise null |
java.lang.String |
getTargetNamespace()
|
short |
getType()
Get the type of the object, i.e ELEMENT_DECLARATION. |
short |
getTypeCategory()
Return whether this type definition is a simple type or complex type. |
java.lang.String |
getTypeName()
|
java.lang.String |
getTypeNamespace()
|
boolean |
isDerivedFrom(java.lang.String typeNamespaceArg,
java.lang.String typeNameArg,
int derivationMethod)
|
boolean |
isDOMDerivedFrom(java.lang.String ancestorNS,
java.lang.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(java.lang.String name)
|
void |
setValues(java.lang.String name,
java.lang.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)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XSComplexTypeDecl()
Method Detail |
---|
public void setValues(java.lang.String name, java.lang.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)
public void setName(java.lang.String name)
public short getTypeCategory()
org.apache.xerces.xs.XSTypeDefinition
getTypeCategory
in interface org.apache.xerces.xs.XSTypeDefinition
public java.lang.String getTypeName()
getTypeName
in interface org.w3c.dom.TypeInfo
public short getFinalSet()
public java.lang.String getTargetNamespace()
public boolean containsTypeID()
public void setIsAbstractType()
public void setContainsTypeID()
public void setIsAnonymous()
public XSCMValidator getContentModel(CMBuilder cmBuilder)
public XSAttributeGroupDecl getAttrGrp()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean derivedFromType(org.apache.xerces.xs.XSTypeDefinition ancestor, short derivationMethod)
org.apache.xerces.xs.XSTypeDefinition
ancestorType
.
derivedFromType
in interface org.apache.xerces.xs.XSTypeDefinition
ancestor
- An ancestor type definition.derivationMethod
- A bit combination representing a subset of {
DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}.
ancestorType
using only derivation methods from the derivationMethod
.public boolean derivedFrom(java.lang.String ancestorNS, java.lang.String ancestorName, short derivationMethod)
org.apache.xerces.xs.XSTypeDefinition
derivedFrom
in interface org.apache.xerces.xs.XSTypeDefinition
ancestorNS
- An ancestor type namespace.ancestorName
- An ancestor type name.derivationMethod
- A bit combination representing a subset of {
DERIVATION_RESTRICTION, DERIVATION_EXTENSION, DERIVATION_UNION, DERIVATION_LIST
}.
ancestorType
using only derivation methods from the derivationMethod
.public boolean isDOMDerivedFrom(java.lang.String ancestorNS, java.lang.String ancestorName, int derivationMethod)
ancestorNS
- The namspace of the ancestor type declarationancestorName
- The name of the ancestor type declarationderivationMethod
- The derivation method
public void reset()
public short getType()
getType
in interface org.apache.xerces.xs.XSObject
public java.lang.String getName()
name
of this XSObject
depending on the
XSObject
type.
getName
in interface org.apache.xerces.xs.XSObject
public boolean getAnonymous()
getAnonymous
in interface org.apache.xerces.xs.XSTypeDefinition
public java.lang.String getNamespace()
null
if it is
unspecified. defines how a namespace URI is attached to schema
components.
getNamespace
in interface org.apache.xerces.xs.XSObject
public org.apache.xerces.xs.XSTypeDefinition getBaseType()
getBaseType
in interface org.apache.xerces.xs.XSTypeDefinition
public short getDerivationMethod()
XSConstants
EXTENTION, RESTRICTION.
getDerivationMethod
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public boolean isFinal(short derivation)
isFinal
in interface org.apache.xerces.xs.XSTypeDefinition
derivation
- Extension, restriction, list, union constants
(defined in XSConstants
).
public short getFinal()
getFinal
in interface org.apache.xerces.xs.XSTypeDefinition
public boolean getAbstract()
getAbstract
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSObjectList getAttributeUses()
getAttributeUses
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSWildcard getAttributeWildcard()
getAttributeWildcard
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public short getContentType()
simpleType
, or mixed, element-only (see
cmParticle
).
getContentType
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSSimpleTypeDefinition getSimpleType()
null
getSimpleType
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSParticle getParticle()
null
getParticle
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public boolean isProhibitedSubstitution(short prohibited)
isProhibitedSubstitution
in interface org.apache.xerces.xs.XSComplexTypeDefinition
prohibited
- extention or restriction constants (defined in
XSConstants
).
public short getProhibitedSubstitutions()
getProhibitedSubstitutions
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSObjectList getAnnotations()
getAnnotations
in interface org.apache.xerces.xs.XSComplexTypeDefinition
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
org.apache.xerces.xs.XSObject
null
otherwise.
getNamespaceItem
in interface org.apache.xerces.xs.XSObject
XSObject.getNamespaceItem()
public org.apache.xerces.xs.XSAttributeUse getAttributeUse(java.lang.String namespace, java.lang.String name)
public java.lang.String getTypeNamespace()
getTypeNamespace
in interface org.w3c.dom.TypeInfo
public boolean isDerivedFrom(java.lang.String typeNamespaceArg, java.lang.String typeNameArg, int derivationMethod)
isDerivedFrom
in interface org.w3c.dom.TypeInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |