/**
* Builds the anonymous type mapping. This is intended to be called lazily.
*/
public void build()
{
XSModel model = JBossXSModel.this;
anonymousTypeMap = new HashMap<String, XSTypeDefinition>();
anonymousElementMap = new HashMap<String, XSElementDeclaration>();
XSNamedMap namedMap = model.getComponents(XSConstants.TYPE_DEFINITION);
for (int i = 0; i < namedMap.getLength(); i++)
{
XSTypeDefinition type = (XSTypeDefinition)namedMap.item(i);
if (type.getTypeCategory() != XSTypeDefinition.COMPLEX_TYPE)
continue;
analyzeComplexType((XSComplexTypeDefinition)type, null, type.getNamespace());
}
namedMap = model.getComponents(XSConstants.ELEMENT_DECLARATION);
for (int i = 0; i < namedMap.getLength(); i++)
{
XSElementDeclaration element = (XSElementDeclaration)namedMap.item(i);
analyzeElement(element, null, element.getNamespace(), null, null);
}