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 () |
The base type for XML Schema types, such as complex types and simple types.
org.exolab.castor.xml.schema.XMLType.XMLType | ( | ) |
Default constructor
XMLType org.exolab.castor.xml.schema.XMLType.getBaseType | ( | ) |
Returns the base type that this type inherits from. If this type is a Simpletype that is a built in primitive type then null is returned.
Referenced by org.exolab.castor.builder.TypeConversion.convertType(), org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.xml.schema.reader.RedefineUnmarshaller.endElement(), org.exolab.castor.xml.schema.SimpleType.getBuiltInBaseType(), org.exolab.castor.xml.schema.SimpleType.getFacets(), and com.cosylab.cdb.jdal.XSDElementTypeResolver.internalGetElementTypes().
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.
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 | ( | ) |
Returns the schema to which this type belongs
Referenced by org.exolab.castor.xml.schema.Union.addMemberType(), org.exolab.castor.xml.schema.reader.ComplexContentRestrictionUnmarshaller.ComplexContentRestrictionUnmarshaller(), org.exolab.castor.builder.TypeConversion.convertType(), org.exolab.castor.xml.schema.ComplexType.createAttributeDecl(), org.exolab.castor.xml.schema.DeferredSimpleType.createInstance(), org.exolab.castor.xml.schema.SimpleType.createReference(), org.exolab.castor.builder.SourceFactory.createSourceCode(), org.exolab.castor.xml.schema.reader.ExtensionUnmarshaller.ExtensionUnmarshaller(), org.exolab.castor.xml.schema.ComplexType.getBaseType(), org.exolab.castor.xml.schema.Wildcard.getSchema(), org.exolab.castor.xml.schema.AttributeDecl.getSimpleType(), org.exolab.castor.builder.binding.XMLBindingComponent.getTargetNamespace(), org.exolab.castor.xml.schema.ElementDecl.getType(), org.exolab.castor.xml.schema.ComplexType.isTopLevel(), org.exolab.castor.xml.schema.TypeReference.resolveTypeReference(), org.exolab.castor.xml.schema.SimpleTypeReference.resolveTypeReference(), org.exolab.castor.xml.schema.Union.setSchema(), org.exolab.castor.xml.schema.SimpleTypeReference.setSchema(), org.exolab.castor.xml.schema.simpletypes.ListType.setSchema(), org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller.SimpleContentRestrictionUnmarshaller(), and org.exolab.castor.xml.schema.ElementDecl.validate().
XMLType org.exolab.castor.xml.schema.XMLType.getType | ( | ) | [package] |
Returns the type this type "really" represents ("this" in most cases), provides the indirection needed by references and forward declarations.
Reimplemented in org.exolab.castor.xml.schema.TypeReference.
Referenced by org.exolab.castor.xml.schema.Union.addMemberType(), org.exolab.castor.xml.schema.Union.getMemberTypes(), org.exolab.castor.xml.schema.Schema.getSimpleType(), org.exolab.castor.xml.schema.AttributeDecl.getSimpleType(), org.exolab.castor.xml.schema.Schema.getSimpleTypes(), org.exolab.castor.xml.schema.ElementDecl.getType(), org.exolab.castor.builder.binding.XMLBindingComponent.getXMLType(), and org.exolab.castor.xml.schema.SimpleType.resolveReference().
final boolean org.exolab.castor.xml.schema.XMLType.isAnyType | ( | ) |
Returns true if this XMLType is an AnyType
References org.exolab.castor.xml.schema.Structure.getStructureType().
Referenced by org.exolab.castor.xml.schema.reader.ComplexContentRestrictionUnmarshaller.ComplexContentRestrictionUnmarshaller(), org.exolab.castor.builder.MemberFactory.createFieldInfo(), and org.exolab.castor.builder.SourceFactory.createSourceCode().
final boolean org.exolab.castor.xml.schema.XMLType.isComplexType | ( | ) |
Returns true if this XMLType is a ComplexType
References org.exolab.castor.xml.schema.Structure.getStructureType().
Referenced by org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.builder.binding.XMLBindingComponent.createGroupItem(), org.exolab.castor.builder.SourceFactory.createSourceCode(), org.exolab.castor.builder.binding.XMLBindingComponent.getJavaType(), org.exolab.castor.xml.schema.ComplexType.setBaseType(), org.exolab.castor.xml.schema.XMLType.setName(), and org.exolab.castor.xml.schema.ElementDecl.validate().
final boolean org.exolab.castor.xml.schema.XMLType.isSimpleType | ( | ) |
Returns true if this XMLType is a SimpleType
References org.exolab.castor.xml.schema.Structure.getStructureType().
Referenced by org.exolab.castor.xml.schema.reader.ComplexContentRestrictionUnmarshaller.ComplexContentRestrictionUnmarshaller(), org.exolab.castor.builder.MemberFactory.createFieldInfo(), org.exolab.castor.builder.SourceFactory.createSourceCode(), org.exolab.castor.xml.schema.reader.ExtensionUnmarshaller.ExtensionUnmarshaller(), org.exolab.castor.builder.binding.XMLBindingComponent.getJavaType(), org.exolab.castor.xml.schema.SimpleContent.getSimpleType(), org.exolab.castor.xml.schema.ComplexType.setBaseType(), org.exolab.castor.xml.schema.XMLType.setName(), org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller.SimpleContentRestrictionUnmarshaller(), and org.exolab.castor.xml.schema.ElementDecl.validate().
void org.exolab.castor.xml.schema.XMLType.setBaseType | ( | XMLType | baseType | ) |
Sets the base type for this datatype
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.setDerivationMethod | ( | String | derivationMethod | ) |
Sets the derivation method name
Reimplemented in org.exolab.castor.xml.schema.AnyType.
Referenced by org.exolab.castor.xml.schema.reader.ComplexContentRestrictionUnmarshaller.ComplexContentRestrictionUnmarshaller(), org.exolab.castor.xml.schema.reader.ComplexTypeUnmarshaller.ComplexTypeUnmarshaller(), org.exolab.castor.xml.schema.SimpleTypesFactory.createUserSimpleType(), org.exolab.castor.xml.schema.reader.ExtensionUnmarshaller.ExtensionUnmarshaller(), and org.exolab.castor.xml.schema.reader.SimpleContentRestrictionUnmarshaller.SimpleContentRestrictionUnmarshaller().
void org.exolab.castor.xml.schema.XMLType.setId | ( | String | id | ) |
Sets the Id for this XMLType. The Id must be globally unique within the Schema. Use a null value to remove the Id.
id | the unique Id for this XMLType |
Reimplemented in org.exolab.castor.xml.schema.AnyType.
Referenced by org.exolab.castor.xml.schema.reader.ComplexTypeUnmarshaller.ComplexTypeUnmarshaller(), org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.copyInto(), org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.createSimpleType(), and org.exolab.castor.xml.schema.reader.SimpleTypeListUnmarshaller.SimpleTypeListUnmarshaller().
synchronized void org.exolab.castor.xml.schema.XMLType.setName | ( | String | name | ) |
Sets the name of this type
name | of the type |
Reimplemented in org.exolab.castor.xml.schema.AnyType.
References org.exolab.castor.xml.schema.Schema.addComplexType(), org.exolab.castor.xml.schema.Schema.addSimpleType(), org.exolab.castor.xml.schema.XMLType.isComplexType(), org.exolab.castor.xml.schema.XMLType.isSimpleType(), org.exolab.castor.xml.schema.Schema.removeComplexType(), org.exolab.castor.xml.schema.Schema.removeSimpleType(), and org.exolab.castor.xml.XMLException.toString().
Referenced by org.exolab.castor.xml.schema.ComplexType.ComplexType(), org.exolab.castor.xml.schema.reader.ComplexTypeUnmarshaller.ComplexTypeUnmarshaller(), org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.copyInto(), org.exolab.castor.xml.schema.SimpleTypesFactory.createUserSimpleType(), org.exolab.castor.xml.schema.DeferredSimpleType.DeferredSimpleType(), org.exolab.castor.xml.schema.ElementDecl.setTypeReference(), and org.exolab.castor.xml.schema.simpletypes.UrType.UrType().
abstract void org.exolab.castor.xml.schema.XMLType.setParent | ( | Structure | parent | ) | [protected, pure virtual] |
Sets the parent 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().
void org.exolab.castor.xml.schema.XMLType.setSchema | ( | Schema | schema | ) |
Sets the name of this SimpleType
schema | the Schema to which this Simpletype belongs |
References org.exolab.castor.xml.schema.XMLType.NULL_ARGUMENT.
Referenced by org.exolab.castor.xml.schema.AnyType.AnyType(), org.exolab.castor.xml.schema.ComplexType.ComplexType(), org.exolab.castor.xml.schema.reader.SimpleTypeDefinition.copyInto(), org.exolab.castor.xml.schema.SimpleTypesFactory.createUserSimpleType(), org.exolab.castor.xml.schema.DeferredSimpleType.DeferredSimpleType(), and org.exolab.castor.xml.schema.ElementDecl.setTypeReference().
String org.exolab.castor.xml.schema.XMLType.NULL_ARGUMENT = "A null argument was passed to " + XMLType.class.getName() [static, protected] |
Error message for a null argument
Referenced by org.exolab.castor.xml.schema.ComplexType.ComplexType(), and org.exolab.castor.xml.schema.XMLType.setSchema().