Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

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.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire