edu.stanford.smi.protege.model
Class ValueType
java.lang.Object
edu.stanford.smi.protege.model.ValueType
- All Implemented Interfaces:
- Comparable
public class ValueType
- extends Object
- implements Comparable
An enumeration class for the types of slots.
- Author:
- Ray Fergerson
ANY
public static final ValueType ANY
BOOLEAN
public static final ValueType BOOLEAN
CLS
public static final ValueType CLS
FLOAT
public static final ValueType FLOAT
INSTANCE
public static final ValueType INSTANCE
INTEGER
public static final ValueType INTEGER
STRING
public static final ValueType STRING
SYMBOL
public static final ValueType SYMBOL
getIntValue
public int getIntValue()
getJavaType
public Class getJavaType()
getValues
public static Collection getValues()
- Returns:
- String representations of all of the allowed value-types
toString
public String toString()
- Overrides:
toString
in class Object
- Returns:
- a String representation of this values-type (e.g. "String")
valueOf
public static ValueType valueOf(String s)
- Parameters:
s
- a String representation of a value-type. Normally this will have
been obtained from a previous call to "toString()" on a ValueType object.
- Returns:
- the corresponding value-type
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2013 Stanford University.