org.alfresco.opencmis.dictionary
Class AbstractTypeDefinitionWrapper

java.lang.Object
  extended by org.alfresco.opencmis.dictionary.AbstractTypeDefinitionWrapper
All Implemented Interfaces:
java.io.Serializable, TypeDefinitionWrapper
Direct Known Subclasses:
PolicyTypeDefintionWrapper, RelationshipTypeDefintionWrapper, ShadowTypeDefinitionWrapper

public abstract class AbstractTypeDefinitionWrapper
extends java.lang.Object
implements TypeDefinitionWrapper, java.io.Serializable

Base class for type definition wrappers.

See Also:
Serialized Form

Field Summary
protected  java.util.Map actionEvaluators
           
protected  QName alfrescoClass
           
protected  QName alfrescoName
           
protected  java.util.List children
           
protected  TypeDefinitionWrapper parent
           
protected  java.util.Map propertiesById
           
protected  java.util.Map propertiesByQName
           
protected  java.util.Map propertiesByQueryName
           
protected  org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDef
           
protected  org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDefInclProperties
           
 
Constructor Summary
AbstractTypeDefinitionWrapper()
           
 
Method Summary
 void assertComplete()
           
abstract  void connectParentAndSubTypes(CMISMapping cmisMapping, org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.DictionaryRegistry registry, DictionaryService dictionaryService)
           
protected  void createActionEvaluators(PropertyAccessorMapping propertyAccessorMapping, org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseTypeId)
           
protected  void createOwningPropertyDefinitions(CMISMapping cmisMapping, PropertyAccessorMapping propertyAccessorMapping, PropertyLuceneBuilderMapping luceneBuilderMapping, ClassDefinition cmisClassDef)
          Adds all property definitions owned by that type.
protected  org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition createPropertyDefinition(CMISMapping cmisMapping, java.lang.String id, QName alfrescoPropName, PropertyDefinition propDef, boolean inherited)
          Creates a property definition object.
 java.util.Map getActionEvaluators()
           
 QName getAlfrescoClass()
           
 QName getAlfrescoName()
           
 org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()
           
 java.util.List getChildren()
           
 TypeDefinitionWrapper getParent()
           
 java.util.Collection getProperties()
           
 PropertyDefinitionWrapper getPropertyById(java.lang.String propertyId)
           
 PropertyDefinitionWrapper getPropertyByQName(QName name)
           
 PropertyDefinitionWrapper getPropertyByQueryName(java.lang.String queryName)
           
 org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(boolean includePropertyDefinitions)
           
 java.lang.String getTypeId()
           
 boolean isBaseType()
           
protected  void registerProperty(PropertyDefinitionWrapper propDefWrapper)
          Registers a property definition with this type
abstract  void resolveInheritance(CMISMapping cmisMapping, org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.DictionaryRegistry registry, DictionaryService dictionaryService)
           
protected  void setTypeDefinition(org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDef, org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDefInclProperties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeDef

protected org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDef

typeDefInclProperties

protected org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDefInclProperties

parent

protected TypeDefinitionWrapper parent

children

protected java.util.List children

alfrescoName

protected QName alfrescoName

alfrescoClass

protected QName alfrescoClass

actionEvaluators

protected java.util.Map actionEvaluators

propertiesById

protected java.util.Map propertiesById

propertiesByQueryName

protected java.util.Map propertiesByQueryName

propertiesByQName

protected java.util.Map propertiesByQName
Constructor Detail

AbstractTypeDefinitionWrapper

public AbstractTypeDefinitionWrapper()
Method Detail

getTypeDefinition

public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(boolean includePropertyDefinitions)
Specified by:
getTypeDefinition in interface TypeDefinitionWrapper

setTypeDefinition

protected void setTypeDefinition(org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDef,
                                 org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractTypeDefinition typeDefInclProperties)

getTypeId

public java.lang.String getTypeId()
Specified by:
getTypeId in interface TypeDefinitionWrapper

getBaseTypeId

public org.apache.chemistry.opencmis.commons.enums.BaseTypeId getBaseTypeId()
Specified by:
getBaseTypeId in interface TypeDefinitionWrapper

isBaseType

public boolean isBaseType()
Specified by:
isBaseType in interface TypeDefinitionWrapper

getAlfrescoName

public QName getAlfrescoName()
Specified by:
getAlfrescoName in interface TypeDefinitionWrapper

getAlfrescoClass

public QName getAlfrescoClass()
Specified by:
getAlfrescoClass in interface TypeDefinitionWrapper

getParent

public TypeDefinitionWrapper getParent()
Specified by:
getParent in interface TypeDefinitionWrapper

getChildren

public java.util.List getChildren()
Specified by:
getChildren in interface TypeDefinitionWrapper

getActionEvaluators

public java.util.Map getActionEvaluators()
Specified by:
getActionEvaluators in interface TypeDefinitionWrapper

getProperties

public java.util.Collection getProperties()
Specified by:
getProperties in interface TypeDefinitionWrapper

getPropertyById

public PropertyDefinitionWrapper getPropertyById(java.lang.String propertyId)
Specified by:
getPropertyById in interface TypeDefinitionWrapper

getPropertyByQueryName

public PropertyDefinitionWrapper getPropertyByQueryName(java.lang.String queryName)
Specified by:
getPropertyByQueryName in interface TypeDefinitionWrapper

getPropertyByQName

public PropertyDefinitionWrapper getPropertyByQName(QName name)
Specified by:
getPropertyByQName in interface TypeDefinitionWrapper

connectParentAndSubTypes

public abstract void connectParentAndSubTypes(CMISMapping cmisMapping,
                                              org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.DictionaryRegistry registry,
                                              DictionaryService dictionaryService)

resolveInheritance

public abstract void resolveInheritance(CMISMapping cmisMapping,
                                        org.alfresco.opencmis.dictionary.CMISAbstractDictionaryService.DictionaryRegistry registry,
                                        DictionaryService dictionaryService)

assertComplete

public void assertComplete()

createOwningPropertyDefinitions

protected void createOwningPropertyDefinitions(CMISMapping cmisMapping,
                                               PropertyAccessorMapping propertyAccessorMapping,
                                               PropertyLuceneBuilderMapping luceneBuilderMapping,
                                               ClassDefinition cmisClassDef)
Adds all property definitions owned by that type.


registerProperty

protected void registerProperty(PropertyDefinitionWrapper propDefWrapper)
Registers a property definition with this type


createPropertyDefinition

protected org.apache.chemistry.opencmis.commons.definitions.PropertyDefinition createPropertyDefinition(CMISMapping cmisMapping,
                                                                                                        java.lang.String id,
                                                                                                        QName alfrescoPropName,
                                                                                                        PropertyDefinition propDef,
                                                                                                        boolean inherited)
Creates a property definition object.


createActionEvaluators

protected void createActionEvaluators(PropertyAccessorMapping propertyAccessorMapping,
                                      org.apache.chemistry.opencmis.commons.enums.BaseTypeId baseTypeId)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.