Annotation Type Namespace


  • @Retention(RUNTIME)
    @Target(PACKAGE)
    public @interface Namespace
    Package Level Annotation for Neo4J Namespaces. (annotation needs to be in package-info.java at the package level) This annotation exists solely to shorten the usual namespace down to "NS". Namespaces don't understand extensions of each other, this actually happens on the class level

    Ex.: Class in science.example.ExampleNode Annotation with NS = "ex" -> "ex" No Annotation -> "science.example"

    Warning: We have no conflict resolution. If you define the same namespace for different packages with the same class-labels this will inevitably lead to collisions.

    Since:
    1.0
    Author:
    Oliver Krauss
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static String NS  
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String ns