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 Property


java.lang.Object
  extended by 

java.util.Observable
      extended by 
org.eclipse.rse.core.model.Property
All Implemented Interfaces:
IProperty

public class Property
extends Observable
implements IProperty

A Property is used in PropertySets and may be persisted as a result of persisting the containing set. Each property has a type, a label, a key and a value.


Constructor Summary
Property ( IProperty property)
           
Property ( String name, String value, IPropertyType type, boolean isEnabled)
           
 
Method Summary
  String getKey ()
           
  String getLabel ()
           
  IPropertyType getType ()
           
  String getValue ()
           
 boolean isEnabled ()
          Retrieves the "enabled" presentation attribute of this property.
 boolean isReadOnly ()
          Retrieves the "read-only" presentation attribute of this property.
 void setEnabled (boolean flag)
          Sets the "enabled" presentation attribute of this property.
 void setLabel ( String label)
          Sets the displayable label of the property.
 void setReadOnly (boolean flag)
          Sets the "read-only" presentation attribute of this property.
 void setType ( IPropertyType type)
          Sets the type of this property.
 void setValue ( String value)
          Sets the value of this property.
 
Methods inherited from class java.util. Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property(
IProperty property)

Property

public Property(
String name,
                
String value,
                
IPropertyType type,
                boolean isEnabled)
Method Detail

getKey

public 
String getKey()
Specified by:
getKey in interface IProperty
Returns:
the name of the property.

setLabel

public void setLabel(
String label)
Description copied from interface: IProperty
Sets the displayable label of the property.

Specified by:
setLabel in interface IProperty
Parameters:
label - the label for this property.

getLabel

public 
String getLabel()
Specified by:
getLabel in interface IProperty
Returns:
the displayable label of this property

setValue

public void setValue(
String value)
Description copied from interface: IProperty
Sets the value of this property. May raise a runtime exception if the new value of the property is not compatible with its type.

Specified by:
setValue in interface IProperty
Parameters:
value - the new value for this property.

getValue

public 
String getValue()
Specified by:
getValue in interface IProperty
Returns:
the value of this property

setType

public void setType(
IPropertyType type)
Description copied from interface: IProperty
Sets the type of this property. May raise an runtime exception if the value of the property is not compatible with the new type.

Specified by:
setType in interface IProperty
Parameters:
type - the property type

getType

public 
IPropertyType getType()
Specified by:
getType in interface IProperty
Returns:
the type of this property

setEnabled

public void setEnabled(boolean flag)
Description copied from interface: IProperty
Sets the "enabled" presentation attribute of this property. This is an attribute that can be used to drive the presentation of this property and does not otherwise affect how this property can be used. Properties are enabled by default.

Specified by:
setEnabled in interface IProperty
Parameters:
flag - true if the property is to be enabled.

isEnabled

public boolean isEnabled()
Description copied from interface: IProperty
Retrieves the "enabled" presentation attribute of this property. This is an attribute that can be used to drive the presentation of this property and does not otherwise affect how this property can be used.

Specified by:
isEnabled in interface IProperty
Returns:
true if the property is enabled.

setReadOnly

public void setReadOnly(boolean flag)
Description copied from interface: IProperty
Sets the "read-only" presentation attribute of this property. This is an attribute that can be used to drive the presentation of this property and does not otherwise affect how this property can be used. Properties are read-write by default.

Specified by:
setReadOnly in interface IProperty
Parameters:
flag - true if the property is to be read-only.

isReadOnly

public boolean isReadOnly()
Description copied from interface: IProperty
Retrieves the "read-only" presentation attribute of this property. This is an attribute that can be used to drive the presentation of this property and does not otherwise affect how this property can be used.

Specified by:
isReadOnly in interface IProperty
Returns:
true if the property is read-only.

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