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

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
      extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractPropertyDefinition<T>
All Implemented Interfaces:
Serializable, ExtensionsData, PropertyDefinition<T>
Direct Known Subclasses:
PropertyBooleanDefinitionImpl, PropertyDateTimeDefinitionImpl, PropertyDecimalDefinitionImpl, PropertyHtmlDefinitionImpl, PropertyIdDefinitionImpl, PropertyIntegerDefinitionImpl, PropertyStringDefinitionImpl, PropertyUriDefinitionImpl

public abstract class AbstractPropertyDefinition<T>
extends AbstractExtensionData
implements PropertyDefinition<T>

Abstract property definition data implementation.

Author:
Florian Müller
See Also:
Serialized Form

Constructor Summary
AbstractPropertyDefinition()
           
 
Method Summary
 Cardinality getCardinality()
          Returns the cardinality.
 List<Choice<T>> getChoices()
          Returns the choices for this property.
 List<T> getDefaultValue()
          Returns the default value.
 String getDescription()
          Returns the property description.
 String getDisplayName()
          Returns the display name.
 String getId()
          Returns the property definition id.
 String getLocalName()
          Returns the local name.
 String getLocalNamespace()
          Returns the local namespace.
 PropertyType getPropertyType()
          Returns the property type.
 String getQueryName()
          Returns the query name
 Updatability getUpdatability()
          Returns the updatability.
 Boolean isInherited()
          Returns if the property is inherited by a parent type.
 Boolean isOpenChoice()
          Returns if the property supports open choice.
 Boolean isOrderable()
          Returns if the property is Orderable.
 Boolean isQueryable()
          Returns if the property is queryable.
 Boolean isRequired()
          Returns if the property is required.
 void setCardinality(Cardinality cardinality)
           
 void setChoices(List<Choice<T>> choiceList)
           
 void setDefaultValue(List<T> defaultValue)
           
 void setDescription(String description)
           
 void setDisplayName(String displayName)
           
 void setId(String id)
           
 void setIsInherited(Boolean isInherited)
           
 void setIsOpenChoice(Boolean isOpenChoice)
           
 void setIsOrderable(Boolean isOrderable)
           
 void setIsQueryable(Boolean isQueryable)
           
 void setIsRequired(Boolean isRequired)
           
 void setLocalName(String localName)
           
 void setLocalNamespace(String localNamespace)
           
 void setPropertyType(PropertyType propertyType)
           
 void setQueryName(String queryName)
           
 void setUpdatability(Updatability updatability)
           
 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

AbstractPropertyDefinition

public AbstractPropertyDefinition()
Method Detail

getId

public String getId()
Description copied from interface: PropertyDefinition
Returns the property definition id.

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

setId

public void setId(String id)

getLocalName

public String getLocalName()
Description copied from interface: PropertyDefinition
Returns the local name.

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

setLocalName

public void setLocalName(String localName)

getLocalNamespace

public String getLocalNamespace()
Description copied from interface: PropertyDefinition
Returns the local namespace.

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

setLocalNamespace

public void setLocalNamespace(String localNamespace)

getQueryName

public String getQueryName()
Description copied from interface: PropertyDefinition
Returns the query name

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

setQueryName

public void setQueryName(String queryName)

getDisplayName

public String getDisplayName()
Description copied from interface: PropertyDefinition
Returns the display name.

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

setDisplayName

public void setDisplayName(String displayName)

getDescription

public String getDescription()
Description copied from interface: PropertyDefinition
Returns the property description.

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

setDescription

public void setDescription(String description)

getPropertyType

public PropertyType getPropertyType()
Description copied from interface: PropertyDefinition
Returns the property type.

Specified by:
getPropertyType in interface PropertyDefinition<T>
Returns:
the property type

setPropertyType

public void setPropertyType(PropertyType propertyType)

getCardinality

public Cardinality getCardinality()
Description copied from interface: PropertyDefinition
Returns the cardinality.

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

setCardinality

public void setCardinality(Cardinality cardinality)

getChoices

public List<Choice<T>> getChoices()
Description copied from interface: PropertyDefinition
Returns the choices for this property.

Specified by:
getChoices in interface PropertyDefinition<T>
Returns:
the choices or null if no choices are defined

setChoices

public void setChoices(List<Choice<T>> choiceList)

getDefaultValue

public List<T> getDefaultValue()
Description copied from interface: PropertyDefinition
Returns the default value.

Specified by:
getDefaultValue in interface PropertyDefinition<T>
Returns:
the default value (list) or null if no default value is defined

setDefaultValue

public void setDefaultValue(List<T> defaultValue)

getUpdatability

public Updatability getUpdatability()
Description copied from interface: PropertyDefinition
Returns the updatability.

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

setUpdatability

public void setUpdatability(Updatability updatability)

isInherited

public Boolean isInherited()
Description copied from interface: PropertyDefinition
Returns if the property is inherited by a parent type.

Specified by:
isInherited in interface PropertyDefinition<T>
Returns:
true - is inherited; false - is not inherited; null - unknown (noncompliant repository)

setIsInherited

public void setIsInherited(Boolean isInherited)

isQueryable

public Boolean isQueryable()
Description copied from interface: PropertyDefinition
Returns if the property is queryable.

Specified by:
isQueryable in interface PropertyDefinition<T>
Returns:
true - is queryable; false - is not queryable; null - unknown (noncompliant repository)

setIsQueryable

public void setIsQueryable(Boolean isQueryable)

isOrderable

public Boolean isOrderable()
Description copied from interface: PropertyDefinition
Returns if the property is Orderable.

Specified by:
isOrderable in interface PropertyDefinition<T>
Returns:
true - is Orderable; false - is not Orderable; null - unknown (noncompliant repository)

setIsOrderable

public void setIsOrderable(Boolean isOrderable)

isRequired

public Boolean isRequired()
Description copied from interface: PropertyDefinition
Returns if the property is required.

Specified by:
isRequired in interface PropertyDefinition<T>
Returns:
true - is required; false - is not required; null - unknown (noncompliant repository)

setIsRequired

public void setIsRequired(Boolean isRequired)

isOpenChoice

public Boolean isOpenChoice()
Description copied from interface: PropertyDefinition
Returns if the property supports open choice.

Specified by:
isOpenChoice in interface PropertyDefinition<T>
Returns:
true - supports open choice; false - does not support open choice; null - unknown or not applicable

setIsOpenChoice

public void setIsOpenChoice(Boolean isOpenChoice)

toString

public String toString()
Overrides:
toString in class AbstractExtensionData


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