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

java.lang.Object
  extended by org.xcmis.client.gwt.model.property.BasePropertyDefinition<T>
Type Parameters:
T -
All Implemented Interfaces:
PropertyDefinition<T>
Direct Known Subclasses:
BooleanPropertyDefinition, DateTimePropertyDefinition, DecimalPropertyDefinition, HtmlPropertyDefinition, IdPropertyDefinition, IntegerPropertyDefinition, StringPropertyDefinition, UriPropertyDefinition

public abstract class BasePropertyDefinition<T>
extends Object
implements PropertyDefinition<T>

Created by The eXo Platform SAS.

Version:
$Id: ${date} ${time}
Author:
Ann Zhuleva

Constructor Summary
BasePropertyDefinition()
          Default constructor.
BasePropertyDefinition(String id, String localName, String localNamespace, String queryName, String displayName, String description, EnumCardinality cardinality, EnumUpdatability updatability, Boolean inherited, Boolean required, Boolean queryable, Boolean orderable, Boolean openChoice, List<Choice<T>> choices, T[] defaultValue)
           
 
Method Summary
 EnumCardinality getCardinality()
          
 List<Choice<T>> getChoices()
           
 T[] getDefaultValue()
          
 String getDescription()
          
 String getDisplayName()
          
 String getId()
          
 String getLocalName()
          
 String getLocalNamespace()
          
 String getQueryName()
          
 EnumUpdatability getUpdatability()
          
 Boolean isInherited()
          
 Boolean isOpenChoice()
          Indicates is choice for property value is open.
 Boolean isOrderable()
          
 Boolean isQueryable()
           
 Boolean isRequired()
          
 void setCardinality(EnumCardinality cardinality)
          Setter for cardinality.
 void setChoices(List<Choice<T>> choices)
          Setter for choices.
 void setDefaultValue(T[] defaultValue)
          Setter for defaultValue.
 void setDescription(String description)
          Setter for description.
 void setDisplayName(String displayName)
          Setter for displayName.
 void setId(String id)
          Setter for id.
 void setInherited(Boolean inherited)
          Setter for inherited.
 void setLocalName(String localName)
          Setter for localName.
 void setLocalNamespace(String localNamespace)
          Setter for localNamespace.
 void setOpenChoice(Boolean openChoice)
          Setter for openChoice.
 void setOrderable(Boolean orderable)
          Setter for orderable.
 void setQueryable(Boolean queryable)
          Setter for queryable.
 void setQueryName(String queryName)
          Setter for queryName.
 void setRequired(Boolean required)
          Setter for required.
 void setUpdatability(EnumUpdatability updatability)
          Setter for updatability.
 
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.PropertyDefinition
getPropertyType
 

Constructor Detail

BasePropertyDefinition

public BasePropertyDefinition()
Default constructor.


BasePropertyDefinition

public BasePropertyDefinition(String id,
                              String localName,
                              String localNamespace,
                              String queryName,
                              String displayName,
                              String description,
                              EnumCardinality cardinality,
                              EnumUpdatability updatability,
                              Boolean inherited,
                              Boolean required,
                              Boolean queryable,
                              Boolean orderable,
                              Boolean openChoice,
                              List<Choice<T>> choices,
                              T[] defaultValue)
Parameters:
id - id
localName - local name
localNamespace - local name space
queryName - query name
displayName - display name
description - description
cardinality - cardinality
updatability - updatability
inherited - inherited
required - required
queryable - queryable
orderable - orderable
openChoice - open choice
choices - choices
defaultValue - default value
Method Detail

getId

public String getId()

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

getLocalName

public String getLocalName()

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

getLocalNamespace

public String getLocalNamespace()

Specified by:
getLocalNamespace in interface PropertyDefinition<T>
Returns:
property local namespace

getQueryName

public String getQueryName()

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

getDisplayName

public String getDisplayName()

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

getDescription

public String getDescription()

Specified by:
getDescription in interface PropertyDefinition<T>
Returns:
description

getCardinality

public EnumCardinality getCardinality()

Specified by:
getCardinality in interface PropertyDefinition<T>
Returns:
cardinality

getUpdatability

public EnumUpdatability getUpdatability()

Specified by:
getUpdatability in interface PropertyDefinition<T>
Returns:
updatability

isInherited

public Boolean isInherited()

Specified by:
isInherited in interface PropertyDefinition<T>
Returns:
is inherited

isRequired

public Boolean isRequired()

Specified by:
isRequired in interface PropertyDefinition<T>
Returns:
is required

isQueryable

public Boolean isQueryable()
Specified by:
isQueryable in interface PropertyDefinition<T>
Returns:
is querable

isOrderable

public Boolean isOrderable()

Specified by:
isOrderable in interface PropertyDefinition<T>
Returns:
is orderable

getChoices

public List<Choice<T>> getChoices()
Specified by:
getChoices in interface PropertyDefinition<T>
Returns:
choices for property value
See Also:
Choice

isOpenChoice

public Boolean isOpenChoice()
Description copied from interface: PropertyDefinition
Indicates is choice for property value is open. If false then value of property must be one of provided by PropertyDefinition.getChoices() If true then value of can be other then provided by method described above. This attribute should be provide only for properties that provides choices (method PropertyDefinition.getChoices() returns other then null or empty list). For other properties this method should return null.

Specified by:
isOpenChoice in interface PropertyDefinition<T>
Returns:
true if choice of value of property is open false otherwise and null for properties that not provide choices

getDefaultValue

public T[] getDefaultValue()

Specified by:
getDefaultValue in interface PropertyDefinition<T>
Returns:
default property value. This value may be used if value for property is not provided

setId

public void setId(String id)
Setter for id.

Parameters:
id -

setLocalName

public void setLocalName(String localName)
Setter for localName.

Parameters:
localName -

setLocalNamespace

public void setLocalNamespace(String localNamespace)
Setter for localNamespace.

Parameters:
localNamespace - localNamespace

setDisplayName

public void setDisplayName(String displayName)
Setter for displayName.

Parameters:
displayName -

setQueryName

public void setQueryName(String queryName)
Setter for queryName.

Parameters:
queryName - queryName

setCardinality

public void setCardinality(EnumCardinality cardinality)
Setter for cardinality.

Parameters:
cardinality - cardinality

setDescription

public void setDescription(String description)
Setter for description.

Parameters:
description - description

setInherited

public void setInherited(Boolean inherited)
Setter for inherited.

Parameters:
inherited - inherited

setOrderable

public void setOrderable(Boolean orderable)
Setter for orderable.

Parameters:
orderable - orderable

setQueryable

public void setQueryable(Boolean queryable)
Setter for queryable.

Parameters:
queryable - queryable

setRequired

public void setRequired(Boolean required)
Setter for required.

Parameters:
required - required

setUpdatability

public void setUpdatability(EnumUpdatability updatability)
Setter for updatability.

Parameters:
updatability - updatability

setOpenChoice

public void setOpenChoice(Boolean openChoice)
Setter for openChoice.

Parameters:
openChoice - openChoice

setChoices

public void setChoices(List<Choice<T>> choices)
Setter for choices.

Parameters:
choices - choices

setDefaultValue

public void setDefaultValue(T[] defaultValue)
Setter for defaultValue.

Parameters:
defaultValue - defaultValue


Copyright © 2010 eXo Platform SAS. All Rights Reserved.