]> git.argeo.org Git - gpl/argeo-suite.git/blob - org.argeo.api.app/src/org/argeo/api/app/EntityType.java
Prepare next development cycle
[gpl/argeo-suite.git] / org.argeo.api.app / src / org / argeo / api / app / EntityType.java
1 package org.argeo.api.app;
2
3 import org.argeo.api.acr.QNamed;
4
5 /** Types used in the entity namespace http://www.argeo.org/ns/entity. */
6 public enum EntityType implements QNamed {
7 // entity
8 entity, local, relatedTo,
9 // structure
10 space, document,
11 // typology
12 typologies, terms, term,
13 // form
14 form, formSet, formSubmission,
15 // graphics
16 box,
17 // geography
18 geopoint, bearing, geobounded,
19 // ldap
20 person, user;
21
22 public final static String ENTITY_NAMESPACE_URI = "http://www.argeo.org/ns/entity";
23 public final static String ENTITY_DEFAULT_PREFIX = "entity";
24
25 @Override
26 public String getDefaultPrefix() {
27 return ENTITY_DEFAULT_PREFIX;
28 }
29
30 public String basePath() {
31 return '/' + name();
32 }
33
34 @Override
35 public String getNamespace() {
36 return ENTITY_NAMESPACE_URI;
37 }
38 }