|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.common.frameworks.datamodel.DataModelPropertyDescriptor
public final class DataModelPropertyDescriptor
A DataModelPropertyDescriptor provides a human readible description for an IDataModel propertyValue.
IDataModel.getPropertyDescriptor(String)
,
IDataModel.getValidPropertyDescriptors(String)
Constructor Summary | |
---|---|
DataModelPropertyDescriptor(java.lang.Object propertyValue)
This is equavalent to calling DataModelPropertyDescriptor(propertyValue, null) . |
|
DataModelPropertyDescriptor(java.lang.Object propertyValue,
java.lang.String propertyDescription)
Creates a new DataModelPropertyDescriptor with the specified propertyValue and propertyDescription. |
Method Summary | |
---|---|
static DataModelPropertyDescriptor[] |
createDescriptors(java.lang.Object[] values)
A convenience method which returns an array of DataModelPropertyDescriptors. |
static DataModelPropertyDescriptor[] |
createDescriptors(java.lang.Object[] values,
java.lang.String[] descriptions)
A convenience method which returns an array of DataModelPropertyDescriptors. |
java.lang.String |
getPropertyDescription()
Returns a human readible property description. |
java.lang.Object |
getPropertyValue()
Returns the property value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataModelPropertyDescriptor(java.lang.Object propertyValue)
This is equavalent to calling DataModelPropertyDescriptor(propertyValue, null)
.
propertyValue
- the propery valuepublic DataModelPropertyDescriptor(java.lang.Object propertyValue, java.lang.String propertyDescription)
Creates a new DataModelPropertyDescriptor with the specified propertyValue and propertyDescription.
propertyValue
- the property valuepropertyDescription
- the human readible proeprty descriptionFMethod Detail |
---|
public static DataModelPropertyDescriptor[] createDescriptors(java.lang.Object[] values)
A convenience method which returns an array of DataModelPropertyDescriptors. If
values
is null
then a 0 length array is returned. Otherwise for
each values[i]
in the array, a new DataModelPropertyDescriptors is created
using new DataModelPropertyDescriptors(values[i]);
.
values
- the array of property values
public static DataModelPropertyDescriptor[] createDescriptors(java.lang.Object[] values, java.lang.String[] descriptions)
A convenience method which returns an array of DataModelPropertyDescriptors. If
values
is null
then a 0 length array is returned. Otherwise for
each values[i]
and descriptions[i]
in the arrays, a new
DataModelPropertyDescriptor is created using
new DataModelPropertyDescriptor(values[i], descriptions[i]);
. Both arrays
must be the same length.
values
- the array of property valuesdescriptions
- the array of property descriptions cooresponding the values array
public java.lang.Object getPropertyValue()
Returns the property value.
public java.lang.String getPropertyDescription()
Returns a human readible property description. If a non null description has been specified,
then it will be returned. Otherwise, the property value's toString()
will be
returned if it is not null. Otherwise the empty String (""
) will be
returned. null
will never be returned.
null
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |