/** * check if the specified String instance is a valid {@odf.datatype IDREFS} data type * * @param stringValue * the value to be tested * @return true if the value of argument is valid for {@odf.datatype IDREFS} data type false * otherwise */ public static boolean isValid(String stringValue) { if (stringValue == null) { return false; } if (stringValue.length() == 0) { return false; } String[] names = stringValue.split(" "); for (int i = 0; i < names.length; i++) { if (!IDREF.isValid(names[i])) { return false; } } return true; } }
/** * check if the specified String instance is a valid {@odf.datatype IDREFS} data type * * @param stringValue * the value to be tested * @return true if the value of argument is valid for {@odf.datatype IDREFS} data type false * otherwise */ public static boolean isValid(String stringValue) { if (stringValue == null) { return false; } if (stringValue.length() == 0) { return false; } String[] names = stringValue.split(" "); for (int i = 0; i < names.length; i++) { if (!IDREF.isValid(names[i])) { return false; } } return true; } }
/** * check if the specified String instance is a valid {@odf.datatype IDREFS} data type * * @param stringValue * the value to be tested * @return true if the value of argument is valid for {@odf.datatype IDREFS} data type false * otherwise */ public static boolean isValid(String stringValue) { if (stringValue == null) { return false; } if (stringValue.length() == 0) { return false; } String[] names = stringValue.split(" "); for (int i = 0; i < names.length; i++) { if (!IDREF.isValid(names[i])) { return false; } } return true; } }