org.apache.hivemind.schema
Interface Schema

All Superinterfaces:
Locatable
All Known Subinterfaces:
ElementModel
All Known Implementing Classes:
ElementModelImpl, SchemaImpl

public interface Schema
extends Locatable

An object which may contain a model, used to identify the form of XML content allowed within some other, containing element.

This is very much provisional; in the future will be more control for validation (i.e, controlling the number of occurances), and support for analogs of W3C SChema sequence and choice. The excess flexibility here forces some validation into element objects (the objects created from the Rules within the ElementModels).

Author:
Howard Lewis Ship

Method Summary
 java.util.List getElementModel()
          Returns a List of ElementModel, identifing the elements which may be enclosed by the modeled element.
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Method Detail

getElementModel

public java.util.List getElementModel()
Returns a List of ElementModel, identifing the elements which may be enclosed by the modeled element.

The returned list is unmodifiabled and may be empty, but won't be null.