Class DefinitionBuilderFactory<T,​N>

  • Type Parameters:
    T - type of the node type definition
    N - type of the namespace mapping
    Direct Known Subclasses:
    QDefinitionBuilderFactory, TemplateBuilderFactory

    public abstract class DefinitionBuilderFactory<T,​N>
    extends java.lang.Object
    Builder for node type definitions, node definitions and property definitions.
    • Constructor Detail

      • DefinitionBuilderFactory

        public DefinitionBuilderFactory()
    • Method Detail

      • setNamespaceMapping

        public abstract void setNamespaceMapping​(N nsMapping)
        Set the namespace mapping to use for the node type definition being built
        Parameters:
        nsMapping -
      • getNamespaceMapping

        public abstract N getNamespaceMapping()
        Returns:
        the namespace mapping used for the node type definition being built
      • setNamespace

        public abstract void setNamespace​(java.lang.String prefix,
                                          java.lang.String uri)
                                   throws javax.jcr.RepositoryException
        Add a mapping to the namespace map
        Parameters:
        prefix -
        uri -
        Throws:
        javax.jcr.RepositoryException