29075fe1a6fcd908e2fab5a699e3faa9b3cb9d28
[gpl/argeo-suite.git] / org.argeo.entity.api / src / org / argeo / entity / EntityType.java
1 package org.argeo.entity;
2
3 /** Types related to entities. */
4 public enum EntityType implements JcrName {
5         // entity
6         entity, local,
7         // typology
8         typologies, terms, term,
9         // form
10         form, formSet, formSubmission,
11         // graphics
12         box,
13         // geography
14         geopoint,
15         // ldap
16         person, user;
17
18         @Override
19         public String getPrefix() {
20                 return prefix();
21         }
22
23         public static String prefix() {
24                 return "entity";
25         }
26
27         public String basePath() {
28                 return '/' + name();
29         }
30
31         @Override
32         public String getNamespace() {
33                 return namespace();
34         }
35
36         public static String namespace() {
37                 return "http://www.argeo.org/ns/entity";
38         }
39
40 }