a5221f26ade3cabc1d4c5feb2c0b1349ddbc3ead
[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         // ldap
14         person, user;
15
16         @Override
17         public String getPrefix() {
18                 return prefix();
19         }
20
21         public static String prefix() {
22                 return "entity";
23         }
24
25         public String basePath() {
26                 return '/' + name();
27         }
28
29         @Override
30         public String getNamespace() {
31                 return namespace();
32         }
33
34         public static String namespace() {
35                 return "http://www.argeo.org/ns/entity";
36         }
37
38 }