org.alfresco.repo.dictionary
Class CompiledModel

java.lang.Object
  extended by org.alfresco.repo.dictionary.CompiledModel

public class CompiledModel
extends java.lang.Object

Compiled representation of a model definition. In this case, compiled means that a) all references between model items have been resolved b) inheritence of class features have been flattened c) overridden class features have been resolved A compiled model also represents a valid model.


Method Summary
 AspectDefinition getAspect(QName name)
          Gets the specified aspect
 java.util.Collection getAspects()
           
 AssociationDefinition getAssociation(QName name)
          Gets the specified association
 java.util.Collection getAssociations()
           
 ClassDefinition getClass(QName name)
          Gets the specified class
 ConstraintDefinition getConstraint(QName name)
          Gets the specified property constraint
 java.util.Collection getConstraints()
           
 DataTypeDefinition getDataType(java.lang.Class javaClass)
          Gets the data type for the specified Java Class
 DataTypeDefinition getDataType(QName name)
          Gets the specified data type
 java.util.Collection getDataTypes()
           
 M2Model getM2Model()
           
 ModelDefinition getModelDefinition()
           
 java.util.Collection getProperties()
           
 PropertyDefinition getProperty(QName name)
          Gets the specified property
 TypeDefinition getType(QName name)
          Gets the specified type
 java.util.Collection getTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getM2Model

public M2Model getM2Model()
Returns:
the model definition

getModelDefinition

public ModelDefinition getModelDefinition()
Returns:
the compiled model definition

getDataTypes

public java.util.Collection getDataTypes()
Returns:
the compiled property types

getTypes

public java.util.Collection getTypes()
Returns:
the compiled types

getAspects

public java.util.Collection getAspects()
Returns:
the compiled aspects

getProperties

public java.util.Collection getProperties()
Returns:
the compiled properties

getDataType

public DataTypeDefinition getDataType(QName name)
Gets the specified data type

Parameters:
name - name of the data type
Returns:
data type definition

getDataType

public DataTypeDefinition getDataType(java.lang.Class javaClass)
Gets the data type for the specified Java Class

Parameters:
javaClass - the java class
Returns:
the data type definition (or null, if mapping is not available)

getType

public TypeDefinition getType(QName name)
Gets the specified type

Parameters:
name - name of the type
Returns:
type definition

getAspect

public AspectDefinition getAspect(QName name)
Gets the specified aspect

Parameters:
name - name of the aspect
Returns:
aspect definition

getClass

public ClassDefinition getClass(QName name)
Gets the specified class

Parameters:
name - name of the class
Returns:
class definition

getProperty

public PropertyDefinition getProperty(QName name)
Gets the specified property

Parameters:
name - name of the property
Returns:
property definition

getAssociation

public AssociationDefinition getAssociation(QName name)
Gets the specified association

Parameters:
name - name of the association
Returns:
association definition

getAssociations

public java.util.Collection getAssociations()
Returns:
the compiled associations

getConstraints

public java.util.Collection getConstraints()
Returns:
the compiled constraints

getConstraint

public ConstraintDefinition getConstraint(QName name)
Gets the specified property constraint

Parameters:
name - the qualified name of the property constraint
Returns:


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