Search in sources :

Example 11 with NamespaceTable

use of org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceTable in project webtools.sourceediting by eclipse.

the class AbstractXSLContentAssistRequest method getNamespaces.

protected Collection<NamespaceInfo> getNamespaces(IDOMElement element) {
    NamespaceTable table = new NamespaceTable(element.getOwnerDocument());
    table.visitElement(element);
    Collection<NamespaceInfo> namespaceInfoList = table.getNamespaceInfoCollection();
    return namespaceInfoList;
}
Also used : NamespaceTable(org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceTable) NamespaceInfo(org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceInfo)

Aggregations

NamespaceTable (org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceTable)11 NamespaceInfo (org.eclipse.wst.xml.core.internal.contentmodel.util.NamespaceInfo)5 ArrayList (java.util.ArrayList)3 List (java.util.List)3 CMDocument (org.eclipse.wst.xml.core.internal.contentmodel.CMDocument)3 Document (org.w3c.dom.Document)3 IDOMDocument (org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument)2 Element (org.w3c.dom.Element)2 NodeList (org.w3c.dom.NodeList)2 Iterator (java.util.Iterator)1 IPath (org.eclipse.core.runtime.IPath)1 CMAttributeDeclaration (org.eclipse.wst.xml.core.internal.contentmodel.CMAttributeDeclaration)1 CMElementDeclaration (org.eclipse.wst.xml.core.internal.contentmodel.CMElementDeclaration)1 CMNode (org.eclipse.wst.xml.core.internal.contentmodel.CMNode)1 DocumentType (org.w3c.dom.DocumentType)1 Node (org.w3c.dom.Node)1