/** * Set or remove the type URI for a given custom primitive. * * @param custom Custom primitive. * @param The type URI. */ public static void setTypeURI(CustomPrimitive custom, URI uri) { String value = (uri == null) ? null : uri.toString(); PropertyHelper.setOrRemove(custom, TYPE_URI_KEY, value); }