/** * set String value for URIorSafeCURIE Object * * @param curie * the SafeCURIE value which is set to URIorSafeCURIE Object */ public void setSafeCURIE(String curie) { mValue = new SafeCURIE(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; }
/** * get the SafeCURIE value of this URIorSafeCURIE Object * * @return the SafeCURIE value of this URIorSafeCURIE Object */ public String getSafeCURIE() { if (isSafeCURIE()) { return ((SafeCURIE) mValue).toString(); } else { throw new IllegalArgumentException( "I do not have a SafeCURIE value"); } }
/** * get the SafeCURIE value of this URIorSafeCURIE Object * * @return the SafeCURIE value of this URIorSafeCURIE Object */ public String getSafeCURIE() { if (isSafeCURIE()) { return ((SafeCURIE) mValue).toString(); } else { throw new IllegalArgumentException( "I do not have a SafeCURIE value"); } }
/** * Returns a SafeCURIE instance representing the specified String value * * @param stringValue * a String value * @return return a SafeCURIE instance representing stringValue */ public static SafeCURIE valueOf(String stringValue) throws IllegalArgumentException { return new SafeCURIE(stringValue); }
/** * 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; }
/** * get the SafeCURIE value of this URIorSafeCURIE Object * * @return the SafeCURIE value of this URIorSafeCURIE Object */ public String getSafeCURIE() { if (isSafeCURIE()) { return ((SafeCURIE) mValue).toString(); } else { throw new IllegalArgumentException( "I do not have a SafeCURIE value"); } }
/** * set String value for URIorSafeCURIE Object * * @param curie * the SafeCURIE value which is set to URIorSafeCURIE Object */ public void setSafeCURIE(String curie) { mValue = new SafeCURIE(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; }
/** * Returns a SafeCURIE instance representing the specified String value * * @param stringValue * a String value * @return return a SafeCURIE instance representing stringValue */ public static SafeCURIE valueOf(String stringValue) throws IllegalArgumentException { return new SafeCURIE(stringValue); }
/** * 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; } } }
/** * set String value for URIorSafeCURIE Object * * @param curie * the SafeCURIE value which is set to URIorSafeCURIE Object */ public void setSafeCURIE(String curie) { mValue = new SafeCURIE(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; } } }
/** * Returns a SafeCURIE instance representing the specified String value * * @param stringValue * a String value * @return return a SafeCURIE instance representing stringValue */ public static SafeCURIE valueOf(String stringValue) throws IllegalArgumentException { return new SafeCURIE(stringValue); }
/** * 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; } } }