org.xcmis.spi.model.impl
Class BaseProperty<T>

java.lang.Object
  extended by org.xcmis.spi.model.impl.BaseProperty<T>
All Implemented Interfaces:
Property<T>
Direct Known Subclasses:
BooleanProperty, DateTimeProperty, DecimalProperty, HtmlProperty, IdProperty, IntegerProperty, StringProperty, UriProperty

public abstract class BaseProperty<T>
extends Object
implements Property<T>

Base implementation of CMIS property.

Version:
$Id: $
Author:
Andrey Parfonov

Constructor Summary
BaseProperty()
          Default constructor.
BaseProperty(String id, String queryName, String localName, String displayName, List<T> values)
           
BaseProperty(String id, String queryName, String localName, String displayName, T value)
           
 
Method Summary
 String getDisplayName()
          
 String getId()
          
 String getLocalName()
          
 String getQueryName()
          
 List<T> getValues()
          
 void setDisplayName(String displayName)
          Setter for displayName.
 void setId(String id)
          Setter for id.
 void setLocalName(String localName)
          Setter for localName.
 void setQueryName(String queryName)
          Setter for queryName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xcmis.spi.model.Property
getType
 

Constructor Detail

BaseProperty

public BaseProperty()
Default constructor.


BaseProperty

public BaseProperty(String id,
                    String queryName,
                    String localName,
                    String displayName,
                    T value)

BaseProperty

public BaseProperty(String id,
                    String queryName,
                    String localName,
                    String displayName,
                    List<T> values)
Method Detail

getId

public String getId()

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

getQueryName

public String getQueryName()

Specified by:
getQueryName in interface Property<T>
Returns:
property query name

getLocalName

public String getLocalName()

Specified by:
getLocalName in interface Property<T>
Returns:
property local name

getDisplayName

public String getDisplayName()

Specified by:
getDisplayName in interface Property<T>
Returns:
property display name

getValues

public List<T> getValues()

Specified by:
getValues in interface Property<T>
Returns:
property values. Never return null, if property has not values empty list must be returned

setDisplayName

public void setDisplayName(String displayName)
Setter for displayName.

Parameters:
displayName - String display name

setId

public void setId(String id)
Setter for id.

Parameters:
id - String property id

setLocalName

public void setLocalName(String localName)
Setter for localName.

Parameters:
localName - String local name

setQueryName

public void setQueryName(String queryName)
Setter for queryName.

Parameters:
queryName - String query name


Copyright © 2010 eXo Platform SAS. All Rights Reserved.