org.codehaus.enunciate.config
Class SchemaInfo

java.lang.Object
  extended by org.codehaus.enunciate.config.SchemaInfo

public class SchemaInfo
extends java.lang.Object

Configuration information about a schema.

Author:
Ryan Heaton

Constructor Summary
SchemaInfo()
           
 
Method Summary
 java.lang.String getAttributeFormDefault()
          The attributeFormDefault for this schema.
 java.lang.String getElementFormDefault()
          The elementFormDefault for this schema.
 java.util.Collection<RootElementDeclaration> getGlobalElements()
          The collection of global elements defined in this schema.
 java.lang.String getId()
          A unique id for this schema.
 java.util.Collection<ImplicitSchemaAttribute> getImplicitSchemaAttributes()
          Get the implicit schema attributes to be included in this schema.
 java.util.Collection<ImplicitSchemaElement> getImplicitSchemaElements()
          Get the implicit schema elements to be included in this schema.
 java.util.List<SchemaInfo> getImportedSchemas()
          The list of imported schemas.
 java.util.Collection<LocalElementDeclaration> getLocalElementDeclarations()
          Local element declarations.
protected  EnunciateFreemarkerModel getModel()
          Get the current root model.
 java.lang.String getNamespace()
          The target namespace.
protected  java.util.Map<java.lang.String,SchemaInfo> getNamespacesToSchemas()
          The namespace to schema map.
 java.util.Set<Schema> getPackages()
          The set of packages that make up this schema info.
 java.util.HashMap<java.lang.String,java.lang.Object> getProperties()
          The properties for the schema.
 java.lang.Object getProperty(java.lang.String property)
          Get a property value.
 java.util.Set<java.lang.String> getReferencedNamespaces()
          The imported namespace of a specific schema.
 java.util.Collection<Registry> getRegistries()
          The XML registries.
 java.util.Collection<TypeDefinition> getTypeDefinitions()
          The collection of types defined in this schema.
 boolean isEmptyNamespace()
          Whether this is the schema for the empty namespace.
protected  SchemaInfo lookupSchema(java.lang.String namespace)
          Convenience method to lookup a namespace schema given a namespace.
 void setId(java.lang.String id)
          A unique id for this schema.
 void setNamespace(java.lang.String namespace)
          The target namespace.
 void setProperty(java.lang.String property, java.lang.Object value)
          Set a property value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaInfo

public SchemaInfo()
Method Detail

isEmptyNamespace

public boolean isEmptyNamespace()
Whether this is the schema for the empty namespace.

Returns:
Whether this is the schema for the empty namespace.

getId

public java.lang.String getId()
A unique id for this schema.

Returns:
A unique id for this schema.

setId

public void setId(java.lang.String id)
A unique id for this schema.

Parameters:
id - A unique id for this schema.

getNamespace

public java.lang.String getNamespace()
The target namespace.

Returns:
The target namespace.

setNamespace

public void setNamespace(java.lang.String namespace)
The target namespace.

Parameters:
namespace - The target namespace.

getTypeDefinitions

public java.util.Collection<TypeDefinition> getTypeDefinitions()
The collection of types defined in this schema.

Returns:
The collection of types defined in this schema.

getImplicitSchemaElements

public java.util.Collection<ImplicitSchemaElement> getImplicitSchemaElements()
Get the implicit schema elements to be included in this schema.

Returns:
The implicit schema elements to be included in this schema.

getImplicitSchemaAttributes

public java.util.Collection<ImplicitSchemaAttribute> getImplicitSchemaAttributes()
Get the implicit schema attributes to be included in this schema.

Returns:
The implicit schema attributes to be included in this schema.

getGlobalElements

public java.util.Collection<RootElementDeclaration> getGlobalElements()
The collection of global elements defined in this schema.

Returns:
The collection of global elements defined in this schema.

getRegistries

public java.util.Collection<Registry> getRegistries()
The XML registries.

Returns:
The XML registries.

getLocalElementDeclarations

public java.util.Collection<LocalElementDeclaration> getLocalElementDeclarations()
Local element declarations.

Returns:
Local element declarations.

getPackages

public java.util.Set<Schema> getPackages()
The set of packages that make up this schema info.

Returns:
The set of packages that make up this schema info.

getElementFormDefault

public java.lang.String getElementFormDefault()
The elementFormDefault for this schema.

Returns:
The elementFormDefault for this schema.

getAttributeFormDefault

public java.lang.String getAttributeFormDefault()
The attributeFormDefault for this schema.

Returns:
The attributeFormDefault for this schema.

setProperty

public void setProperty(java.lang.String property,
                        java.lang.Object value)
Set a property value.

Parameters:
property - The property.
value - The value.

getProperty

public java.lang.Object getProperty(java.lang.String property)
Get a property value.

Parameters:
property - The property whose value to retrieve.
Returns:
The property value.

getProperties

public java.util.HashMap<java.lang.String,java.lang.Object> getProperties()
The properties for the schema.

Returns:
The properties for the schema.

getReferencedNamespaces

public java.util.Set<java.lang.String> getReferencedNamespaces()
The imported namespace of a specific schema.

Returns:
The imported namespace of a specific schema.

getImportedSchemas

public java.util.List<SchemaInfo> getImportedSchemas()
The list of imported schemas.

Returns:
The list of imported schemas.

lookupSchema

protected SchemaInfo lookupSchema(java.lang.String namespace)
Convenience method to lookup a namespace schema given a namespace.

Parameters:
namespace - The namespace for which to lookup the schema.
Returns:
The schema info.

getNamespacesToSchemas

protected java.util.Map<java.lang.String,SchemaInfo> getNamespacesToSchemas()
The namespace to schema map.

Returns:
The namespace to schema map.

getModel

protected EnunciateFreemarkerModel getModel()
Get the current root model.

Returns:
The current root model.