package org.argeo.app.api;
+import org.argeo.api.acr.QNamed;
+
/** Types related to entities. */
-public enum EntityType implements JcrName {
+public enum EntityType implements QNamed {
// entity
entity, local, relatedTo,
// structure
// ldap
person, user;
- @Override
- public String getPrefix() {
- return prefix();
- }
+ public final static String ENTITY_NAMESPACE_URI = "http://www.argeo.org/ns/entity";
+ public final static String ENTITY_DEFAULT_PREFIX = "entity";
- public static String prefix() {
- return "entity";
+ @Override
+ public String getDefaultPrefix() {
+ return ENTITY_DEFAULT_PREFIX;
}
public String basePath() {
@Override
public String getNamespace() {
- return namespace();
+ return ENTITY_NAMESPACE_URI;
}
-
- public static String namespace() {
- return "http://www.argeo.org/ns/entity";
- }
-
}