Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.xsd.model
Class XmlIndex

java.lang.Object
  extended by eu.esdihumboldt.hale.common.schema.model.impl.DefaultTypeIndex
      extended by eu.esdihumboldt.hale.common.schema.model.impl.DefaultSchema
          extended by eu.esdihumboldt.hale.io.xsd.model.XmlIndex
All Implemented Interfaces:
Locatable, Schema, TypeIndex

public class XmlIndex
extends DefaultSchema

XML schema used during schema parsing, manages XmlTypeDefinitions

Author:
Simon Templer

Constructor Summary
XmlIndex(String namespace, URI location)
           
 
Method Summary
 void addType(TypeDefinition type)
          Add a type to the type index.
 Map<QName,XmlAttributeGroup> getAttributeGroups()
           
 Map<QName,XmlAttribute> getAttributes()
           
 Map<QName,XmlElement> getElements()
           
 Map<QName,XmlGroup> getGroups()
           
 XmlTypeDefinition getOrCreateType(QName name)
          Get the type definition with the given name.
 Map<String,String> getPrefixes()
           
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.DefaultSchema
getLocation, getNamespace
 
Methods inherited from class eu.esdihumboldt.hale.common.schema.model.impl.DefaultTypeIndex
getMappingRelevantTypes, getType, getTypes, toggleMappingRelevant
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.esdihumboldt.hale.common.schema.model.TypeIndex
getMappingRelevantTypes, getType, getTypes, toggleMappingRelevant
 

Constructor Detail

XmlIndex

public XmlIndex(String namespace,
                URI location)
See Also:
DefaultSchema.DefaultSchema(String, URI)
Method Detail

getOrCreateType

public XmlTypeDefinition getOrCreateType(QName name)
Get the type definition with the given name. If the type doesn't exist a new type definition will be created.

Parameters:
name - the type name
Returns:
the type definition

addType

public void addType(TypeDefinition type)
Description copied from class: DefaultTypeIndex
Add a type to the type index.

Overrides:
addType in class DefaultTypeIndex
Parameters:
type - the type to add
See Also:
DefaultTypeIndex.addType(TypeDefinition)

getAttributes

public Map<QName,XmlAttribute> getAttributes()
Returns:
the attribute definitions

getAttributeGroups

public Map<QName,XmlAttributeGroup> getAttributeGroups()
Returns:
the attribute group definitions

getElements

public Map<QName,XmlElement> getElements()
Returns:
the element definitions

getGroups

public Map<QName,XmlGroup> getGroups()
Returns:
the group definitions

getPrefixes

public Map<String,String> getPrefixes()
Returns:
the prefixes, namespaces mapped to prefix

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d