org.idoox.xml.schema
Interface Schema

All Superinterfaces:
SchemaHolder

public interface Schema
extends SchemaHolder

A representation of an XML Schemata.

Since:
4.0
Component:
Core

Method Summary
 void addJavaSchemaTypeMapping(java.lang.String javaType, Type schemaType)
          Sets a schema type for a given java type.
 java.util.Map getAllSchemasAsElements()
          Returns all the schemata al DOM elements.
 Type getSchemaType(java.lang.String javaType)
          Finds out the appropriate schema type for a given java type.
 
Methods inherited from interface org.idoox.xml.schema.SchemaHolder
addAttribute, addAttributeGroup, addSchemaElement, addSchemaGroup, addSchemaType, getAttribute, getAttribute, getAttributeGroup, getAttributeGroup, getAttributeGroups, getAttributes, getElements, getGroups, getNamespaces, getParser, getSchemaElement, getSchemaElement, getSchemaGroup, getSchemaGroup, getSchemaType, getSchemaType, getTypes, toString
 

Method Detail

getAllSchemasAsElements

public java.util.Map getAllSchemasAsElements()
                                      throws SchemaException
Returns all the schemata al DOM elements.

Returns:
all the schemata al DOM elements
Throws:
SchemaException

getSchemaType

public Type getSchemaType(java.lang.String javaType)
                   throws SchemaException
Finds out the appropriate schema type for a given java type.

The type for which getJavaTypeName() == javaType is returned. If nothing is found, null is returned.

Parameters:
javaType - java type to be translated
Returns:
the XML Schema Type
Throws:
SchemaException - if something goes wrong (such as parsing, ...)

addJavaSchemaTypeMapping

public void addJavaSchemaTypeMapping(java.lang.String javaType,
                                     Type schemaType)
Sets a schema type for a given java type.

Parameters:
javaType - the java type to be mapped
schemaType - the schema type to which the java type is mapped to