diff options
Diffstat (limited to 'bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/commentelement/util/CommentElementFactory.java')
-rw-r--r-- | bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/commentelement/util/CommentElementFactory.java | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/commentelement/util/CommentElementFactory.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/commentelement/util/CommentElementFactory.java deleted file mode 100644 index 1351c4237f..0000000000 --- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/commentelement/util/CommentElementFactory.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2004 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - * Jens Lukowski/Innoopract - initial renaming/restructuring - * - *******************************************************************************/ -package org.eclipse.wst.xml.core.internal.commentelement.util; - - - -import org.eclipse.wst.xml.core.internal.commentelement.CommentElementAdapter; -import org.eclipse.wst.xml.core.internal.commentelement.CommentElementHandler; -import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement; -import org.w3c.dom.Document; -import org.w3c.dom.Element; - - -/** - */ -public class CommentElementFactory { - public static final int IS_EMPTY = 4866; - public static final int IS_END = 1808; - - public static final int IS_START = 28011; - - private Document fDocument; - private CommentElementHandler fHandler; - private boolean fJSPTag; - - /** - * Constructor for CommentElementFactory. - */ - private CommentElementFactory() { - super(); - } - - public CommentElementFactory(Document document, boolean isJSPTag, CommentElementHandler handler) { - super(); - fDocument = document; - fJSPTag = isJSPTag; - fHandler = handler; - } - - public Element create(String name, int nodeType) { - IDOMElement element = (IDOMElement) fDocument.createElement(name); - if (element == null) - return null; - element.setCommentTag(true); - if (nodeType == IS_EMPTY) { - element.setEmptyTag(true); - } - element.setJSPTag(fJSPTag); - - CommentElementAdapter adapter = new CommentElementAdapter((nodeType == IS_END), fHandler); - element.addAdapter(adapter); - - return element; - } -} |