Search in sources :

Example 71 with INodeNotifier

use of org.eclipse.wst.sse.core.internal.provisional.INodeNotifier in project jbosstools-hibernate by jbosstools.

the class DOMReverseEngineeringDefinition method getTypeMappingsList.

private List getTypeMappingsList() {
    List result = new ArrayList();
    // $NON-NLS-1$
    List list = DOMModelUtil.getChildrenByTagName(getDocument().getDocumentElement(), "type-mapping");
    for (int i = 0; i < list.size(); i++) {
        Element item = (Element) list.get(i);
        // $NON-NLS-1$
        List sqllist = DOMModelUtil.getChildrenByTagName(item, "sql-type");
        for (int j = 0; j < sqllist.size(); j++) {
            Element item2 = (Element) sqllist.get(j);
            result.add(factory.adapt((INodeNotifier) item2));
        }
    }
    return result;
}
Also used : Element(org.w3c.dom.Element) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) INodeNotifier(org.eclipse.wst.sse.core.internal.provisional.INodeNotifier)

Aggregations

INodeNotifier (org.eclipse.wst.sse.core.internal.provisional.INodeNotifier)71 IDOMModel (org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel)35 INodeAdapter (org.eclipse.wst.sse.core.internal.provisional.INodeAdapter)31 Node (org.w3c.dom.Node)29 Document (org.w3c.dom.Document)26 IStructuredDocument (org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument)24 NullInputStream (org.eclipse.wst.sse.core.internal.encoding.util.NullInputStream)18 RegionChangedEvent (org.eclipse.wst.sse.core.internal.provisional.events.RegionChangedEvent)18 StructuredDocumentEvent (org.eclipse.wst.sse.core.internal.provisional.events.StructuredDocumentEvent)18 ICSSNode (org.eclipse.wst.css.core.internal.provisional.document.ICSSNode)14 Iterator (java.util.Iterator)9 List (java.util.List)8 IDOMDocument (org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument)8 ModelQueryAdapter (org.eclipse.wst.xml.core.internal.ssemodelquery.ModelQueryAdapter)8 ArrayList (java.util.ArrayList)7 Collection (java.util.Collection)7 ICSSModel (org.eclipse.wst.css.core.internal.provisional.document.ICSSModel)7 IndexedRegion (org.eclipse.wst.sse.core.internal.provisional.IndexedRegion)7 Element (org.w3c.dom.Element)7 CSSSourceFormatter (org.eclipse.wst.css.core.internal.formatter.CSSSourceFormatter)6