diff options
author | cbridgha | 2006-11-06 19:11:37 +0000 |
---|---|---|
committer | cbridgha | 2006-11-06 19:11:37 +0000 |
commit | 2a6874313c2f6ead6a266267dc402578a378a1d9 (patch) | |
tree | b4bf51479a4e0528cc8ba0cda81f239aa9d041d0 /plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java | |
parent | 8fadc5e102f93e31f4c57a5017ce8058cb7996f7 (diff) | |
download | webtools.javaee-200611061912.tar.gz webtools.javaee-200611061912.tar.xz webtools.javaee-200611061912.zip |
This commit was manufactured by cvs2svn to create tag 'v200611061912'.v200611061912
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java')
-rw-r--r-- | plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java deleted file mode 100644 index 27885a25e..000000000 --- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 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 - *******************************************************************************/ -/* - * Created on Apr 21, 2003 - * - * To change the template for this generated file go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -package org.eclipse.jst.j2ee.internal.model.translator.common; - -import org.eclipse.emf.ecore.EObject; -import org.eclipse.emf.ecore.EStructuralFeature; -import org.eclipse.wst.common.internal.emf.resource.Translator; - -/** - * @author administrator - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments - */ -public class BooleanTranslator extends Translator { - - - /** - * @param domNameAndPath - * @param aFeature - */ - public BooleanTranslator(String domNameAndPath, EStructuralFeature aFeature) { - super(domNameAndPath, aFeature, BOOLEAN_LOWERCASE); - } - - - /* (non-Javadoc) - * @see com.ibm.etools.emf2xml.impl.Translator#convertStringToValue(java.lang.String, org.eclipse.emf.ecore.EObject) - */ - public Object convertStringToValue(String strValue, EObject owner) { - if (strValue == null) - return Boolean.FALSE; - else if (strValue.toUpperCase().equals("1") || strValue.toUpperCase().equals("YES")) //$NON-NLS-1$ //$NON-NLS-2$ - return Boolean.TRUE; - else - return Boolean.valueOf(strValue); - } - - -} |