fr.tireme.schemadoc.SDSchema
Interface SDComplexType

All Superinterfaces:
SDConcreteComponent, SDSchemaContent
All Known Implementing Classes:
XSDComplexTypeDefinitionWrapp

public interface SDComplexType
extends SDSchemaContent

Author:
Mike Niemaz (niemaz@xrce.xerox.com)

Field Summary
static int EXTENSION
           
static java.lang.String EXTENSION_STRING
           
static int NO_DERIVATION
           
static java.lang.String NO_DERIVATION_STRING
           
static int RESTRICTION
           
static java.lang.String RESTRICTION_STRING
           
 
Fields inherited from interface fr.tireme.schemadoc.SDSchema.SDSchemaContent
TYPE_ATTRIBUTE, TYPE_ATTRIBUTE_LABEL, TYPE_ATTRIBUTEGROUP, TYPE_ATTRIBUTEGROUP_LABEL, TYPE_COMPLEXTYPE, TYPE_COMPLEXTYPE_LABEL, TYPE_ELEMENT, TYPE_ELEMENT_LABEL, TYPE_GROUP, TYPE_GROUP_LABEL, TYPE_NOTATION, TYPE_NOTATION_LABEL, TYPE_SIMPLETYPE, TYPE_SIMPLETYPE_LABEL
 
Method Summary
 SDSchemaContent cloneBaseTypeDefinition()
          Clones the base type definition.
 java.util.List getAttributeContents()
          Gets this complexType attribute contents
 SDSchemaContent getBaseTypeDefinition(SDSchema schema)
          Gets the base type definition (SDComplexType or SDSimpleType)
 java.lang.String getCategory()
          Gets the category of this complex type.
 SDConcreteComponent getContent()
           
 int getDerivationType()
          Gets the derivation's type of this type
 java.lang.String getDerivationTypeAsString()
          Gets the derivation's type of this type
 java.util.List getDerivedAttributeContents(SDSchema schema)
          Gets the attributes of the derived complex type
 SDAnnotation getSchemaAnnotation()
           
 boolean hasAttributes()
           
 boolean hasContent()
           
 boolean hasDerivedTypeAttributes(SDSchema schema)
          Returns true if the base type has some attributes
 boolean isAnyType()
           
 boolean isDerived()
          Gets whether the type is derived or not
 boolean isDerivedTypeContentModelAny(SDSchema schema)
          Returns true if the base type content model is any
 boolean isDerivedTypeContentModelEmpty(SDSchema schema)
          Returns true if the base type content model is empty
 boolean isEmpty()
          Is this complex type empty?
 boolean isMixed()
           
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDSchemaContent
getName, getQName, getSchema, getTargetNamespace, getType, isGlobal
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDConcreteComponent
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 

Field Detail

RESTRICTION

static final int RESTRICTION
See Also:
Constant Field Values

EXTENSION

static final int EXTENSION
See Also:
Constant Field Values

NO_DERIVATION

static final int NO_DERIVATION
See Also:
Constant Field Values

RESTRICTION_STRING

static final java.lang.String RESTRICTION_STRING
See Also:
Constant Field Values

EXTENSION_STRING

static final java.lang.String EXTENSION_STRING
See Also:
Constant Field Values

NO_DERIVATION_STRING

static final java.lang.String NO_DERIVATION_STRING
See Also:
Constant Field Values
Method Detail

isAnyType

boolean isAnyType()

isMixed

boolean isMixed()

getContent

SDConcreteComponent getContent()

getCategory

java.lang.String getCategory()
Gets the category of this complex type.

Returns:
String - Either element_only, empty, mixed or simple

isEmpty

boolean isEmpty()
Is this complex type empty?

Returns:
boolean - true if empty, false otherwise

isDerivedTypeContentModelEmpty

boolean isDerivedTypeContentModelEmpty(SDSchema schema)
Returns true if the base type content model is empty

Parameters:
schema - - root schema
Returns:
boolean -

isDerivedTypeContentModelAny

boolean isDerivedTypeContentModelAny(SDSchema schema)
Returns true if the base type content model is any

Parameters:
schema - - root schema
Returns:
boolean -

hasAttributes

boolean hasAttributes()
Returns:
boolean -

hasContent

boolean hasContent()
Returns:
boolean -

getAttributeContents

java.util.List getAttributeContents()
Gets this complexType attribute contents

Returns:
List - a list of XSDAttributeUseWrapp and XSDAttributeGroupDefinitionWrapp contained in this complexType

getDerivedAttributeContents

java.util.List getDerivedAttributeContents(SDSchema schema)
Gets the attributes of the derived complex type

Parameters:
schema - - root schema
Returns:
List - attributes or null if none

getSchemaAnnotation

SDAnnotation getSchemaAnnotation()

getBaseTypeDefinition

SDSchemaContent getBaseTypeDefinition(SDSchema schema)
Gets the base type definition (SDComplexType or SDSimpleType)

Parameters:
schema - - root schema
Returns:
SDSchemaContent - base type

cloneBaseTypeDefinition

SDSchemaContent cloneBaseTypeDefinition()
Clones the base type definition. Useful for restrictions.

Returns:
SDSchemaContent - cloned base type

hasDerivedTypeAttributes

boolean hasDerivedTypeAttributes(SDSchema schema)
Returns true if the base type has some attributes

Parameters:
schema - - root schema
Returns:
boolean - true or false

isDerived

boolean isDerived()
Gets whether the type is derived or not

Returns:
boolean - true if derived

getDerivationType

int getDerivationType()
Gets the derivation's type of this type

Returns:
int - Either SDComplexType.EXTENSION, SDComplexType.RESTRICTION or SDComplexType.NO_DERIVATION

getDerivationTypeAsString

java.lang.String getDerivationTypeAsString()
Gets the derivation's type of this type

Returns:
String - Either SDComplexType.EXTENSION_STRING, SDComplexType.RESTRICTION_STRING, or SDComplexType.NO_DERIVATION_STRING