diff options
Diffstat (limited to 'bundles/org.eclipse.wst.dtd.core/saxparser/org/eclipse/wst/dtd/core/internal/saxparser/CMGroupNode.java')
-rw-r--r-- | bundles/org.eclipse.wst.dtd.core/saxparser/org/eclipse/wst/dtd/core/internal/saxparser/CMGroupNode.java | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/bundles/org.eclipse.wst.dtd.core/saxparser/org/eclipse/wst/dtd/core/internal/saxparser/CMGroupNode.java b/bundles/org.eclipse.wst.dtd.core/saxparser/org/eclipse/wst/dtd/core/internal/saxparser/CMGroupNode.java deleted file mode 100644 index 823b2cf044..0000000000 --- a/bundles/org.eclipse.wst.dtd.core/saxparser/org/eclipse/wst/dtd/core/internal/saxparser/CMGroupNode.java +++ /dev/null @@ -1,62 +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 - *******************************************************************************/ - -package org.eclipse.wst.dtd.core.internal.saxparser; - -import java.util.Enumeration; -import java.util.Vector; - -public class CMGroupNode extends CMRepeatableNode { - private int type = CMNodeType.GROUP; - private int groupKind = CMNodeType.GROUP_SEQUENCE; - private Vector children = new Vector(); - - public CMGroupNode() { - super("GROUP"); //$NON-NLS-1$ - } - - public int getType() { - return type; - } - - // implement super class - public void setType(int type) { - // can't change - only one type allows - } - - public int getGroupKind() { - return groupKind; - } - - public void setGroupKind(int kind) { - groupKind = kind; - } - - public Vector getChildren() { - return children; - } - - public void addChild(CMNode child) { - children.addElement(child); - } - - public String toString() { - String result = "Group ( - kind: " + getGroupKind() + " OccType: " + getOccurrence() + "\n"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - - Enumeration en = children.elements(); - while (en.hasMoreElements()) { - result += " " + en.nextElement(); //$NON-NLS-1$ - } - - result += "Group )"; //$NON-NLS-1$ - return result; - } -} |