org.chromattic.api.annotations
Annotation Type NodeTypeDefs


@Retention(value=SOURCE)
@Target(value=PACKAGE)
public @interface NodeTypeDefs

A package annotation that triggers node type generation for any Chromattic classes found in the annotated package. The node types are generated in a resource named by default nodetypes.xml in the annotated package. This resource should be available later at runtimpe via the ClassLoader.getResource(String) mechanism.

Class inclusion can be controlled and extended to sub packages with the deep() parameter.

Namespace can be declared and mapped to qualified name prefix to declare namespacing of the node types. For that matter the {#namespaces} parameter can be used.

Since:
1.1
Version:
$Revision$
Author:
Julien Viet

Optional Element Summary
 boolean deep
          Controls the inclusion of node types from sub packages of the annotated package.
 NamespaceMapping[] namespaces
          Defines the set of namespaces mapped in this node type definition declaration.
 

deep

public abstract boolean deep
Controls the inclusion of node types from sub packages of the annotated package.

Returns:
true if the sub packages should be included
Default:
false

namespaces

public abstract NamespaceMapping[] namespaces
Defines the set of namespaces mapped in this node type definition declaration.

Returns:
the namespace mappings
Default:
{}


Copyright © 2014 eXo Platform SAS. All Rights Reserved.