org.alfresco.service.cmr.dictionary
Interface ClassDefinition

All Known Subinterfaces:
AspectDefinition, TypeDefinition

public interface ClassDefinition

Read-only definition of a Class.


Method Summary
 java.util.Map getAssociations()
          Fetch all associations for which this is a source type, including child associations.
 java.util.Map getChildAssociations()
          Fetch only child associations for which this is a source type.
 java.util.List getDefaultAspects()
           
 java.util.Map getDefaultValues()
           
 java.lang.String getDescription()
           
 ModelDefinition getModel()
           
 QName getName()
           
 QName getParentName()
           
 java.util.Map getProperties()
           
 java.lang.String getTitle()
           
 boolean isArchive()
           
 boolean isAspect()
           
 boolean isContainer()
           
 

Method Detail

getModel

ModelDefinition getModel()
Returns:
defining model

getName

QName getName()
Returns:
the qualified name of the class

getTitle

java.lang.String getTitle()
Returns:
the human-readable class title

getDescription

java.lang.String getDescription()
Returns:
the human-readable class description

getParentName

QName getParentName()
Returns:
the super class (or null, if this is the root)

isAspect

boolean isAspect()
Returns:
true => aspect, false => type

isArchive

boolean isArchive()
Returns:
Return true if the type should be archived on delete

getProperties

java.util.Map getProperties()
Returns:
the properties of the class, including inherited properties

getDefaultValues

java.util.Map getDefaultValues()
Returns:
a map containing the default property values, including inherited properties

getAssociations

java.util.Map getAssociations()
Fetch all associations for which this is a source type, including child associations.

Returns:
the associations including inherited ones
See Also:
ChildAssociationDefinition

isContainer

boolean isContainer()
Returns:
true => this class supports child associations

getChildAssociations

java.util.Map getChildAssociations()
Fetch only child associations for which this is a source type.

Returns:
all child associations applicable to this type, including those inherited from super types

getDefaultAspects

java.util.List getDefaultAspects()
Returns:
the default aspects associated with this type


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