// ignore
}
}
}
} catch (IOException ioe) {
throw new ValueFormatException(ioe.getMessage());
}
case PropertyType.BOOLEAN:
return value.getBoolean() ? BOOLEAN_TRUE : BOOLEAN_FALSE;
case PropertyType.DATE:
return new InternalValue(value.getDate());
case PropertyType.DOUBLE:
return new InternalValue(value.getDouble());
case PropertyType.LONG:
return new InternalValue(value.getLong());
case PropertyType.REFERENCE:
return new InternalValue(new UUID(value.getString()));
case PropertyType.NAME:
try {
return new InternalValue(NameFormat.parse(value.getString(), nsResolver));
} catch (IllegalNameException ine) {
throw new ValueFormatException(ine.getMessage());
} catch (UnknownPrefixException upe) {
throw new ValueFormatException(upe.getMessage());
}
case PropertyType.PATH:
try {
return new InternalValue(PathFormat.parse(value.getString(), nsResolver));
} catch (MalformedPathException mpe) {
throw new ValueFormatException(mpe.getMessage());
}
case PropertyType.STRING:
return new InternalValue(value.getString());
default: