/** * set uri value for URIorSafeCURIE Object * * @param uri * the anyURI value which is set to URIorSafeCURIE Object */ public void setAnyURI(URI uri) { mValue = new AnyURI(uri); }
/** * set uri value for URIorSafeCURIE Object * * @param uri * the anyURI value which is set to URIorSafeCURIE Object */ public void setAnyURI(URI uri) { mValue = new AnyURI(uri); }
/** * set uri value for URIorSafeCURIE Object * * @param uri * the anyURI value which is set to URIorSafeCURIE Object */ public void setAnyURI(URI uri) { mValue = new AnyURI(uri); }
/** * Returns an AnyURI instance representing the specified String value * * @param stringValue * a String value * @return return an AnyURI instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid AnyURI */ public static AnyURI valueOf(String stringValue) throws IllegalArgumentException { if (stringValue == null) { throw new IllegalArgumentException( "parameter can not be null for AnyURI"); } try { URI uri = new URI(URITransformer.encodePath(stringValue).toString()); return new AnyURI(uri); } catch (URISyntaxException ex) { Logger.getLogger(AnyURI.class.getName()).log(Level.SEVERE, "parameter is invalid for datatype anyURI", ex); throw new IllegalArgumentException( "parameter is invalid for datatype anyURI"); } }
/** * Returns an AnyURI instance representing the specified String value * * @param stringValue * a String value * @return return an AnyURI instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid AnyURI */ public static AnyURI valueOf(String stringValue) throws IllegalArgumentException { if (stringValue == null) { throw new IllegalArgumentException( "parameter can not be null for AnyURI"); } try { URI uri = new URI(URITransformer.encodePath(stringValue).toString()); return new AnyURI(uri); } catch (URISyntaxException ex) { Logger.getLogger(AnyURI.class.getName()).log(Level.SEVERE, "parameter is invalid for datatype anyURI", ex); throw new IllegalArgumentException( "parameter is invalid for datatype anyURI"); } }
/** * Returns an AnyURI instance representing the specified String value * * @param stringValue * a String value * @return return an AnyURI instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid AnyURI */ public static AnyURI valueOf(String stringValue) throws IllegalArgumentException { if (stringValue == null) { throw new IllegalArgumentException( "parameter can not be null for AnyURI"); } try { URI uri = new URI(URITransformer.encodePath(stringValue).toString()); return new AnyURI(uri); } catch (URISyntaxException ex) { Logger.getLogger(AnyURI.class.getName()).log(Level.SEVERE, "parameter is invalid for datatype anyURI", ex); throw new IllegalArgumentException( "parameter is invalid for datatype anyURI"); } }
/** * Copy Construct URIorSafeCURIE with the same value of val * * @param val * the copied URIorSafeCURIE object * @throws IllegalArgumentException if the given argument is not a valid URIorSaveCURIE */ public URIorSafeCURIE(URIorSafeCURIE val) { if (val == null) { throw new IllegalArgumentException("parameter can not be null for URIorSafeCURIE"); } if (val.isSafeCURIE()) { mURIorSafeCURIE = val.getSafeCURIE(); } else { mURIorSafeCURIE = (new AnyURI(val.getAnyURI())).toString(); } }
/** * Copy Construct URIorSafeCURIE with the same value of val * * @param val * the copied URIorSafeCURIE object * @throws IllegalArgumentException if the given argument is not a valid URIorSaveCURIE */ public URIorSafeCURIE(URIorSafeCURIE val) { if (val == null) { throw new IllegalArgumentException("parameter can not be null for URIorSafeCURIE"); } if (val.isSafeCURIE()) { mURIorSafeCURIE = val.getSafeCURIE(); } else { mURIorSafeCURIE = (new AnyURI(val.getAnyURI())).toString(); } }
/** * Copy Construct URIorSafeCURIE with the same value of val * * @param val * the copied URIorSafeCURIE object * @throws IllegalArgumentException if the given argument is not a valid URIorSaveCURIE */ public URIorSafeCURIE(URIorSafeCURIE val) { if (val == null) { throw new IllegalArgumentException("parameter can not be null for URIorSafeCURIE"); } if (val.isSafeCURIE()) { mURIorSafeCURIE = val.getSafeCURIE(); } else { mURIorSafeCURIE = (new AnyURI(val.getAnyURI())).toString(); } }