|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SingleValuedProperty
An interface for a single typed property that can hold only one value. An example would be a property that represents a single Integer value.
Method Summary | |
---|---|
Object |
getValue()
Returns the current set value for the property. |
String |
getValueAsString()
Returns the current set value for the property as a String value. |
void |
setValue(Object newValue)
Sets the current value for the property. |
void |
setValueAsString(String newValue)
Sets the current value for the property using a String value. |
Methods inherited from interface commonj.connector.metadata.discovery.properties.SingleTypedProperty |
---|
getPropertyType |
Methods inherited from interface commonj.connector.metadata.discovery.properties.Property |
---|
getValidationMessage, isSet, isValid, unSet |
Methods inherited from interface commonj.connector.metadata.discovery.properties.PropertyDescriptor |
---|
addPropertyChangeListener, clone, getDescription, getDisplayName, getID, getName, isEnabled, removePropertyChangeListener |
Method Detail |
---|
Object getValue()
void setValue(Object newValue) throws MetadataException
newValue
- -
the value to be set
MetadataException
- -
thrown if an error occurs or if the set was refused.
Properties may place limitations on what values may be set.
In particular, some properties will refuse to set null
values, while others will impose restrictions on the type of
values that may be set. A MetadataException must always be
thrown in cases where the value specified was refused.
Ideally, the message field of the MetadataException would
indicate the reason for refusal.String getValueAsString()
void setValueAsString(String newValue) throws MetadataException
setValue(Object)
method.
newValue
- -
the value to set.
MetadataException
- -
thrown if an error occurs or if the set was refused.
Properties may place limitations on what values may be set.
In particular, some properties will refuse to set null
values, while others will impose restrictions on the type of
values that may be set. A MetadataException must always be
thrown in cases where the value specified was refused.
Ideally, the message field of the MetadataException would
indicate the reason for refusal.setValue(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |