Java Doc for Schema.java in  » Database-ORM » castor » org » exolab » castor » xml » schema » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » castor » org.exolab.castor.xml.schema 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.exolab.castor.xml.schema.Structure
      org.exolab.castor.xml.schema.Annotated
         org.exolab.castor.xml.schema.Schema

Schema
public class Schema extends Annotated (Code)
A class representing an XML Schema Definition. This class also contains some Factory methods for creating Top-Level structures.
author:
   Keith Visco
version:
   $Revision: 6230 $ $Date: 2006-04-26 13:58:52 -0600 (Wed, 26 Apr 2006) $


Field Summary
final public static  StringDEFAULT_SCHEMA_NS
     The Namespace supported by the W3C XML Schema Recommendation.
final public static  StringXSI_NAMESPACE
     The Namespace supported by the W3C XML Schema Recommendation for the built-in types: xsi:type, xsi:nil, and xsi:schemaLocation.

Constructor Summary
public  Schema()
    
public  Schema(String schemaNS)
     Creates a new Schema definition
Parameters:
  schemaNS - the namespace of the XML Schema itself.
public  Schema(String prefix, String schemaNS)
     Creates a new Schema definition
Parameters:
  prefix - the desired namespace prefix for the schemaNS.
Parameters:
  schemaNS - the namespace of the XML Schema itself.

Method Summary
public  voidaddAttribute(AttributeDecl attribute)
    
public  voidaddAttributeGroup(AttributeGroupDecl attrGroup)
     Adds the given attribute group definition to this Schema definition.
public synchronized  voidaddComplexType(ComplexType complexType)
    
public  voidaddElementDecl(ElementDecl elementDecl)
    
public synchronized  voidaddImportedSchema(Schema schema)
    
public  voidaddInclude(String include)
    
public  voidaddModelGroup(ModelGroup group)
    
public  voidaddNamespace(String prefix, String ns)
    
public  voidaddRedefineSchema(RedefineSchema schema)
     Adds the given redefinition of structures to this Schema definition. This structure is mainly used to allow the writing of an XML schema that contains redefinitions.
public synchronized  voidaddSimpleType(SimpleType simpleType)
    
public synchronized  voidcacheIncludedSchema(Schema schema)
     Caches the given Schema definition as an included XML Schema of this Schema definition.
public  ComplexTypecreateComplexType()
     Creates a new ComplexType using this Schema as the owning Schema document.
public  ComplexTypecreateComplexType(String name)
     Creates a new ComplexType using this Schema as the owning Schema document.
public  SimpleTypecreateSimpleType(String name, String baseName, String derivation)
     Creates a new SimpleType using this Schema as the owning Schema document.
public  SimpleTypecreateSimpleType(String name, SimpleType baseType)
     Creates a new SimpleType using this Schema as the owning Schema document.
public  AttributeDeclgetAttribute(String name)
     Returns the top-level Attribute associated with the given name.
public  FormgetAttributeFormDefault()
     Returns the attributeFormDefault property of this Schema. the attributeFormDefault property of this Schema, or nullif no default Form was set.
public  AttributeGroupgetAttributeGroup(String name)
     Returns the AttributeGroup associated with the given name.
public  EnumerationgetAttributeGroups()
    
public  EnumerationgetAttributes()
    
public  BlockListgetBlockDefault()
     Returns the default BlockList for this Schema.
public  StringgetBuiltInTypeName(int builtInTypeCode)
     Gets a built in type's name given its code.
public  SchemagetCachedIncludedSchema(String schemaLocation)
    
public  EnumerationgetCachedIncludedSchemas()
     Returns an enumeration of all the included schemas that are cached in this XML Schema Definition.
public  ComplexTypegetComplexType(String name)
    
public  EnumerationgetComplexTypes()
    
public  ElementDeclgetElementDecl(String name)
    
public  EnumerationgetElementDecls()
    
public  FormgetElementFormDefault()
     Returns the elementFormDefault property of this Schema. the elementFormDefault property of this Schema, or nullif no default Form was set.
public  FinalListgetFinalDefault()
     Returns the default FinalList for this Schema.
public  StringgetId()
     Returns the Id for this Schema, as specified by the Id attribute, or null if no Id exists.
public  EnumerationgetImportedSchema()
    
public  SchemagetImportedSchema(String ns)
    
public  SchemagetImportedSchema(String ns, boolean localOnly)
     Returns the imported schema with the given namespace
Parameters:
  ns - the namespace of the imported schema to return
Parameters:
  localOnly - a boolean that indicates only local importsshould be searched.
protected  SchemagetMasterSchema()
     Returns the master schema in which this instance of schema is used at runtime.
public  ModelGroupgetModelGroup(String name)
    
public  EnumerationgetModelGroups()
    
final public  StringgetNamespace(String prefix)
     Returns the namespace associated with the given prefix.
protected  StringgetNamespacePrefix(String namespace)
     Returns the namespace prefix associated with the given namespace.
public  NamespacesgetNamespaces()
    
public  EnumerationgetRedefineSchema()
     Returns an enumeration of redefined schemas.
public  RedefineSchemagetRedefineSchema(String schemaLocation)
     Returns the redefined schema corresponding schemaLocation.
Parameters:
  schemaLocation - the string corresponding to the schemaLocation.
public  StringgetSchemaLocation()
    
public  StringgetSchemaNamespace()
     Returns the namespace of the XML Schema
Note: This is not the same as targetNamespace.
public  SimpleTypegetSimpleType(String name)
     Returns the SimpleType associated with the given name, or null if no such SimpleType exists.
Parameters:
  name - the name of the SimpleType.
public  SimpleTypegetSimpleType(String name, String namespace)
     Returns the SimpleType associated with the given name and namespace, or null if no such SimpleType exists.
Parameters:
  name - the name of the simpleType.
public  EnumerationgetSimpleTypes()
    
public  shortgetStructureType()
    
public  StringgetTargetNamespace()
     Returns the target namespace for this Schema, or null if no namespace has been defined.
public  XMLTypegetType(String typeName)
    
static  SimpleTypesFactorygetTypeFactory()
    
public  StringgetVersion()
     Returns the version information of the XML Schema definition represented by this Schema instance.
public  booleanincludeProcessed(String includeFile)
    
public  booleanisKnownNamespace(String namespaceURL)
    
public  booleanremoveAttribute(AttributeDecl attribute)
    
public  booleanremoveAttributeGroup(AttributeGroupDecl group)
    
public synchronized  booleanremoveCachedIncludedSchema(Schema schema)
     Removes the given cached included schema from this Schema definition's list of cached included schema.
public  booleanremoveComplexType(ComplexType complexType)
    
public  booleanremoveElement(ElementDecl element)
    
public  booleanremoveGroup(ModelGroup group)
    
public synchronized  booleanremoveImportedSchema(Schema schema)
    
public  booleanremoveNamespace(String prefix)
     Removes the namespace from the set of namespace declarations for this Schema definition.
public synchronized  booleanremoveRedefineSchema(RedefineSchema schema)
     Removes the given redefined structure from this Schema definition's list of redefinitions.
public  booleanremoveSimpleType(SimpleType simpleType)
    
public  voidsetAttributeFormDefault(Form attributeFormDefault)
     Sets the attributeFormDefault property of this Schema.
public  voidsetBlockDefault(BlockList block)
     Sets the default BlockList for this Schema.
public  voidsetBlockDefault(String block)
     Sets the default Block values for this Schema.
public  voidsetElementFormDefault(Form elementFormDefault)
     Sets the elementFormDefault property of this Schema.
public  voidsetFinalDefault(FinalList finalList)
     Sets the default FinalList for this Schema.
public  voidsetFinalDefault(String finalValues)
     Sets the default final values for this Schema.
public  voidsetId(String id)
    
protected  voidsetMasterSchema(Schema masterSchema)
     Sets the master schema in which this instance of schema is used at runtime.
public  voidsetSchemaLocation(String schemaLocation)
     Set the schemaLocation for this schema.
public  voidsetTargetNamespace(String targetNamespace)
    
public  voidsetVersion(String version)
     Sets the version information for the XML Schema defintion represented by this Schema instance.
public  voidvalidate()
     Checks the validity of this Schema definition.

Field Detail
DEFAULT_SCHEMA_NS
final public static String DEFAULT_SCHEMA_NS(Code)
The Namespace supported by the W3C XML Schema Recommendation.



XSI_NAMESPACE
final public static String XSI_NAMESPACE(Code)
The Namespace supported by the W3C XML Schema Recommendation for the built-in types: xsi:type, xsi:nil, and xsi:schemaLocation.




Constructor Detail
Schema
public Schema()(Code)
Creates a new Schema definition



Schema
public Schema(String schemaNS)(Code)
Creates a new Schema definition
Parameters:
  schemaNS - the namespace of the XML Schema itself. Notethis is not the same as the targetNamespace.



Schema
public Schema(String prefix, String schemaNS)(Code)
Creates a new Schema definition
Parameters:
  prefix - the desired namespace prefix for the schemaNS.
Parameters:
  schemaNS - the namespace of the XML Schema itself. Notethis is not the same as the targetNamespace.




Method Detail
addAttribute
public void addAttribute(AttributeDecl attribute) throws SchemaException(Code)
Adds the given attribute definition to this Schema definition
Parameters:
  attribute - the AttributeDecl to add
exception:
  SchemaException - if an AttributeDeclalready exisits with the same name



addAttributeGroup
public void addAttributeGroup(AttributeGroupDecl attrGroup) throws SchemaException(Code)
Adds the given attribute group definition to this Schema definition.
Parameters:
  attrGroup - the AttributeGroupDecl to add
exception:
  SchemaException - if an AttributeGroupDeclalready exisits with the same name



addComplexType
public synchronized void addComplexType(ComplexType complexType) throws SchemaException(Code)
Adds the given Complextype definition to this Schema defintion
Parameters:
  complexType - the Complextype to add to this Schema
exception:
  SchemaException - if the Complextype does not havea name or if another Complextype already exists with the same name



addElementDecl
public void addElementDecl(ElementDecl elementDecl) throws SchemaException(Code)
Adds the given Element declaration to this Schema defintion
Parameters:
  elementDecl - the ElementDecl to add to this SchemaDef
exception:
  SchemaException - when an ElementDecl alreadyexists with the same name as the given ElementDecl



addImportedSchema
public synchronized void addImportedSchema(Schema schema) throws SchemaException(Code)
Adds the given Schema definition to this Schema definition as an imported schenma
Parameters:
  schema - the Schema to add to this Schema as an imported schema
exception:
  SchemaException - if the Schema already exists



addInclude
public void addInclude(String include)(Code)
Indicates that the given XML Schema file has been processed via an



addModelGroup
public void addModelGroup(ModelGroup group) throws SchemaException(Code)
Adds the given Group declaration to this Schema definition
Parameters:
  group - the Group to add to this SchemaDef
exception:
  SchemaException - when an Group alreadyexists with the same name as the given Group



addNamespace
public void addNamespace(String prefix, String ns)(Code)
Adds to the namespaces declared in this Schema



addRedefineSchema
public void addRedefineSchema(RedefineSchema schema) throws SchemaException(Code)
Adds the given redefinition of structures to this Schema definition. This structure is mainly used to allow the writing of an XML schema that contains redefinitions. The validation process is permissive since the method won't check that the XML Schema is already imported nor will it check that the redefined structures exist.
Parameters:
  schema - the Group to add to this SchemaDef
exception:
  SchemaException - when an redefintion alreadyexists with the same name as the given ElementDecl



addSimpleType
public synchronized void addSimpleType(SimpleType simpleType) throws SchemaException(Code)
Adds the given SimpletType definition to this Schema defintion
Parameters:
  simpleType - the SimpleType to add to this Schema
exception:
  SchemaException - if the SimpleType does not havea name or if another SimpleType already exists with the same name



cacheIncludedSchema
public synchronized void cacheIncludedSchema(Schema schema) throws SchemaException(Code)
Caches the given Schema definition as an included XML Schema of this Schema definition.
Parameters:
  schema - the Schema to add to this Schema as a cached included schema.
exception:
  SchemaException - if the Schema already exists



createComplexType
public ComplexType createComplexType()(Code)
Creates a new ComplexType using this Schema as the owning Schema document. A call to #addComplexType must still be made in order to add the complexType to this Schema. the new ComplexType



createComplexType
public ComplexType createComplexType(String name)(Code)
Creates a new ComplexType using this Schema as the owning Schema document. A call to #addComplexType must still be made in order to add the complexType to this Schema.
Parameters:
  name - the name of the ComplexType the new ComplexType



createSimpleType
public SimpleType createSimpleType(String name, String baseName, String derivation)(Code)
Creates a new SimpleType using this Schema as the owning Schema document. A call to #addSimpleType must till be made in order to add the SimpleType to this Schema.
Parameters:
  name - the name of the SimpleType
Parameters:
  baseName - the name of the SimpleType's base type
Parameters:
  derivation - the name of the derivation method (""/"list"/"restriction") the new SimpleType.



createSimpleType
public SimpleType createSimpleType(String name, SimpleType baseType)(Code)
Creates a new SimpleType using this Schema as the owning Schema document. A call to #addSimpleType must till be made in order to add the SimpleType to this Schema if the type is to be global.
Parameters:
  name - the name of the SimpleType
Parameters:
  baseType - the base type of the SimpleType to create the new SimpleType.



getAttribute
public AttributeDecl getAttribute(String name)(Code)
Returns the top-level Attribute associated with the given name. the Attribute associated with the given name,or null if no Attribute association is found.



getAttributeFormDefault
public Form getAttributeFormDefault()(Code)
Returns the attributeFormDefault property of this Schema. the attributeFormDefault property of this Schema, or nullif no default Form was set. If no default Form has been set, theuser should assume Form.Unqualified.



getAttributeGroup
public AttributeGroup getAttributeGroup(String name)(Code)
Returns the AttributeGroup associated with the given name. the AttributeGroup associated with the given name,or null if no AttributeGroup association is found.



getAttributeGroups
public Enumeration getAttributeGroups()(Code)
Returns an Enumeration of all top-level AttributeGroup declarations an Enumeration of all top-level AttributeGroup declarations



getAttributes
public Enumeration getAttributes()(Code)
Returns an Enumeration of all top-level Attribute declarations an Enumeration of all top-level Attribute declarations



getBlockDefault
public BlockList getBlockDefault()(Code)
Returns the default BlockList for this Schema. the default BlockList for this Schema.



getBuiltInTypeName
public String getBuiltInTypeName(int builtInTypeCode)(Code)
Gets a built in type's name given its code.



getCachedIncludedSchema
public Schema getCachedIncludedSchema(String schemaLocation)(Code)
Returns the cached included schema with the given SchemaLocation
Parameters:
  schemaLocation - the schemaLocation value used as a key to store the cached included XML schema the cached included XML schema



getCachedIncludedSchemas
public Enumeration getCachedIncludedSchemas()(Code)
Returns an enumeration of all the included schemas that are cached in this XML Schema Definition. an enumeration of all the included schemas that are cached in this XML Schema Definition.



getComplexType
public ComplexType getComplexType(String name)(Code)
Returns the ComplexType of associated with the given name the ComplexType of associated with the given name, ornull if no ComplexType with the given name was found.



getComplexTypes
public Enumeration getComplexTypes()(Code)
Returns an Enumeration of all top-level ComplexType declarations an Enumeration of all top-level ComplexType declarations



getElementDecl
public ElementDecl getElementDecl(String name)(Code)
Returns the ElementDecl of associated with the given name the ElementDecl of associated with the given name, ornull if no ElementDecl with the given name was found.



getElementDecls
public Enumeration getElementDecls()(Code)
Returns an Enumeration of all top-level element declarations an Enumeration of all top-level element declarations



getElementFormDefault
public Form getElementFormDefault()(Code)
Returns the elementFormDefault property of this Schema. the elementFormDefault property of this Schema, or nullif no default Form was set. If no default Form has been set, theuser should assume Form.Unqualified.



getFinalDefault
public FinalList getFinalDefault()(Code)
Returns the default FinalList for this Schema. final the default FinalList for this Schema.



getId
public String getId()(Code)
Returns the Id for this Schema, as specified by the Id attribute, or null if no Id exists. the Id for this Scheam, or null if no Id exists



getImportedSchema
public Enumeration getImportedSchema()(Code)
Returns the imported schemas of this schema the hashtable of the imported schemas



getImportedSchema
public Schema getImportedSchema(String ns)(Code)
Returns the imported schema with the given namespace
Parameters:
  ns - the namespace of the imported schema to return the imported schema



getImportedSchema
public Schema getImportedSchema(String ns, boolean localOnly)(Code)
Returns the imported schema with the given namespace
Parameters:
  ns - the namespace of the imported schema to return
Parameters:
  localOnly - a boolean that indicates only local importsshould be searched. the imported schema



getMasterSchema
protected Schema getMasterSchema()(Code)
Returns the master schema in which this instance of schema is used at runtime. This method is meant to be used at runtime. the master schema in which this instance of schemais used at runtime. This method is meant to be used at runtime.



getModelGroup
public ModelGroup getModelGroup(String name)(Code)
Returns the ModeGroup of associated with the given name the ModelGroup of associated with the given name, ornull if no ModelGroup with the given name was found.



getModelGroups
public Enumeration getModelGroups()(Code)
Returns an Enumeration of all top-level ModelGroup declarations an Enumeration of all top-level ModelGroup declarations



getNamespace
final public String getNamespace(String prefix)(Code)
Returns the namespace associated with the given prefix. the namespace associated with the given prefix,or null if no associated namespace exists.



getNamespacePrefix
protected String getNamespacePrefix(String namespace)(Code)
Returns the namespace prefix associated with the given namespace. If more than one prefix has been associated, the first one found will be returned. the namespace prefix associaed with thegiven namespace.



getNamespaces
public Namespaces getNamespaces()(Code)
Returns the namespaces declared for this Schema the namespaces declared for this Schema



getRedefineSchema
public Enumeration getRedefineSchema()(Code)
Returns an enumeration of redefined schemas. an enumeration of redefined schemas.



getRedefineSchema
public RedefineSchema getRedefineSchema(String schemaLocation)(Code)
Returns the redefined schema corresponding schemaLocation.
Parameters:
  schemaLocation - the string corresponding to the schemaLocation. the redefined schema corresponding schemaLocation.



getSchemaLocation
public String getSchemaLocation()(Code)
Returns the schemaLocation hint provided of this schema the schemaLocation hint provided of this schema



getSchemaNamespace
public String getSchemaNamespace()(Code)
Returns the namespace of the XML Schema
Note: This is not the same as targetNamespace. This is the namespace of "XML Schema" itself and not the namespace of the schema that is represented by this object model (see #getTargetNamespace). the namespace of the XML Schema



getSimpleType
public SimpleType getSimpleType(String name)(Code)
Returns the SimpleType associated with the given name, or null if no such SimpleType exists.
Parameters:
  name - the name of the SimpleType. The name maybe a QName (contain a namespace prefix). the SimpleType associated with the given name,or null if no such SimpleType exists.



getSimpleType
public SimpleType getSimpleType(String name, String namespace)(Code)
Returns the SimpleType associated with the given name and namespace, or null if no such SimpleType exists.
Parameters:
  name - the name of the simpleType. It is an errorif this name contains a prefix, it must be an NCName.
Parameters:
  namespace - the namespace URI of the simpleType. the SimpleType, or null if no such SimpleType exists.



getSimpleTypes
public Enumeration getSimpleTypes()(Code)
Returns an Enumeration of all SimpleType declarations an Enumeration of all SimpleType declarations



getStructureType
public short getStructureType()(Code)
Returns the type of this Schema Structure the type of this Schema Structure



getTargetNamespace
public String getTargetNamespace()(Code)
Returns the target namespace for this Schema, or null if no namespace has been defined. the target namespace for this Schema, or null if nonamespace has been defined



getType
public XMLType getType(String typeName)(Code)
Returns the first simple or complex type which name equals TypeName



getTypeFactory
static SimpleTypesFactory getTypeFactory()(Code)
Gets the type factory, package private



getVersion
public String getVersion()(Code)
Returns the version information of the XML Schema definition represented by this Schema instance. the version information of the XML Schemadefinition, or null if no version information exists.



includeProcessed
public boolean includeProcessed(String includeFile)(Code)
Returns True if the given XML Schema has already been included via True if the file specified has already been processed



isKnownNamespace
public boolean isKnownNamespace(String namespaceURL)(Code)
Returns True if the namespace is known to this schema
Parameters:
  namespaceURL - the namespace URL True if the namespace was declared in the schema



removeAttribute
public boolean removeAttribute(AttributeDecl attribute)(Code)
Removes the given top level Attribute from this Schema
Parameters:
  attribute - the AttributeDecl to remove true if the AttributeDecl has been removed, orfalse if the AttributeDecl wasn't top level ordidn't exist in this Schema



removeAttributeGroup
public boolean removeAttributeGroup(AttributeGroupDecl group)(Code)
Removes the given AttributeGroup definition from this Schema
Parameters:
  group - the AttributeGroup definition to remove true if the AttributeGroup definition has been removed.



removeCachedIncludedSchema
public synchronized boolean removeCachedIncludedSchema(Schema schema)(Code)
Removes the given cached included schema from this Schema definition's list of cached included schema.
Parameters:
  schema - the Schema to remove from this Schema's redefinition list true if the Schema was removed, otherwise false



removeComplexType
public boolean removeComplexType(ComplexType complexType)(Code)
Removes the given top level ComplexType from this Schema
Parameters:
  complexType - the ComplexType to remove true if the complexType has been removed, orfalse if the complexType wasn't top level ordidn't exist in this Schema



removeElement
public boolean removeElement(ElementDecl element)(Code)
Removes the given top level Element from this Schema
Parameters:
  element - the ElementDecl to remove true if the ElementDecl has been removed, orfalse if the ElementDecl wasn't top level ordidn't exist in this Schema



removeGroup
public boolean removeGroup(ModelGroup group)(Code)
Removes the given top level ModelGroup definition from this Schema
Parameters:
  group - the ModelGroup definition to remove true if the ModelGroup definition has been removed, orfalse if the ModelGroup definition wasn't top level ordidn't exist in this Schema.



removeImportedSchema
public synchronized boolean removeImportedSchema(Schema schema)(Code)
Removes the given Schema definition from this Schema definition's list of imported schenma
Parameters:
  schema - the Schema to remove from this Schema's import list true if the Schema was removed, otherwise false



removeNamespace
public boolean removeNamespace(String prefix)(Code)
Removes the namespace from the set of namespace declarations for this Schema definition.
Parameters:
  prefix - the namespace prefix of the namespace to remove.



removeRedefineSchema
public synchronized boolean removeRedefineSchema(RedefineSchema schema)(Code)
Removes the given redefined structure from this Schema definition's list of redefinitions.
Parameters:
  schema - the Schema to remove from this Schema's redefinition list true if the Schema was removed, otherwise false



removeSimpleType
public boolean removeSimpleType(SimpleType simpleType)(Code)
Removes the given top level SimpleType from this Schema
Parameters:
  simpleType - the SimpleType to remove true if the SimpleType has been removed, orfalse if the SimpleType wasn't top level ordidn't exist in this Schema



setAttributeFormDefault
public void setAttributeFormDefault(Form attributeFormDefault)(Code)
Sets the attributeFormDefault property of this Schema.
Parameters:
  attributeFormDefault - the Form value of the attributeFormDefaultproperty for this Schema.



setBlockDefault
public void setBlockDefault(BlockList block)(Code)
Sets the default BlockList for this Schema.
Parameters:
  block - the default BlockList to set for this Schema.



setBlockDefault
public void setBlockDefault(String block)(Code)
Sets the default Block values for this Schema.
Parameters:
  block - the default Block values to set for this Schema.



setElementFormDefault
public void setElementFormDefault(Form elementFormDefault)(Code)
Sets the elementFormDefault property of this Schema.
Parameters:
  elementFormDefault - the Form value of the elementFormDefaultproperty for this Schema.



setFinalDefault
public void setFinalDefault(FinalList finalList)(Code)
Sets the default FinalList for this Schema.
Parameters:
  finalList - the default FinalList to set for this Schema.



setFinalDefault
public void setFinalDefault(String finalValues)(Code)
Sets the default final values for this Schema.
Parameters:
  finalValues - the default final values to set for this Schema.



setId
public void setId(String id)(Code)
Sets the Id for this Schema
Parameters:
  id - the Id for this Schema



setMasterSchema
protected void setMasterSchema(Schema masterSchema)(Code)
Sets the master schema in which this instance of schema is used at runtime. This method is meant to be used at runtime. A master schema is a schema in which this instance of Schema is included, redefined or imported.
Parameters:
  masterSchema - the master schema in which this instance of schemais used at runtime. This method is meant to be used at runtime.



setSchemaLocation
public void setSchemaLocation(String schemaLocation)(Code)
Set the schemaLocation for this schema. This is useful when this schema has been imported by another schema
Parameters:
  schemaLocation - the location hint for this Schema



setTargetNamespace
public void setTargetNamespace(String targetNamespace)(Code)
Sets the target namespace for this Schema
Parameters:
  targetNamespace - the target namespace for this Schema
See Also:    "§ 2.7 XML Schema Part 1: Structures"



setVersion
public void setVersion(String version)(Code)
Sets the version information for the XML Schema defintion represented by this Schema instance.
Parameters:
  version - the version for this XML Schema defination.



validate
public void validate() throws ValidationException(Code)
Checks the validity of this Schema definition.
throws:
  ValidationException - when this Schema definitionis invalid.



Methods inherited from org.exolab.castor.xml.schema.Annotated
public void addAnnotation(Annotation annotation)(Code)(Java Doc)
public Enumeration getAnnotations()(Code)(Java Doc)
public void removeAnnotation(Annotation annotation)(Code)(Java Doc)

Fields inherited from org.exolab.castor.xml.schema.Structure
final public static short ANNOTATION(Code)(Java Doc)
final public static short ANYTYPE(Code)(Java Doc)
final public static short APPINFO(Code)(Java Doc)
final public static short ATTRIBUTE(Code)(Java Doc)
final public static short ATTRIBUTE_GROUP(Code)(Java Doc)
final public static short COMPLEX_CONTENT(Code)(Java Doc)
final public static short COMPLEX_TYPE(Code)(Java Doc)
final public static short DOCUMENTATION(Code)(Java Doc)
final public static short ELEMENT(Code)(Java Doc)
final public static short FACET(Code)(Java Doc)
final public static short GROUP(Code)(Java Doc)
final public static short IDENTITY_FIELD(Code)(Java Doc)
final public static short IDENTITY_SELECTOR(Code)(Java Doc)
final public static short KEY(Code)(Java Doc)
final public static short KEYREF(Code)(Java Doc)
final public static short LIST(Code)(Java Doc)
final public static short MODELGROUP(Code)(Java Doc)
final public static short MODELGROUP_REF(Code)(Java Doc)
final public static short REDEFINE(Code)(Java Doc)
final public static short SCHEMA(Code)(Java Doc)
final public static short SIMPLE_CONTENT(Code)(Java Doc)
final public static short SIMPLE_TYPE(Code)(Java Doc)
final public static short UNION(Code)(Java Doc)
final public static short UNIQUE(Code)(Java Doc)
final public static short UNKNOWN(Code)(Java Doc)
final public static short WILDCARD(Code)(Java Doc)

Methods inherited from org.exolab.castor.xml.schema.Structure
abstract public short getStructureType()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
abstract public void validate() throws ValidationException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.