nl.gx.webmanager.jcr.annotation
Annotation Type NodeType


@Retention(value=RUNTIME)
@Target(value=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
 java.lang.String[] mixin
          Optional array of mixin node type names.
 java.lang.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
 java.lang.String supertype
          The supertype of this node type.
 

name

public abstract java.lang.String name
The name of the JSR-170 node type to create. The name should also include the namespace prefix.

Default:
""

supertype

public abstract java.lang.String supertype
The supertype of this node type. Defaults to "wm:base".

Default:
"wm:base"

mixin

public abstract java.lang.String[] mixin
Optional array of mixin node type names.

Default:
{}

registerNodeType

public abstract boolean registerNodeType
Optional indication if the node type should be (re)registered in the JCR

Default:
true


Copyright © 2007-2011 GX Software BV. All Rights Reserved.