public class PropertyImpl<T> extends AbstractPropertyData<T> implements Property<T>, Serializable
Constructor and Description |
---|
PropertyImpl(Property<T> property)
Copy constructor.
|
PropertyImpl(PropertyDefinition<T> pd,
List<T> values)
Constructs a property from a list of values.
|
Modifier and Type | Method and Description |
---|---|
PropertyDefinition<T> |
getDefinition()
Returns the property definition.
|
PropertyType |
getType()
Returns the property data type.
|
<U> U |
getValue()
Returns the property value (single or multiple).
|
String |
getValueAsString()
Returns a human readable representation of the property value.
|
String |
getValuesAsString()
Returns a human readable representation of the property values.
|
protected void |
initialize(PropertyDefinition<?> pd) |
boolean |
isMultiValued()
Returns if the property is a multi-value property.
|
getDisplayName, getFirstValue, getId, getLocalName, getQueryName, getValues, setDisplayName, setId, setLocalName, setQueryName, setValue, setValues, toString
getExtensions, setExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDisplayName, getFirstValue, getId, getLocalName, getQueryName, getValues
getExtensions, setExtensions
public PropertyImpl(PropertyDefinition<T> pd, List<T> values)
protected void initialize(PropertyDefinition<?> pd)
public PropertyDefinition<T> getDefinition()
Property
getDefinition
in interface Property<T>
null
public PropertyType getType()
Property
public <U> U getValue()
Property
public String getValueAsString()
Property
getValueAsString
in interface Property<T>
null
if the
property value isn't setpublic String getValuesAsString()
Property
getValuesAsString
in interface Property<T>
null
if the property
value isn't setpublic boolean isMultiValued()
Property
isMultiValued
in interface Property<T>
true
if the property is multi-value property,
false
if the property is single-value property,Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.