blob: 7263f5bd2cdb8f139fd9bfad64480d9e1a7d9fdc [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2007 Boeing.
* 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:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.framework.skynet.core.attribute;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
/**
* @author Ryan D. Brooks
*/
public class BooleanAttribute extends CharacterBackedAttribute<Boolean> {
public static final String[] booleanChoices = {"true", "false"};
@Override
public Boolean getValue() throws OseeCoreException {
return (Boolean) getAttributeDataProvider().getValue();
}
@Override
public Boolean convertStringToValue(String value) {
return Boolean.valueOf(value);
}
}