public final class DataDictionary extends Object implements Serializable
Constructor and Description |
---|
DataDictionary(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Constructor
|
Modifier and Type | Method and Description |
---|---|
org.alfresco.service.cmr.dictionary.AssociationDefinition |
getAssociationDefinition(Node node,
String association)
Returns the association definition for the given association on the given node
|
org.alfresco.service.cmr.dictionary.DictionaryService |
getDictionaryService() |
org.alfresco.service.cmr.dictionary.PropertyDefinition |
getPropertyDefinition(Node node,
String property)
Returns the property definition for the given property on the given node
|
org.alfresco.service.cmr.dictionary.TypeDefinition |
getTypeDef(org.alfresco.service.namespace.QName type)
Returns the type definition for the type represented by the given qname
|
org.alfresco.service.cmr.dictionary.TypeDefinition |
getTypeDef(org.alfresco.service.namespace.QName type,
Collection<org.alfresco.service.namespace.QName> optionalAspects)
Returns the type definition for the type represented by the given qname
and for all the given aspects
|
public DataDictionary(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService
- The dictionary service to use to retrieve the datapublic org.alfresco.service.cmr.dictionary.DictionaryService getDictionaryService()
public org.alfresco.service.cmr.dictionary.TypeDefinition getTypeDef(org.alfresco.service.namespace.QName type)
type
- The qname of the type to lookup the definition forpublic org.alfresco.service.cmr.dictionary.TypeDefinition getTypeDef(org.alfresco.service.namespace.QName type, Collection<org.alfresco.service.namespace.QName> optionalAspects)
type
- The type to retrieve the definition foroptionalAspects
- A list of aspects to retrieve the definition forpublic org.alfresco.service.cmr.dictionary.PropertyDefinition getPropertyDefinition(Node node, String property)
node
- The node from which to get the propertyproperty
- The property to find the definition forpublic org.alfresco.service.cmr.dictionary.AssociationDefinition getAssociationDefinition(Node node, String association)
node
- The node from which to get the associationassociation
- The association to find the definition forCopyright © 2005–2017 Alfresco Software. All rights reserved.