Public Member Functions | Protected Member Functions | Static Protected Attributes | Package Functions

org.exolab.castor.xml.schema.XMLType Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.XMLType:
org.exolab.castor.xml.schema.Annotated org.exolab.castor.xml.schema.Structure org.exolab.castor.xml.schema.AnyType org.exolab.castor.xml.schema.ComplexType org.exolab.castor.xml.schema.SimpleType org.exolab.castor.xml.schema.TypeReference org.exolab.castor.xml.schema.DeferredSimpleType org.exolab.castor.xml.schema.SimpleTypeReference org.exolab.castor.xml.schema.simpletypes.AtomicType org.exolab.castor.xml.schema.simpletypes.ListType org.exolab.castor.xml.schema.simpletypes.UrType org.exolab.castor.xml.schema.Union org.exolab.castor.xml.schema.simpletypes.AnyURIType org.exolab.castor.xml.schema.simpletypes.BinaryType org.exolab.castor.xml.schema.simpletypes.BooleanType org.exolab.castor.xml.schema.simpletypes.DateTimeType org.exolab.castor.xml.schema.simpletypes.DecimalType org.exolab.castor.xml.schema.simpletypes.DurationType org.exolab.castor.xml.schema.simpletypes.RealType org.exolab.castor.xml.schema.simpletypes.StringType

List of all members.

Public Member Functions

 XMLType ()
String getId ()
String getName ()
synchronized void setName (String name)
final boolean isAnyType ()
final boolean isComplexType ()
final boolean isSimpleType ()
Schema getSchema ()
void setSchema (Schema schema)
XMLType getBaseType ()
void setBaseType (XMLType baseType)
String getDerivationMethod ()
void setDerivationMethod (String derivationMethod)
void setId (String id)

Protected Member Functions

abstract void setParent (Structure parent)

Static Protected Attributes

static String NULL_ARGUMENT = "A null argument was passed to " + XMLType.class.getName()

Package Functions

XMLType getType ()

Detailed Description

The base type for XML Schema types, such as complex types and simple types.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:36

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.XMLType.XMLType (  ) 

Default constructor


Member Function Documentation

XMLType org.exolab.castor.xml.schema.XMLType.getBaseType (  ) 
String org.exolab.castor.xml.schema.XMLType.getDerivationMethod (  ) 

Gets the name of the derivation method used to derive this type from its parent. null for primitive types.

Referenced by org.exolab.castor.builder.MemberFactory.createFieldInfo(), and org.exolab.castor.xml.schema.DeferredSimpleType.createInstance().

String org.exolab.castor.xml.schema.XMLType.getId (  ) 

Returns the Id for this ComplexType, or null if no Id has been set.

Returns:
the Id for this ComplexType, or null if no Id has been set.
String org.exolab.castor.xml.schema.XMLType.getName (  ) 

Returns the name of this type (null if none was defined)

Reimplemented in org.exolab.castor.xml.schema.AnyType.

Referenced by org.exolab.castor.xml.schema.reader.ComplexContentRestrictionUnmarshaller.ComplexContentRestrictionUnmarshaller(), org.exolab.castor.builder.TypeConversion.convertType(), org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.builder.binding.XMLBindingComponent.createGroupItem(), org.exolab.castor.xml.schema.DeferredSimpleType.createInstance(), org.exolab.castor.builder.SourceFactory.createSourceCode(), org.exolab.castor.xml.schema.SimpleTypesFactory.createUserSimpleType(), com.cosylab.cdb.jdal.XSDElementTypeResolver.doesExtend(), org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.endElement(), org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement(), org.exolab.castor.xml.schema.Schema.getComplexTypes(), org.exolab.castor.xml.schema.simpletypes.ListType.getItemType(), org.exolab.castor.xml.schema.SimpleType.getReferenceId(), org.exolab.castor.xml.schema.ComplexType.getReferenceId(), org.exolab.castor.xml.schema.AttributeDecl.getSimpleType(), org.exolab.castor.xml.schema.Schema.getSimpleTypes(), org.exolab.castor.xml.schema.ElementDecl.getType(), org.exolab.castor.xml.schema.SimpleContent.getTypeName(), com.cosylab.cdb.jdal.XSDElementTypeResolver.internalGetElementTypes(), org.exolab.castor.xml.schema.ComplexType.isTopLevel(), org.exolab.castor.xml.schema.Schema.removeComplexType(), org.exolab.castor.xml.schema.Schema.removeSimpleType(), org.exolab.castor.xml.schema.TypeReference.resolveTypeReference(), org.exolab.castor.xml.schema.SimpleTypeReference.resolveTypeReference(), org.exolab.castor.xml.schema.ComplexType.setAnyAttribute(), org.exolab.castor.xml.schema.SimpleTypeReference.setName(), org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller.SimpleContentRestrictionUnmarshaller(), org.exolab.castor.xml.schema.ElementDecl.validate(), and org.exolab.castor.xml.schema.ComplexType.validate().

Schema org.exolab.castor.xml.schema.XMLType.getSchema (  ) 
void org.exolab.castor.xml.schema.XMLType.setBaseType ( XMLType  baseType  ) 

Sets the base type for this datatype

Parameters:
base the base type which this datatype inherits from

Reimplemented in org.exolab.castor.xml.schema.AnyType.

Referenced by org.exolab.castor.xml.schema.SimpleTypesFactory.createUserSimpleType(), and org.exolab.castor.xml.schema.simpletypes.ListType.setItemType().

void org.exolab.castor.xml.schema.XMLType.setId ( String  id  ) 
abstract void org.exolab.castor.xml.schema.XMLType.setParent ( Structure  parent  )  [protected, pure virtual]

Sets the parent for this XMLType

Parameters:
parent the parent Structure for this XMLType

Implemented in org.exolab.castor.xml.schema.AnyType, and org.exolab.castor.xml.schema.TypeReference.

Referenced by org.exolab.castor.xml.schema.ElementDecl.setType().


Member Data Documentation

String org.exolab.castor.xml.schema.XMLType.NULL_ARGUMENT = "A null argument was passed to " + XMLType.class.getName() [static, protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties