/** * Construct SafeCURIE by the parsing the given string * * @param curie * The String to be parsed into SafeCURIE * @throws IllegalArgumentException if the given argument is not a valid SafeCURIE */ public SafeCURIE(String curie) throws IllegalArgumentException { if (!isValid(curie)) { throw new IllegalArgumentException( "parameter is invalid for datatype SafeCURIE"); } mCURIE = curie; }
/** * Construct SafeCURIE by the parsing the given string * * @param curie * The String to be parsed into SafeCURIE * @throws IllegalArgumentException if the given argument is not a valid SafeCURIE */ public SafeCURIE(String curie) throws IllegalArgumentException { if (!isValid(curie)) { throw new IllegalArgumentException( "parameter is invalid for datatype SafeCURIE"); } mCURIE = curie; }
/** * Construct SafeCURIE by the parsing the given string * * @param curie * The String to be parsed into SafeCURIE * @throws IllegalArgumentException if the given argument is not a valid SafeCURIE */ public SafeCURIE(String curie) throws IllegalArgumentException { if (!isValid(curie)) { throw new IllegalArgumentException( "parameter is invalid for datatype SafeCURIE"); } mCURIE = curie; }
/** * check if the specified XMLGregorianCalendar {@odf.datatype URIorSafeCURIE} is a valid * URIorSafeCURIE data type * * @param stringValue * the value to be tested * @return true if the value of argument is valid for {@odf.datatype URIorSafeCURIE} data * type false otherwise */ public static boolean isValid(String stringValue) { if (SafeCURIE.isValid(stringValue)) { return true; } else if (AnyURI.valueOf(stringValue) != null) { return true; } else { return false; } } }
/** * check if the specified XMLGregorianCalendar {@odf.datatype URIorSafeCURIE} is a valid * URIorSafeCURIE data type * * @param stringValue * the value to be tested * @return true if the value of argument is valid for {@odf.datatype URIorSafeCURIE} data * type false otherwise */ public static boolean isValid(String stringValue) { if (SafeCURIE.isValid(stringValue)) { return true; } else if (AnyURI.valueOf(stringValue) != null) { return true; } else { return false; } } }
/** * check if the specified XMLGregorianCalendar {@odf.datatype URIorSafeCURIE} is a valid * URIorSafeCURIE data type * * @param stringValue * the value to be tested * @return true if the value of argument is valid for {@odf.datatype URIorSafeCURIE} data * type false otherwise */ public static boolean isValid(String stringValue) { if (SafeCURIE.isValid(stringValue)) { return true; } else if (AnyURI.valueOf(stringValue) != null) { return true; } else { return false; } } }