HTTP GET support for ACR.
[lgpl/argeo-commons.git] / org.argeo.api.acr / src / org / argeo / api / acr / CrName.java
index 1138d095d799afb792012e35b4991cfa195f00be..3fe3462b97fc6f7b1b0459e242efc14a9135c874 100644 (file)
@@ -1,9 +1,7 @@
 package org.argeo.api.acr;
 
-import javax.xml.namespace.QName;
-
 /** Standard names. */
-public enum CrName {
+public enum CrName implements QNamed {
 
        /*
         * TYPES
@@ -14,7 +12,8 @@ public enum CrName {
         * ATTRIBUTES
         */
        uuid, // the UUID of a content
-       mount,
+       mount, // a mount point
+       cc, // content class
 
        /*
         * ATTRIBUTES FROM FILE SEMANTICS
@@ -36,7 +35,6 @@ public enum CrName {
        ;
 
        public final static String CR_NAMESPACE_URI = "http://www.argeo.org/ns/cr";
-
        public final static String CR_DEFAULT_PREFIX = "cr";
 
        public final static String LDAP_NAMESPACE_URI = "http://www.argeo.org/ns/ldap";
@@ -45,24 +43,24 @@ public enum CrName {
        public final static String ROLE_NAMESPACE_URI = "http://www.argeo.org/ns/role";
        public final static String ROLE_DEFAULT_PREFIX = "role";
 
-       private final ContentName value;
-
-       CrName() {
-               value = new ContentName(CR_NAMESPACE_URI, name(), RuntimeNamespaceContext.getNamespaceContext());
-       }
-
-       public QName qName() {
-               return value;
-       }
+//     private final ContentName value;
 
-//     @Override
-//     public String getNamespaceURI() {
-//             return CR_NAMESPACE_URI;
+//     CrName() {
+//             value = new ContentName(CR_NAMESPACE_URI, name(), RuntimeNamespaceContext.getNamespaceContext());
 //     }
 //
-//     @Override
-//     public String getDefaultPrefix() {
-//             return CR_DEFAULT_PREFIX;
+//     public QName qName() {
+//             return value;
 //     }
 
+       @Override
+       public String getNamespace() {
+               return CR_NAMESPACE_URI;
+       }
+
+       @Override
+       public String getDefaultPrefix() {
+               return CR_DEFAULT_PREFIX;
+       }
+
 }