org.eclipse.rse.core.model
Class PropertyType
java.lang.Object
org.eclipse.rse.core.model.PropertyType
-
All Implemented Interfaces:
-
IPropertyType
-
public class PropertyType
- extends
Object
- implements
IPropertyType
The standard implementation of
IPropertyType
. Use the static factory
methods to return instances.
getBooleanPropertyType
public static
IPropertyType getBooleanPropertyType()
- Returns an instance of boolean property type.
-
-
-
Returns:
- IPropertyType
getIntegerPropertyType
public static
IPropertyType getIntegerPropertyType()
- Returns an instance of integer property type.
-
-
-
Returns:
- IPropertyType
getStringPropertyType
public static
IPropertyType getStringPropertyType()
- Returns an instance of string property type.
-
-
-
Returns:
- IPropertyType
getEnumPropertyType
public static
IPropertyType getEnumPropertyType(
String[] values)
- Returns an instance of enum property type.
-
-
-
Parameters:
-
values
- String[] array of allowed enumerator values.
-
Returns:
- IPropertyType
fromString
public static
IPropertyType fromString(
String typeStr)
- Returns an instance of property type based on the String specification.
This is the reverse of PropertyType.toString().
-
-
-
Returns:
- IPropertyType instance based on String specification.
getType
public int getType()
-
-
Specified by:
-
getType
in interface
IPropertyType
-
-
Returns:
- the integer value of the property type
isString
public boolean isString()
-
-
Specified by:
-
isString
in interface
IPropertyType
-
-
Returns:
- true if the property is of TYPE_STRING
isInteger
public boolean isInteger()
-
-
Specified by:
-
isInteger
in interface
IPropertyType
-
-
Returns:
- true if the property is of TYPE_INTEGER
isEnum
public boolean isEnum()
-
-
Specified by:
-
isEnum
in interface
IPropertyType
-
-
Returns:
- true if the property is of TYPE_ENUM
isBoolean
public boolean isBoolean()
-
-
Specified by:
-
isBoolean
in interface
IPropertyType
-
-
Returns:
- true if the property is of TYPE_BOOLEAN
getEnumValues
public
String[] getEnumValues()
-
-
Specified by:
-
getEnumValues
in interface
IPropertyType
-
-
Returns:
- the array of values that comprise the enumeration
toString
public
String toString()
-
-
Overrides:
-
toString
in class
Object
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.