org.apache.chemistry.opencmis.commons.impl.dataobjects
Class AbstractTypeDefinition

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
      extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ExtensionsData, TypeDefinition
Direct Known Subclasses:
DocumentTypeDefinitionImpl, FolderTypeDefinitionImpl, PolicyTypeDefinitionImpl, RelationshipTypeDefinitionImpl

public abstract class AbstractTypeDefinition
extends AbstractExtensionData
implements TypeDefinition, java.lang.Cloneable

Abstract type definition data implementation.

See Also:
Serialized Form

Constructor Summary
AbstractTypeDefinition()
           
 
Method Summary
 void addPropertyDefinition(PropertyDefinition<?> propertyDefinition)
          Adds a property definition.
 AbstractTypeDefinition clone()
           
 BaseTypeId getBaseTypeId()
          Returns the base object type id.
 java.lang.String getDescription()
          Returns the property description.
 java.lang.String getDisplayName()
          Returns the display name.
 java.lang.String getId()
          Returns the type id.
 java.lang.String getLocalName()
          Returns the local name.
 java.lang.String getLocalNamespace()
          Returns the local namespace.
 java.lang.String getParentTypeId()
          Returns the parent type id.
 java.util.Map<java.lang.String,PropertyDefinition<?>> getPropertyDefinitions()
          Returns the property definitions of this type.
 java.lang.String getQueryName()
          Returns the query name
 void initialize(TypeDefinition typeDefinition)
           
 java.lang.Boolean isControllableAcl()
          Returns if objects of this type are controllable by ACLs.
 java.lang.Boolean isControllablePolicy()
          Returns if objects of this type are controllable by policies.
 java.lang.Boolean isCreatable()
          Returns if an object of this type can be created.
 java.lang.Boolean isFileable()
          Returns if an object of this type can be filed.
 java.lang.Boolean isFulltextIndexed()
          Returns if this type is full text indexed.
 java.lang.Boolean isIncludedInSupertypeQuery()
          Returns if this type is included in queries that query the super type.
 java.lang.Boolean isQueryable()
          Returns if this type is queryable.
 void setBaseTypeId(BaseTypeId baseId)
           
 void setDescription(java.lang.String description)
           
 void setDisplayName(java.lang.String displayName)
           
 void setId(java.lang.String id)
           
 void setIsControllableAcl(java.lang.Boolean isControllableACL)
           
 void setIsControllablePolicy(java.lang.Boolean isControllablePolicy)
           
 void setIsCreatable(java.lang.Boolean isCreatable)
           
 void setIsFileable(java.lang.Boolean isFileable)
           
 void setIsFulltextIndexed(java.lang.Boolean isFulltextIndexed)
           
 void setIsIncludedInSupertypeQuery(java.lang.Boolean isIncludedInSupertypeQuery)
           
 void setIsQueryable(java.lang.Boolean isQueryable)
           
 void setLocalName(java.lang.String localName)
           
 void setLocalNamespace(java.lang.String localNamespace)
           
 void setParentTypeId(java.lang.String parentId)
           
 void setPropertyDefinitions(java.util.Map<java.lang.String,PropertyDefinition<?>> propertyDefinitions)
           
 void setQueryName(java.lang.String queryName)
           
 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
getExtensions, setExtensions
 

Constructor Detail

AbstractTypeDefinition

public AbstractTypeDefinition()
Method Detail

initialize

public void initialize(TypeDefinition typeDefinition)

getId

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

Specified by:
getId in interface TypeDefinition
Returns:
the type id

setId

public void setId(java.lang.String id)

getLocalName

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

Specified by:
getLocalName in interface TypeDefinition
Returns:
the local name

setLocalName

public void setLocalName(java.lang.String localName)

getLocalNamespace

public java.lang.String getLocalNamespace()
Description copied from interface: TypeDefinition
Returns the local namespace.

Specified by:
getLocalNamespace in interface TypeDefinition
Returns:
the local namespace

setLocalNamespace

public void setLocalNamespace(java.lang.String localNamespace)

getQueryName

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

Specified by:
getQueryName in interface TypeDefinition
Returns:
the query name

setQueryName

public void setQueryName(java.lang.String queryName)

getDisplayName

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

Specified by:
getDisplayName in interface TypeDefinition
Returns:
the display name

setDisplayName

public void setDisplayName(java.lang.String displayName)

getDescription

public java.lang.String getDescription()
Description copied from interface: TypeDefinition
Returns the property description.

Specified by:
getDescription in interface TypeDefinition
Returns:
returns the description

setDescription

public void setDescription(java.lang.String description)

getBaseTypeId

public BaseTypeId getBaseTypeId()
Description copied from interface: TypeDefinition
Returns the base object type id.

Specified by:
getBaseTypeId in interface TypeDefinition
Returns:
the base object type id

setBaseTypeId

public void setBaseTypeId(BaseTypeId baseId)

getParentTypeId

public java.lang.String getParentTypeId()
Description copied from interface: TypeDefinition
Returns the parent type id.

Specified by:
getParentTypeId in interface TypeDefinition
Returns:
the parent type id or null if the type is a base type

setParentTypeId

public void setParentTypeId(java.lang.String parentId)

isCreatable

public java.lang.Boolean isCreatable()
Description copied from interface: TypeDefinition
Returns if an object of this type can be created.

Specified by:
isCreatable in interface TypeDefinition
Returns:
true if an object of this type can be created; false if creation of objects of this type is not possible; null - unknown (noncompliant repository)

setIsCreatable

public void setIsCreatable(java.lang.Boolean isCreatable)

isFileable

public java.lang.Boolean isFileable()
Description copied from interface: TypeDefinition
Returns if an object of this type can be filed.

Specified by:
isFileable in interface TypeDefinition
Returns:
true if an object of this type can be filed; false if an object of this type cannot be filed; null - unknown (noncompliant repository)

setIsFileable

public void setIsFileable(java.lang.Boolean isFileable)

isQueryable

public java.lang.Boolean isQueryable()
Description copied from interface: TypeDefinition
Returns if this type is queryable.

Specified by:
isQueryable in interface TypeDefinition
Returns:
true if this type is queryable; false if this type is not queryable; null - unknown (noncompliant repository)

setIsQueryable

public void setIsQueryable(java.lang.Boolean isQueryable)

isIncludedInSupertypeQuery

public java.lang.Boolean isIncludedInSupertypeQuery()
Description copied from interface: TypeDefinition
Returns if this type is included in queries that query the super type.

Specified by:
isIncludedInSupertypeQuery in interface TypeDefinition
Returns:
true if this type is included; false if this type is not included; null - unknown (noncompliant repository)

setIsIncludedInSupertypeQuery

public void setIsIncludedInSupertypeQuery(java.lang.Boolean isIncludedInSupertypeQuery)

isFulltextIndexed

public java.lang.Boolean isFulltextIndexed()
Description copied from interface: TypeDefinition
Returns if this type is full text indexed.

Specified by:
isFulltextIndexed in interface TypeDefinition
Returns:
true if this type is full text indexed; false if this type is not full text indexed; null - unknown (noncompliant repository)

setIsFulltextIndexed

public void setIsFulltextIndexed(java.lang.Boolean isFulltextIndexed)

isControllableAcl

public java.lang.Boolean isControllableAcl()
Description copied from interface: TypeDefinition
Returns if objects of this type are controllable by ACLs.

Specified by:
isControllableAcl in interface TypeDefinition
Returns:
true if objects are controllable by ACLs; false if objects are not controllable by ACLs; null - unknown (noncompliant repository)

setIsControllableAcl

public void setIsControllableAcl(java.lang.Boolean isControllableACL)

isControllablePolicy

public java.lang.Boolean isControllablePolicy()
Description copied from interface: TypeDefinition
Returns if objects of this type are controllable by policies.

Specified by:
isControllablePolicy in interface TypeDefinition
Returns:
true if objects are controllable by policies; false if objects are not controllable by policies; null - unknown (noncompliant repository)

setIsControllablePolicy

public void setIsControllablePolicy(java.lang.Boolean isControllablePolicy)

getPropertyDefinitions

public java.util.Map<java.lang.String,PropertyDefinition<?>> getPropertyDefinitions()
Description copied from interface: TypeDefinition
Returns the property definitions of this type.

Specified by:
getPropertyDefinitions in interface TypeDefinition
Returns:
the property definitions or null if the property definitions were not requested

setPropertyDefinitions

public void setPropertyDefinitions(java.util.Map<java.lang.String,PropertyDefinition<?>> propertyDefinitions)

addPropertyDefinition

public void addPropertyDefinition(PropertyDefinition<?> propertyDefinition)
Adds a property definition.

Parameters:
propertyDefinition - the property definition

clone

public AbstractTypeDefinition clone()
Overrides:
clone in class java.lang.Object

toString

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


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