RSE
Release 1.0

org.eclipse.rse.core.model
Class PropertyType

java.lang.Object
  extended byorg.eclipse.rse.core.model.PropertyType
All Implemented Interfaces:
IPropertyType

public class PropertyType
extends Object
implements IPropertyType


Field Summary
 
Fields inherited from interface org.eclipse.rse.core.model.IPropertyType
TYPE_BOOLEAN, TYPE_ENUM, TYPE_INTEGER, TYPE_STRING
 
Method Summary
static IPropertyType fromString(String typeStr)
          Return an instance of property type based on the String specification.
static IPropertyType getBooleanPropertyType()
          Return an instance of boolean property type.
static IPropertyType getEnumPropertyType(String[] values)
          Return an instance of enum property type.
 String[] getEnumValues()
           
static IPropertyType getIntegerPropertyType()
          Return an instance of integer property type.
static IPropertyType getStringPropertyType()
          Return an instance of string property type.
 int getType()
           
 boolean isBoolean()
           
 boolean isEnum()
           
 boolean isInteger()
           
 boolean isString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getBooleanPropertyType

public static IPropertyType getBooleanPropertyType()
Return an instance of boolean property type.

Returns:
IPropertyType

getIntegerPropertyType

public static IPropertyType getIntegerPropertyType()
Return an instance of integer property type.

Returns:
IPropertyType

getStringPropertyType

public static IPropertyType getStringPropertyType()
Return an instance of string property type.

Returns:
IPropertyType

getEnumPropertyType

public static IPropertyType getEnumPropertyType(String[] values)
Return an instance of enum property type.

Parameters:
values - String[] array of allowed enumerator values.
Returns:
IPropertyType

fromString

public static IPropertyType fromString(String typeStr)
Return 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

isString

public boolean isString()
Specified by:
isString in interface IPropertyType

isInteger

public boolean isInteger()
Specified by:
isInteger in interface IPropertyType

isEnum

public boolean isEnum()
Specified by:
isEnum in interface IPropertyType

isBoolean

public boolean isBoolean()
Specified by:
isBoolean in interface IPropertyType

getEnumValues

public String[] getEnumValues()
Specified by:
getEnumValues in interface IPropertyType

toString

public String toString()

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.