diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SkipUnknownChildrenTranslator.java')
-rw-r--r-- | jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SkipUnknownChildrenTranslator.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SkipUnknownChildrenTranslator.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SkipUnknownChildrenTranslator.java deleted file mode 100644 index 79c4b6e32..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/internal/translator/SkipUnknownChildrenTranslator.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2005 Oracle Corporation. - * 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: - * Ian Trimble - initial API and implementation - *******************************************************************************/ -package org.eclipse.jst.jsf.facesconfig.internal.translator; - -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * SkipUnknownChildrenTranslator has been implemented to temporarily allow - * processing of application configuration resource files containing extension - * elements (those defined with a content type of "ANY"); it essentially skips - * all processing of child elements for which no child Translator has been - * defined. This is not intended as a long-term solution. - * - * @author Ian Trimble - Oracle - */ -public class SkipUnknownChildrenTranslator extends Translator { - - /** - * Creates an instance. - * - * @param domNameAndPath DOM name and path for which this Translator is - * to be used. - * @param aFeature EStructuralFeature instance for which this Translator is - * to be used (may be null). - */ - public SkipUnknownChildrenTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature); - } - - /* (non-Javadoc) - * @see org.eclipse.wst.common.internal.emf.resource.Translator#findChild(java.lang.String, java.lang.Object, int) - */ - public Translator findChild(String tagName, Object target, int versionID) { - Translator childTranslator = super.findChild(tagName, target, versionID); - if (childTranslator == null) { - childTranslator = new SkipUnknownChildrenTranslator(tagName, (EStructuralFeature)null); - } - return childTranslator; - } - -} |