use of org.eclipse.wst.xml.core.internal.contentmodel.basic.CMAnyElementImpl in project webtools.sourceediting by eclipse.
the class InferredGrammarFactory method lookupOrCreateCMAnyElement.
protected CMAnyElement lookupOrCreateCMAnyElement(CMDocumentImpl parentCMDocument, String uri) {
CMNamedNodeMapImpl anyElementMap = parentCMDocument.getAnyElements();
CMAnyElementImpl anyElement = (CMAnyElementImpl) anyElementMap.getNamedItem(CMAnyElementImpl.computeNodeName(uri));
if (anyElement == null) {
// System.out.println("create anyElement " + uri);
anyElement = new CMAnyElementImpl(uri);
anyElement.setInferred(true);
anyElementMap.put(anyElement);
}
return anyElement;
}
Aggregations