/** * Returns a CURIE instance representing the specified String value * * @param stringValue * a String value * @return return a CURIE instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid CURIE */ public static CURIE valueOf(String stringValue) throws IllegalArgumentException { return new CURIE(stringValue); }
/** * Construct CURIE by the parsing the given string * * @param curie * The String to be parsed into CURIE * @throws IllegalArgumentException if the given argument is not a valid CURIE */ public CURIE(String curie) throws IllegalArgumentException { if (!isValid(curie)){ throw new IllegalArgumentException("parameter is invalid for datatype CURIE"); } mCURIE = curie; }
/** * Construct CURIEs by the parsing the given string * * @param curies * The String to be parsed into CURIEs * @throws IllegalArgumentException if the given argument is not a valid CURIEs */ public CURIEs(List<CURIE> curies) throws IllegalArgumentException { if ((curies == null) || (curies.size() == 0)) { throw new IllegalArgumentException("parameter can not be null for CURIEs"); } StringBuffer aRet = new StringBuffer(); Iterator<CURIE> aIter = curies.iterator(); while (aIter.hasNext()) { if (aRet.length() > 0) { aRet.append(' '); } String aCurie = aIter.next().toString(); aRet.append(aCurie); } mCURIEs = aRet.toString(); }
/** * Construct CURIEs by the parsing the given string * * @param curies * The String to be parsed into CURIEs * @throws IllegalArgumentException if the given argument is not a valid CURIEs */ public CURIEs(List<CURIE> curies) throws IllegalArgumentException { if ((curies == null) || (curies.size() == 0)) { throw new IllegalArgumentException("parameter can not be null for CURIEs"); } StringBuffer aRet = new StringBuffer(); Iterator<CURIE> aIter = curies.iterator(); while (aIter.hasNext()) { if (aRet.length() > 0) { aRet.append(' '); } String aCurie = aIter.next().toString(); aRet.append(aCurie); } mCURIEs = aRet.toString(); }
/** * Returns a CURIE instance representing the specified String value * * @param stringValue * a String value * @return return a CURIE instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid CURIE */ public static CURIE valueOf(String stringValue) throws IllegalArgumentException { return new CURIE(stringValue); }
/** * Construct CURIE by the parsing the given string * * @param curie * The String to be parsed into CURIE * @throws IllegalArgumentException if the given argument is not a valid CURIE */ public CURIE(String curie) throws IllegalArgumentException { if (!isValid(curie)){ throw new IllegalArgumentException("parameter is invalid for datatype CURIE"); } mCURIE = curie; }
/** * Construct CURIEs by the parsing the given string * * @param curies * The String to be parsed into CURIEs * @throws IllegalArgumentException if the given argument is not a valid CURIEs */ public CURIEs(List<CURIE> curies) throws IllegalArgumentException { if ((curies == null) || (curies.size() == 0)) { throw new IllegalArgumentException("parameter can not be null for CURIEs"); } StringBuffer aRet = new StringBuffer(); Iterator<CURIE> aIter = curies.iterator(); while (aIter.hasNext()) { if (aRet.length() > 0) { aRet.append(' '); } String aCurie = aIter.next().toString(); aRet.append(aCurie); } mCURIEs = aRet.toString(); }
/** * Returns a CURIE instance representing the specified String value * * @param stringValue * a String value * @return return a CURIE instance representing stringValue * @throws IllegalArgumentException if the given argument is not a valid CURIE */ public static CURIE valueOf(String stringValue) throws IllegalArgumentException { return new CURIE(stringValue); }
/** * Construct CURIE by the parsing the given string * * @param curie * The String to be parsed into CURIE * @throws IllegalArgumentException if the given argument is not a valid CURIE */ public CURIE(String curie) throws IllegalArgumentException { if (!isValid(curie)){ throw new IllegalArgumentException("parameter is invalid for datatype CURIE"); } mCURIE = curie; }
/** * Returns a list of CURIE from the CURIEs Object * * @return a list of CURIE */ public List<CURIE> getCURIEList() { List<CURIE> aRet = new ArrayList<CURIE>(); String[] names = mCURIEs.split(" "); for (int i = 0; i < names.length; i++) { aRet.add(new CURIE(names[i])); } return aRet; }
/** * check if the specified String is a valid {@odf.datatype CURIEs} data type * * @param stringValue * the value to be tested * @return true if the value of argument is valid for {@odf.datatype CURIEs} data type false * otherwise */ public static boolean isValid(String stringValue) { if (stringValue == null) { return false; } if (stringValue.length() == 0) { return false; } String[] names = stringValue.split(" "); for (int i = 0; i < names.length; i++) { if (!CURIE.isValid(names[i])) { return false; } } return true; } }
/** * Returns a list of CURIE from the CURIEs Object * * @return a list of CURIE */ public List<CURIE> getCURIEList() { List<CURIE> aRet = new ArrayList<CURIE>(); String[] names = mCURIEs.split(" "); for (int i = 0; i < names.length; i++) { aRet.add(new CURIE(names[i])); } return aRet; }
/** * check if the specified String is a valid {@odf.datatype CURIEs} data type * * @param stringValue * the value to be tested * @return true if the value of argument is valid for {@odf.datatype CURIEs} data type false * otherwise */ public static boolean isValid(String stringValue) { if (stringValue == null) { return false; } if (stringValue.length() == 0) { return false; } String[] names = stringValue.split(" "); for (int i = 0; i < names.length; i++) { if (!CURIE.isValid(names[i])) { return false; } } return true; } }
/** * Returns a list of CURIE from the CURIEs Object * * @return a list of CURIE */ public List<CURIE> getCURIEList() { List<CURIE> aRet = new ArrayList<CURIE>(); String[] names = mCURIEs.split(" "); for (int i = 0; i < names.length; i++) { aRet.add(new CURIE(names[i])); } return aRet; }
/** * check if the specified String is a valid {@odf.datatype CURIEs} data type * * @param stringValue * the value to be tested * @return true if the value of argument is valid for {@odf.datatype CURIEs} data type false * otherwise */ public static boolean isValid(String stringValue) { if (stringValue == null) { return false; } if (stringValue.length() == 0) { return false; } String[] names = stringValue.split(" "); for (int i = 0; i < names.length; i++) { if (!CURIE.isValid(names[i])) { return false; } } return true; } }
/** * 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); }