Annotation Type NodeType


  • @Retention(RUNTIME)
    @Target(TYPE)
    public @interface NodeType
    Declare a JSR-170 node type. This indicates that this class or interface also defines a JSR-170 node type. Properties and child nodes are indicated by marking up the methods that return (i.e. getters) the data to be stored in the repository. The node type automatically gets orderable children and properties.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String[] mixin
      Optional array of mixin node type names.
      String name
      The name of the JSR-170 node type to create.
      boolean registerNodeType
      Optional indication if the node type should be (re)registered in the JCR
      String supertype
      The supertype of this node type.
    • Element Detail

      • name

        String name
        The name of the JSR-170 node type to create. The name should also include the namespace prefix.
        Default:
        ""
      • supertype

        String supertype
        The supertype of this node type. Defaults to "wm:base".
        Default:
        "wm:base"
      • mixin

        String[] mixin
        Optional array of mixin node type names.
        Default:
        {}
      • registerNodeType

        boolean registerNodeType
        Optional indication if the node type should be (re)registered in the JCR
        Default:
        true