eu.esdihumboldt.hale.io.xsd.model
Class XmlIndex
java.lang.Object
eu.esdihumboldt.hale.common.schema.model.impl.DefaultTypeIndex
eu.esdihumboldt.hale.common.schema.model.impl.DefaultSchema
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 XmlTypeDefinition
s
- Author:
- Simon Templer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlIndex
public XmlIndex(String namespace,
URI location)
- See Also:
DefaultSchema.DefaultSchema(String, URI)
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
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d