/** * get the anyURI value of this URIorSafeCURIE Object * * @return the anyURI value of this URIorSafeCURIE Object */ public URI getAnyURI() { if (isSafeCURIE()) { throw new IllegalArgumentException("I do not have a AnyURI value"); } else if (mValue != null) { return ((AnyURI) mValue).getURI(); } else { return null; } }
/** * get the anyURI value of this URIorSafeCURIE Object * * @return the anyURI value of this URIorSafeCURIE Object */ public URI getAnyURI() { if (isSafeCURIE()) { throw new IllegalArgumentException("I do not have a AnyURI value"); } else if (mValue != null) { return ((AnyURI) mValue).getURI(); } else { return null; } }
/** * get the anyURI value of this URIorSafeCURIE Object * * @return the anyURI value of this URIorSafeCURIE Object */ public URI getAnyURI() { if (isSafeCURIE()) { throw new IllegalArgumentException("I do not have a AnyURI value"); } else if (mValue != null) { return ((AnyURI) mValue).getURI(); } else { return null; } }
/** * Returns an URIorSafeCURIE instance representing the specified String * value * * @param stringValue * a String value * @return return an URIorSafeCURIE instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid URIorSaveCURIE */ public static URIorSafeCURIE valueOf(String stringValue) throws IllegalArgumentException { if (stringValue == null) { throw new IllegalArgumentException("parameter can not be null for URIorSafeCURIE"); } URIorSafeCURIE aRet = new URIorSafeCURIE(); if ((uRIorSafeCURIEPattern.matcher(stringValue).matches()) && (stringValue.length() >= 3)) { aRet.setSafeCURIE(stringValue); } else { AnyURI aAnyURI = AnyURI.valueOf(stringValue); if (aAnyURI != null) { aRet.setAnyURI(aAnyURI.getURI()); } else { throw new IllegalArgumentException("parameter is invalid for datatype URIorSafeCURIE"); } } return aRet; }
/** * Returns an URIorSafeCURIE instance representing the specified String * value * * @param stringValue * a String value * @return return an URIorSafeCURIE instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid URIorSaveCURIE */ public static URIorSafeCURIE valueOf(String stringValue) throws IllegalArgumentException { if (stringValue == null) { throw new IllegalArgumentException("parameter can not be null for URIorSafeCURIE"); } URIorSafeCURIE aRet = new URIorSafeCURIE(); if ((uRIorSafeCURIEPattern.matcher(stringValue).matches()) && (stringValue.length() >= 3)) { aRet.setSafeCURIE(stringValue); } else { AnyURI aAnyURI = AnyURI.valueOf(stringValue); if (aAnyURI != null) { aRet.setAnyURI(aAnyURI.getURI()); } else { throw new IllegalArgumentException("parameter is invalid for datatype URIorSafeCURIE"); } } return aRet; }
/** * Returns an URIorSafeCURIE instance representing the specified String * value * * @param stringValue * a String value * @return return an URIorSafeCURIE instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid URIorSaveCURIE */ public static URIorSafeCURIE valueOf(String stringValue) throws IllegalArgumentException { if (stringValue == null) { throw new IllegalArgumentException("parameter can not be null for URIorSafeCURIE"); } URIorSafeCURIE aRet = new URIorSafeCURIE(); if ((uRIorSafeCURIEPattern.matcher(stringValue).matches()) && (stringValue.length() >= 3)) { aRet.setSafeCURIE(stringValue); } else { AnyURI aAnyURI = AnyURI.valueOf(stringValue); if (aAnyURI != null) { aRet.setAnyURI(aAnyURI.getURI()); } else { throw new IllegalArgumentException("parameter is invalid for datatype URIorSafeCURIE"); } } return aRet; }