RSE
Release 3.4

org.eclipse.rse.core.model
Class PropertyType

java.lang.Object
  extended by 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.


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)
          Returns an instance of property type based on the String specification.
static IPropertyType getBooleanPropertyType()
          Returns an instance of boolean property type.
static IPropertyType getEnumPropertyType(String[] values)
          Returns an instance of enum property type.
 String[] getEnumValues()
           
static IPropertyType getIntegerPropertyType()
          Returns an instance of integer property type.
static IPropertyType getStringPropertyType()
          Returns 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()
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

RSE
Release 3.4

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