public abstract class AbstractPropertyData<T> extends AbstractExtensionData implements MutablePropertyData<T>
| Constructor and Description | 
|---|
AbstractPropertyData()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getDisplayName()
Returns the display name. 
 | 
T | 
getFirstValue()
Returns the first entry of the list of values. 
 | 
String | 
getId()
Returns the property ID. 
 | 
String | 
getLocalName()
Returns the local name. 
 | 
String | 
getQueryName()
Returns the query name. 
 | 
List<T> | 
getValues()
Returns the list of values of this property. 
 | 
void | 
setDisplayName(String displayName)
Set the display name. 
 | 
void | 
setId(String id)
Sets the property ID. 
 | 
void | 
setLocalName(String localName)
Set the local name. 
 | 
void | 
setQueryName(String queryName)
Set the query name. 
 | 
void | 
setValue(T value)
Sets a property value. 
 | 
void | 
setValues(List<T> values)
Sets the property value. 
 | 
String | 
toString()  | 
getExtensions, setExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtensions, setExtensionspublic String getId()
PropertyDataThe property ID may not be set if the object is used in a query result.
getId in interface PropertyData<T>nullpublic void setId(String id)
MutablePropertyDatasetId in interface MutablePropertyData<T>id - the property ID, should not be nullpublic String getDisplayName()
PropertyDatagetDisplayName in interface PropertyData<T>nullpublic void setDisplayName(String displayName)
MutablePropertyDatasetDisplayName in interface MutablePropertyData<T>public String getLocalName()
PropertyDatagetLocalName in interface PropertyData<T>nullpublic void setLocalName(String localName)
MutablePropertyDatasetLocalName in interface MutablePropertyData<T>public String getQueryName()
PropertyDataThe property query name must be set if the object is used in a query result.
getQueryName in interface PropertyData<T>nullpublic void setQueryName(String queryName)
MutablePropertyDatasetQueryName in interface MutablePropertyData<T>public List<T> getValues()
PropertyDatagetValues in interface PropertyData<T>nullpublic void setValues(List<T> values)
MutablePropertyData
 If this property is a single value property, this list must either be
 empty or null (= unset) or must only contain one entry.
setValues in interface MutablePropertyData<T>values - the property value or null to unset the propertypublic void setValue(T value)
MutablePropertyDataIf this property is a multi value property, this value becomes the only value in the list of values.
setValue in interface MutablePropertyData<T>value - the property value or null to unset the propertypublic T getFirstValue()
PropertyDatagetFirstValue in interface PropertyData<T>null if the list of
         values is emptypublic String toString()
toString in class AbstractExtensionDataCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.