diff options
Diffstat (limited to 'bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMSelectorExpressionImpl.java')
-rw-r--r-- | bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMSelectorExpressionImpl.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMSelectorExpressionImpl.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMSelectorExpressionImpl.java deleted file mode 100644 index 1d1e11e99f..0000000000 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/metamodel/CSSMMSelectorExpressionImpl.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 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.css.core.internal.metamodel; - -import java.util.HashMap; -import java.util.Map; - - -class CSSMMSelectorExpressionImpl extends CSSMMSelectorImpl { - - public CSSMMSelectorExpressionImpl() { - super(); - } - - /* - * @see CSSMMSelector#getSelectorType() - */ - public String getSelectorType() { - return TYPE_EXPRESSION; - } - - void postSetAttribute() throws IllegalArgumentException { - super.postSetAttribute(); - String name = getName(); - if (name == null) { - throw new IllegalArgumentException(); - } - - Map map = new HashMap(); - map.put(EXPRESSION_ADJACENT.toLowerCase(), "+"); //$NON-NLS-1$ - map.put(EXPRESSION_ATTRIBUTE.toLowerCase(), "[]"); //$NON-NLS-1$ - map.put(EXPRESSION_CHILD.toLowerCase(), ">"); //$NON-NLS-1$ - map.put(EXPRESSION_DESCENDANT.toLowerCase(), "' '"); //$NON-NLS-1$ - map.put(EXPRESSION_UNIVERSAL.toLowerCase(), "*"); //$NON-NLS-1$ - - fValue = (String) map.get(name.toLowerCase()); - if (fValue == null) { - throw new IllegalArgumentException(); - } - } -}
\ No newline at end of file |