org.jbind.xml.schema.cmp
Class ComplexTypeCC

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.Component
      extended byorg.jbind.xml.schema.cmp.AbstractType
          extended byorg.jbind.xml.schema.cmp.ComplexType
              extended byorg.jbind.xml.schema.cmp.ComplexTypeCC
All Implemented Interfaces:
IAnyType, IComplexCCType, IComplexType, IComponent, IDefaultAttrCreator, IHasBindingAttributes, IHasLocation, ISourceInfo

public class ComplexTypeCC
extends ComplexType
implements IComplexCCType


Constructor Summary
ComplexTypeCC(ISourceInfo aSourceInfo, java.lang.String aNamespace, java.lang.String aName, java.lang.String aRole, java.util.Set aFinalTypes, java.util.Set aBlockTypes, boolean anIsAbstract, boolean anIsExtension)
           
 
Method Summary
 ISimpleType getSimpleContentType()
          Gets the type of the simple content.
 boolean isComplex()
          Checks if the type is a complex type.
 boolean isSimple()
          Checks if the type is a simple type.
 
Methods inherited from class org.jbind.xml.schema.cmp.ComplexType
accept, addXPathMethod, addXPathMethods, checkEnclosedConstraints, createDefaultAttr, getInstanceType, getSimpleStorageType, getXPathMethods, isExtension, isUnion, iterDefaultAttrRefs
 
Methods inherited from class org.jbind.xml.schema.cmp.AbstractType
addDirectSubtype, addFinalType, canBeOverloadedBy, checkConstraints, createData, createEmptyData, createUncheckedData, doCreateEmptyData, getAttrDesc, getAttributesModel, getBaseType, getConstraints, getContentModel, getDataCreator, getDirectSubtypes, getElemDesc, getRoleName, getSubtypes, getSymbolspace, isAbstract, isActive, isActive, isBaseType, isExtension, isInstanceType, isReference, isRestriction, setAttributesModel, setBaseType, setConstraints, setContentModel, setDataCreator, validate
 
Methods inherited from class org.jbind.xml.schema.cmp.Component
addSubComponent, getAnnotation, getBindingAttribute, getBindings, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getGlobalRef, getLocalBindingAttribute, getLocalStringBindingAttribute, getLocation, getName, getNamespace, getParentComponent, getPrefixToNamespaceMapping, getStringBindingAttribute, isAnonymous, isTopLevelComponent, setBindings, setParentComponent, visitSubComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.type.IAnyType
addDirectSubtype, canBeOverloadedBy, checkConstraints, checkEnclosedConstraints, createData, createEmptyData, createUncheckedData, getAttrDesc, getAttributesModel, getBaseType, getConstraints, getContentModel, getDataCreator, getDirectSubtypes, getElemDesc, getInstanceType, getRoleName, getSimpleStorageType, getSubtypes, getXPathMethods, isAbstract, isActive, isActive, isBaseType, isExtension, isExtension, isInstanceType, isRestriction, setBaseType, setConstraints, setDataCreator
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponent
accept, addSubComponent, getBindings, getGlobalRef, getName, getNamespace, getParentComponent, getSymbolspace, isAnonymous, isReference, isTopLevelComponent, setBindings, setParentComponent, validate
 
Methods inherited from interface org.jbind.xml.core.cmp.ISourceInfo
getAnnotation, getPrefixToNamespaceMapping
 
Methods inherited from interface org.jbind.xml.base.IHasLocation
getLocation
 
Methods inherited from interface org.jbind.xml.base.IHasBindingAttributes
getBindingAttribute, getDefaultedLocalBindingAttribute, getDefaultedLocalStringBindingAttribute, getLocalBindingAttribute, getLocalStringBindingAttribute, getStringBindingAttribute
 
Methods inherited from interface org.jbind.xml.core.bridge.IDefaultAttrCreator
createDefaultAttr, iterDefaultAttrRefs
 

Constructor Detail

ComplexTypeCC

public ComplexTypeCC(ISourceInfo aSourceInfo,
                     java.lang.String aNamespace,
                     java.lang.String aName,
                     java.lang.String aRole,
                     java.util.Set aFinalTypes,
                     java.util.Set aBlockTypes,
                     boolean anIsAbstract,
                     boolean anIsExtension)
Method Detail

isComplex

public boolean isComplex()
Description copied from interface: IAnyType
Checks if the type is a complex type. Complex type with simple content also return true.

Specified by:
isComplex in interface IAnyType
Returns:
Returns true iff the type is a complex type.

isSimple

public boolean isSimple()
Description copied from interface: IAnyType
Checks if the type is a simple type. Complex types with simple content also return true.

Specified by:
isSimple in interface IAnyType
Returns:
Returns true iff the type is a simple type.

getSimpleContentType

public ISimpleType getSimpleContentType()
Description copied from interface: IAnyType
Gets the type of the simple content. If this type is a simple type then this type itself is returned. If this type is a complex type with simple content then the simple base type of this type is returned. If this type is a complex type with complex content then null is returned.

Specified by:
getSimpleContentType in interface IAnyType
Returns:
(optional).