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, setExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtensions, setExtensions
public String getId()
PropertyData
The property ID may not be set if the object is used in a query result.
getId
in interface PropertyData<T>
null
public void setId(String id)
MutablePropertyData
setId
in interface MutablePropertyData<T>
id
- the property ID, should not be null
public String getDisplayName()
PropertyData
getDisplayName
in interface PropertyData<T>
null
public void setDisplayName(String displayName)
MutablePropertyData
setDisplayName
in interface MutablePropertyData<T>
public String getLocalName()
PropertyData
getLocalName
in interface PropertyData<T>
null
public void setLocalName(String localName)
MutablePropertyData
setLocalName
in interface MutablePropertyData<T>
public String getQueryName()
PropertyData
The property query name must be set if the object is used in a query result.
getQueryName
in interface PropertyData<T>
null
public void setQueryName(String queryName)
MutablePropertyData
setQueryName
in interface MutablePropertyData<T>
public List<T> getValues()
PropertyData
getValues
in interface PropertyData<T>
null
public 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)
MutablePropertyData
If 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()
PropertyData
getFirstValue
in interface PropertyData<T>
null
if the list of
values is emptypublic String toString()
toString
in class AbstractExtensionData
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.