Package org.eclipse.wst.xml.core.internal.contentmodel.util

Examples of org.eclipse.wst.xml.core.internal.contentmodel.util.DOMContentBuilder


  }


  public void insert(Node parent, CMNode cmnode, int index) {
    Document document = parent.getNodeType() == Node.DOCUMENT_NODE ? (Document) parent : parent.getOwnerDocument();
    DOMContentBuilder builder = createDOMContentBuilder(document);
    builder.setBuildPolicy(DOMContentBuilder.BUILD_ONLY_REQUIRED_CONTENT);
    builder.build(parent, cmnode);
    insertNodesAtIndex(parent, builder.getResult(), index);
  }
View Full Code Here


  }
 

  private void insert(Node parent, CMNode cmnode, int index) {
    Document document = parent.getNodeType() == Node.DOCUMENT_NODE ? (Document) parent : parent.getOwnerDocument();
    DOMContentBuilder builder = new DOMContentBuilderImpl(document);
    builder.setBuildPolicy(DOMContentBuilder.BUILD_OPTIONAL_ELEMENTS);
    builder.build(parent, cmnode);
    insertNodesAtIndex(parent, builder.getResult(), index);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.core.internal.contentmodel.util.DOMContentBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.