public class PropertyTypeRegistry extends Object implements NodeTypeRegistryListener
PropertyTypeRegistry
keeps track of registered node type
definitions and its property types. It provides a fast type lookup for a
given property name.Modifier and Type | Class and Description |
---|---|
static class |
PropertyTypeRegistry.TypeMapping |
Constructor and Description |
---|
PropertyTypeRegistry(NodeTypeRegistry reg)
Creates a new
PropertyTypeRegistry instance. |
Modifier and Type | Method and Description |
---|---|
PropertyTypeRegistry.TypeMapping[] |
getPropertyTypes(Name propName)
Returns an array of type mappings for a given property name
propName . |
void |
nodeTypeRegistered(Name ntName)
Called when a node type has been registered.
|
void |
nodeTypeReRegistered(Name ntName)
Called when a node type has been re-registered.
|
void |
nodeTypesUnregistered(Collection<Name> names)
Called when a set of node types has been unregistered.
|
public PropertyTypeRegistry(NodeTypeRegistry reg)
PropertyTypeRegistry
instance. This instance
is *not* registered as listener to the NodeTypeRegistry in the constructor!reg
- the NodeTypeRegistry
where to read the property
type information.public PropertyTypeRegistry.TypeMapping[] getPropertyTypes(Name propName)
propName
. If propName
is not defined as a property
in any registered node type an empty array is returned.propName
- the name of the property.TypeMapping
instances.public void nodeTypeRegistered(Name ntName)
NodeTypeRegistryListener
nodeTypeRegistered
in interface NodeTypeRegistryListener
ntName
- name of the node type that has been registeredpublic void nodeTypeReRegistered(Name ntName)
NodeTypeRegistryListener
nodeTypeReRegistered
in interface NodeTypeRegistryListener
ntName
- name of the node type that has been registeredpublic void nodeTypesUnregistered(Collection<Name> names)
NodeTypeRegistryListener
nodeTypesUnregistered
in interface NodeTypeRegistryListener
names
- names of the types that have been unregisteredCopyright © 2004–2023 The Apache Software Foundation. All rights reserved.