Massive package refactoring
[lgpl/argeo-commons.git] / org.argeo.api.acr / src / org / argeo / api / acr / CrAttributeType.java
index 4dae9221c4eae4036a0a6f15f18e31dcb08d5ed0..3e12fb1c87067fd188bfa34cac4c44794c9ec5d2 100644 (file)
@@ -18,7 +18,7 @@ import javax.xml.namespace.QName;
 /**
  * Minimal standard attribute types that MUST be supported. All related classes
  * belong to java.base and can be implicitly derived form a given
- * <code>String<code>.
+ * <code>String</code>.
  */
 public enum CrAttributeType {
        BOOLEAN(Boolean.class, W3C_XML_SCHEMA_NS_URI, "boolean", new BooleanFormatter()), //
@@ -28,7 +28,7 @@ public enum CrAttributeType {
        // we do not support short and float, like recent additions to Java
        // (e.g. optional primitives)
        DATE_TIME(Instant.class, W3C_XML_SCHEMA_NS_URI, "dateTime", new InstantFormatter()), //
-       UUID(UUID.class, CrName.CR_NAMESPACE_URI, "uuid", new UuidFormatter()), //
+       UUID(UUID.class, ArgeoNamespace.CR_NAMESPACE_URI, "uuid", new UuidFormatter()), //
        ANY_URI(URI.class, W3C_XML_SCHEMA_NS_URI, "anyUri", new UriFormatter()), //
        STRING(String.class, W3C_XML_SCHEMA_NS_URI, "string", new StringFormatter()), //
        ;
@@ -143,7 +143,7 @@ public enum CrAttributeType {
                Objects.requireNonNull(value, "Cannot cast a null value");
                if (String.class.isAssignableFrom(clss)) {
                        return Optional.of((T) value.toString());
-               } 
+               }
                // Numbers
                else if (Long.class.isAssignableFrom(clss)) {
                        if (value instanceof Long)