org.apache.chemistry.opencmis.commons.impl.dataobjects
Class AbstractPropertyData<T>

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
      extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractPropertyData<T>
All Implemented Interfaces:
java.io.Serializable, ExtensionsData, PropertyData<T>
Direct Known Subclasses:
PropertyBooleanImpl, PropertyDateTimeImpl, PropertyDecimalImpl, PropertyHtmlImpl, PropertyIdImpl, PropertyImpl, PropertyIntegerImpl, PropertyStringImpl, PropertyUriImpl

public abstract class AbstractPropertyData<T>
extends AbstractExtensionData
implements PropertyData<T>

Abstract property data implementation.

See Also:
Serialized Form

Constructor Summary
AbstractPropertyData()
           
 
Method Summary
 java.lang.String getDisplayName()
          Returns the display name.
 T getFirstValue()
          Returns the first entry of the list of values.
 java.lang.String getId()
          Returns the property id.
 java.lang.String getLocalName()
          Returns the local name.
 java.lang.String getQueryName()
          Returns the query name.
 java.util.List<T> getValues()
          Returns the list of values of this property.
 void setDisplayName(java.lang.String displayName)
           
 void setId(java.lang.String id)
           
 void setLocalName(java.lang.String localName)
           
 void setQueryName(java.lang.String queryName)
           
 void setValue(T value)
           
 void setValues(java.util.List<T> values)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
getExtensions, setExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
getExtensions, setExtensions
 

Constructor Detail

AbstractPropertyData

public AbstractPropertyData()
Method Detail

getId

public java.lang.String getId()
Description copied from interface: PropertyData
Returns the property id.

Specified by:
getId in interface PropertyData<T>
Returns:
the property id

setId

public void setId(java.lang.String id)

getDisplayName

public java.lang.String getDisplayName()
Description copied from interface: PropertyData
Returns the display name.

Specified by:
getDisplayName in interface PropertyData<T>
Returns:
the display name or null

setDisplayName

public void setDisplayName(java.lang.String displayName)

getLocalName

public java.lang.String getLocalName()
Description copied from interface: PropertyData
Returns the local name.

Specified by:
getLocalName in interface PropertyData<T>
Returns:
the local name or null

setLocalName

public void setLocalName(java.lang.String localName)

getQueryName

public java.lang.String getQueryName()
Description copied from interface: PropertyData
Returns the query name.

Specified by:
getQueryName in interface PropertyData<T>
Returns:
the query name or null

setQueryName

public void setQueryName(java.lang.String queryName)

getValues

public java.util.List<T> getValues()
Description copied from interface: PropertyData
Returns the list of values of this property. For a single value property this is a list with one entry.

Specified by:
getValues in interface PropertyData<T>
Returns:
the list of values or (in rare cases) null

setValues

public void setValues(java.util.List<T> values)

setValue

public void setValue(T value)

getFirstValue

public T getFirstValue()
Description copied from interface: PropertyData
Returns the first entry of the list of values.

Specified by:
getFirstValue in interface PropertyData<T>
Returns:
first entry of the list of values or (in rare cases) null

toString

public java.lang.String toString()
Overrides:
toString in class AbstractExtensionData


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.