public class

Schema

extends Object
java.lang.Object
   ↳ org.apache.commons.betwixt.schema.Schema

Class Overview

Model for top level element in an XML Schema

Summary

Public Constructors
Schema()
Schema(XMLIntrospector introspector)
Public Methods
void addComplexType(GlobalComplexType complexType)
Adds a new complex type to those defined
void addElement(GlobalElement element)
Adds a new element to those defined.
GlobalComplexType addGlobalComplexType(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor)
Adds a new global complex type definition matching the given element descriptor.
void addGlobalElementType(TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor)
Adds global (top level) element and type declarations matching the given descriptor.
void addSimpleType(SimpleType simpleType)
Adds a new simple type to those defined.
boolean equals(Object obj)
List getComplexTypes()
Gets the complex types defined
List getElements()
Gets the elements definied
List getSimpleTypes()
Gets the simple types defined.
int hashCode()
XMLBeanInfo introspect(Class type)
Introspects the given type giving an XMLBeanInfo.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Schema ()

public Schema (XMLIntrospector introspector)

Public Methods

public void addComplexType (GlobalComplexType complexType)

Adds a new complex type to those defined

Parameters
complexType not null

public void addElement (GlobalElement element)

Adds a new element to those defined.

Parameters
element not null

public GlobalComplexType addGlobalComplexType (TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor)

Adds a new global complex type definition matching the given element descriptor. If this element descriptor has already been mapped to a global type then that is returned.

Parameters
configuration TranscriptionConfiguration, not null
elementDescriptor ElementDescriptor, not null
Returns
  • GlobalComplexType

public void addGlobalElementType (TranscriptionConfiguration configuration, ElementDescriptor elementDescriptor)

Adds global (top level) element and type declarations matching the given descriptor.

Parameters
elementDescriptor ElementDescriptor not null

public void addSimpleType (SimpleType simpleType)

Adds a new simple type to those defined.

public boolean equals (Object obj)

public List getComplexTypes ()

Gets the complex types defined

Returns
  • list of ComplexType's not null

public List getElements ()

Gets the elements definied

Returns
  • list of Elements not null

public List getSimpleTypes ()

Gets the simple types defined.

Returns
  • list of SimpleTypes not null

public int hashCode ()

public XMLBeanInfo introspect (Class type)

Introspects the given type giving an XMLBeanInfo.

Parameters
type Class to introspect, not null
Returns
  • XMLBeanInfo, not null

public String toString ()