org.eclipse.rse.core.model
Class Property
java.lang.Object
java.util.Observable
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.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
Property
public Property(
IProperty property)
Property
public Property(
String name,
String value,
IPropertyType type,
boolean isEnabled)
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.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.