org.apache.chemistry.opencmis.inmemory.types
Class InMemoryDocumentTypeDefinition

java.lang.Object
  extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
      extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition
          extended by org.apache.chemistry.opencmis.commons.impl.dataobjects.DocumentTypeDefinitionImpl
              extended by org.apache.chemistry.opencmis.inmemory.types.InMemoryDocumentTypeDefinition
All Implemented Interfaces:
Serializable, Cloneable, ExtensionsData, DocumentTypeDefinition, TypeDefinition

public class InMemoryDocumentTypeDefinition
extends DocumentTypeDefinitionImpl

A small convenience class simplifying document type creation

See Also:
Serialized Form

Constructor Summary
InMemoryDocumentTypeDefinition()
           
InMemoryDocumentTypeDefinition(String id, String displayName)
           
InMemoryDocumentTypeDefinition(String id, String displayName, InMemoryDocumentTypeDefinition parentType)
           
 
Method Summary
 void addCustomPropertyDefinitions(Map<String,PropertyDefinition<?>> propertyDefinitions)
          Set the property definitions for this type.
static InMemoryDocumentTypeDefinition getRootDocumentType()
           
 
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.dataobjects.DocumentTypeDefinitionImpl
getContentStreamAllowed, isVersionable, setContentStreamAllowed, setIsVersionable
 
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition
addPropertyDefinition, clone, getBaseTypeId, getDescription, getDisplayName, getId, getLocalName, getLocalNamespace, getParentTypeId, getPropertyDefinitions, getQueryName, initialize, isControllableAcl, isControllablePolicy, isCreatable, isFileable, isFulltextIndexed, isIncludedInSupertypeQuery, isQueryable, setBaseTypeId, setDescription, setDisplayName, setId, setIsControllableAcl, setIsControllablePolicy, setIsCreatable, setIsFileable, setIsFulltextIndexed, setIsIncludedInSupertypeQuery, setIsQueryable, setLocalName, setLocalNamespace, setParentTypeId, setPropertyDefinitions, setQueryName, 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.definitions.TypeDefinition
getBaseTypeId, getDescription, getDisplayName, getId, getLocalName, getLocalNamespace, getParentTypeId, getPropertyDefinitions, getQueryName, isControllableAcl, isControllablePolicy, isCreatable, isFileable, isFulltextIndexed, isIncludedInSupertypeQuery, isQueryable
 
Methods inherited from interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
getExtensions, setExtensions
 

Constructor Detail

InMemoryDocumentTypeDefinition

public InMemoryDocumentTypeDefinition()

InMemoryDocumentTypeDefinition

public InMemoryDocumentTypeDefinition(String id,
                                      String displayName)

InMemoryDocumentTypeDefinition

public InMemoryDocumentTypeDefinition(String id,
                                      String displayName,
                                      InMemoryDocumentTypeDefinition parentType)
Method Detail

getRootDocumentType

public static InMemoryDocumentTypeDefinition getRootDocumentType()

addCustomPropertyDefinitions

public void addCustomPropertyDefinitions(Map<String,PropertyDefinition<?>> propertyDefinitions)
Set the property definitions for this type. The parameter propertyDefinitions should only contain the custom property definitions for this type. The standard property definitions are added automatically.

See Also:
setPropertyDefinitions(java.util.Map)


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