de.ispsoft.jaxme.generator
Class Schema

java.lang.Object
  extended byde.ispsoft.jaxme.generator.SchemaAnnotationOwner
      extended byde.ispsoft.jaxme.generator.Schema

public class Schema
extends SchemaAnnotationOwner

A Schema is a list of one or more SchemaElements. Schemas are typically created by using a SchemaReader.

Author:
Jochen Wiedmann

Field Summary
protected  java.util.List elements
           
 
Constructor Summary
Schema()
          Creates a new Schema with an empty SchemaElement list.
 
Method Summary
 void addSchemaElement(SchemaElement pElement)
          Adds a new SchemaElement to the list of SchemaElements.
 void clearSchemaElements()
          Clears the list of SchemaElements.
 boolean getAttributeFormDefaultQualified()
          Returns whether attributes are by default qualified.
 boolean getElementFormDefaultQualified()
          Returns whether elements are by default qualified.
 Schema getSchema()
          Returns the schema.
 java.util.Iterator getSchemaElements()
          Returns an iterator to the list of SchemaElements.
 java.lang.String getTargetNamespace()
          Returns the target namespace.
 void setAttributeFormDefaultQualified(boolean pAttributeFormDefaultQualified)
          Sets whether attributes are by default qualified.
 void setElementFormDefaultQualified(boolean pElementFormDefaultQualified)
          Sets whether elements are by default qualified.
 void setTargetNamespace(java.lang.String pTargetNamespace)
          Sets the target namespace.
 
Methods inherited from class de.ispsoft.jaxme.generator.SchemaAnnotationOwner
getAccessors, getDocumentation, getExtendsClassName, getPackageName, setAccessors, setDocumentation, setExtendsClassName, setPackageName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elements

protected java.util.List elements
Constructor Detail

Schema

public Schema()
Creates a new Schema with an empty SchemaElement list.

Method Detail

getSchemaElements

public java.util.Iterator getSchemaElements()

Returns an iterator to the list of SchemaElements. This iterator is not "live": Changes in the actual list won't be reflected in the iteration. Likewise, calling the iterators remove() method won't affect the actual list.

See Also:
addSchemaElement(de.ispsoft.jaxme.generator.SchemaElement), clearSchemaElements()

addSchemaElement

public void addSchemaElement(SchemaElement pElement)

Adds a new SchemaElement to the list of SchemaElements.

See Also:
getSchemaElements(), clearSchemaElements()

clearSchemaElements

public void clearSchemaElements()

Clears the list of SchemaElements.


getTargetNamespace

public java.lang.String getTargetNamespace()

Returns the target namespace.


setTargetNamespace

public void setTargetNamespace(java.lang.String pTargetNamespace)

Sets the target namespace.


getElementFormDefaultQualified

public boolean getElementFormDefaultQualified()

Returns whether elements are by default qualified.


setElementFormDefaultQualified

public void setElementFormDefaultQualified(boolean pElementFormDefaultQualified)

Sets whether elements are by default qualified.


getAttributeFormDefaultQualified

public boolean getAttributeFormDefaultQualified()

Returns whether attributes are by default qualified.


setAttributeFormDefaultQualified

public void setAttributeFormDefaultQualified(boolean pAttributeFormDefaultQualified)

Sets whether attributes are by default qualified.


getSchema

public Schema getSchema()
Description copied from class: SchemaAnnotationOwner

Returns the schema.

Specified by:
getSchema in class SchemaAnnotationOwner