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​(org.apache.jackrabbit.spi.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.
      • nodeTypeRegistered

        public void nodeTypeRegistered​(org.apache.jackrabbit.spi.Name ntName)
        Description copied from interface: NodeTypeRegistryListener
        Called when a node type has been registered.
        Specified by:
        nodeTypeRegistered in interface NodeTypeRegistryListener
        Parameters:
        ntName - name of the node type that has been registered
      • nodeTypeReRegistered

        public void nodeTypeReRegistered​(org.apache.jackrabbit.spi.Name ntName)
        Description copied from interface: NodeTypeRegistryListener
        Called when a node type has been re-registered.
        Specified by:
        nodeTypeReRegistered in interface NodeTypeRegistryListener
        Parameters:
        ntName - name of the node type that has been registered