/** * Returns a CURIEs instance representing the specified String value * * @param stringValue * a String value * @return return a CURIEs instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid CURIEs */ public static CURIEs valueOf(String stringValue) throws IllegalArgumentException { if ((stringValue == null) || (stringValue.length() == 0)) { throw new IllegalArgumentException( "parameter is invalid for datatype CURIEs"); } List<CURIE> aRet = new ArrayList<CURIE>(); String[] names = stringValue.split(" "); for (int i = 0; i < names.length; i++) { aRet.add(new CURIE(names[i])); } return new CURIEs(aRet); }
/** * Returns a CURIEs instance representing the specified String value * * @param stringValue * a String value * @return return a CURIEs instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid CURIEs */ public static CURIEs valueOf(String stringValue) throws IllegalArgumentException { if ((stringValue == null) || (stringValue.length() == 0)) { throw new IllegalArgumentException( "parameter is invalid for datatype CURIEs"); } List<CURIE> aRet = new ArrayList<CURIE>(); String[] names = stringValue.split(" "); for (int i = 0; i < names.length; i++) { aRet.add(new CURIE(names[i])); } return new CURIEs(aRet); }
/** * Returns a CURIEs instance representing the specified String value * * @param stringValue * a String value * @return return a CURIEs instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid CURIEs */ public static CURIEs valueOf(String stringValue) throws IllegalArgumentException { if ((stringValue == null) || (stringValue.length() == 0)) { throw new IllegalArgumentException( "parameter is invalid for datatype CURIEs"); } List<CURIE> aRet = new ArrayList<CURIE>(); String[] names = stringValue.split(" "); for (int i = 0; i < names.length; i++) { aRet.add(new CURIE(names[i])); } return new CURIEs(aRet); }