org.xcmis.client.gwt.model.property
Class BaseProperty<T>

java.lang.Object
  extended by org.xcmis.client.gwt.model.property.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(BaseProperty<T> other)
           
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.client.gwt.model.property.Property
getType
 

Constructor Detail

BaseProperty

public BaseProperty()
Default constructor.


BaseProperty

public BaseProperty(BaseProperty<T> other)

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 -

setId

public void setId(String id)
Setter for id.

Parameters:
id -

setLocalName

public void setLocalName(String localName)
Setter for localName.

Parameters:
localName -

setQueryName

public void setQueryName(String queryName)
Setter for queryName.

Parameters:
queryName -


Copyright © 2010 eXo Platform SAS. All Rights Reserved.