Class PropertyTypeRegistry

  • All Implemented Interfaces:
    NodeTypeRegistryListener

    public class PropertyTypeRegistry
    extends Object
    implements NodeTypeRegistryListener
    The PropertyTypeRegistry keeps track of registered node type definitions and its property types. It provides a fast type lookup for a given property name.
    • Constructor Detail

      • PropertyTypeRegistry

        public PropertyTypeRegistry​(NodeTypeRegistry reg)
        Creates a new PropertyTypeRegistry instance. This instance is *not* registered as listener to the NodeTypeRegistry in the constructor!
        Parameters:
        reg - the NodeTypeRegistry where to read the property type information.
    • Method Detail

      • getPropertyTypes

        public PropertyTypeRegistry.TypeMapping[] getPropertyTypes​(Name propName)
        Returns an array of type mappings for a given property name propName. If propName is not defined as a property in any registered node type an empty array is returned.
        Parameters:
        propName - the name of the property.
        Returns:
        an array of TypeMapping instances.