package org.argeo.api.acr;
-import javax.xml.namespace.QName;
-
/** Standard names. */
-public enum CrName {
+public enum CrName implements QNamed {
/*
* TYPES
*/
- collection, // a collection type
+// collection, // a collection type
/*
* ATTRIBUTES
*/
uuid, // the UUID of a content
- mount,
+ mount, // a mount point
+// cc, // content class
/*
* ATTRIBUTES FROM FILE SEMANTICS
*/
- creationTime, //
- lastModifiedTime, //
- size, //
+// creationTime, //
+// lastModifiedTime, //
+// size, //
fileKey, //
- owner, //
- group, //
+// owner, //
+// group, //
permissions, //
/*
//
;
- 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";
- public final static String LDAP_DEFAULT_PREFIX = "ldap";
+
- 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;
- private final ContentName value;
+// CrName() {
+// value = new ContentName(CR_NAMESPACE_URI, name(), RuntimeNamespaceContext.getNamespaceContext());
+// }
+//
+// public QName qName() {
+// return value;
+// }
- CrName() {
- value = new ContentName(CR_NAMESPACE_URI, name(), RuntimeNamespaceContext.getNamespaceContext());
+ @Override
+ public String getNamespace() {
+ return ArgeoNamespace.CR_NAMESPACE_URI;
}
- public QName qName() {
- return value;
+ @Override
+ public String getDefaultPrefix() {
+ return ArgeoNamespace.CR_DEFAULT_PREFIX;
}
-// @Override
-// public String getNamespaceURI() {
-// return CR_NAMESPACE_URI;
-// }
-//
-// @Override
-// public String getDefaultPrefix() {
-// return CR_DEFAULT_PREFIX;
-// }
-
}