Improve logging
[gpl/argeo-suite.git] / org.argeo.app.api / src / org / argeo / app / api / EntityType.java
index bb7b3de7bf1dfc75892b2c1d650abc3158c6aed0..8a258ebc38d4c60511bc10df3680b8cfd5102a53 100644 (file)
@@ -1,9 +1,9 @@
 package org.argeo.app.api;
 
-import org.argeo.util.naming.QNamed;
+import org.argeo.api.acr.QNamed;
 
-/** Types related to entities. */
-public enum EntityType implements JcrName,QNamed {
+/** Types used in the entity namespace http://www.argeo.org/ns/entity. */
+public enum EntityType implements QNamed {
        // entity
        entity, local, relatedTo,
        // structure
@@ -15,38 +15,24 @@ public enum EntityType implements JcrName,QNamed {
        // graphics
        box,
        // geography
-       geopoint, bearing,
+       geopoint, bearing, geobounded,
        // ldap
        person, user;
 
-       
-       
-       @Override
-       public String getDefaultPrefix() {
-               // TODO Auto-generated method stub
-               return "entity";
-       }
+       public final static String ENTITY_NAMESPACE_URI = "http://www.argeo.org/ns/entity";
+       public final static String ENTITY_DEFAULT_PREFIX = "entity";
 
        @Override
-       public String getPrefix() {
-               return getDefaultPrefix();
+       public String getDefaultPrefix() {
+               return ENTITY_DEFAULT_PREFIX;
        }
 
-//     public static String prefix() {
-//             return "entity";
-//     }
-
        public String basePath() {
                return '/' + name();
        }
 
        @Override
        public String getNamespace() {
-               return  "http://www.argeo.org/ns/entity";
+               return ENTITY_NAMESPACE_URI;
        }
-
-//     public static String namespace() {
-//             return "http://www.argeo.org/ns/entity";
-//     }
-
 }