/** * Construct IDREFS by the parsing the given IDREF list * * @param idRefList * The String to be parsed into IDREFS * @throws IllegalArgumentException if the given argument is not a valid IDREFS */ public IDREFS(List<IDREF> idRefList) throws IllegalArgumentException { if ((idRefList == null) || (idRefList.size() == 0)) { throw new IllegalArgumentException( "parameter can not be null for IDREFS"); } StringBuffer aRet = new StringBuffer(); Iterator<IDREF> aIter = idRefList.iterator(); while (aIter.hasNext()) { if (aRet.length() > 0) { aRet.append(' '); } String styleName = aIter.next().toString(); aRet.append(styleName); } mIdRefs = aRet.toString(); }
/** * Construct IDREFS by the parsing the given IDREF list * * @param idRefList * The String to be parsed into IDREFS * @throws IllegalArgumentException if the given argument is not a valid IDREFS */ public IDREFS(List<IDREF> idRefList) throws IllegalArgumentException { if ((idRefList == null) || (idRefList.size() == 0)) { throw new IllegalArgumentException( "parameter can not be null for IDREFS"); } StringBuffer aRet = new StringBuffer(); Iterator<IDREF> aIter = idRefList.iterator(); while (aIter.hasNext()) { if (aRet.length() > 0) { aRet.append(' '); } String styleName = aIter.next().toString(); aRet.append(styleName); } mIdRefs = aRet.toString(); }
/** * Construct IDREFS by the parsing the given IDREF list * * @param idRefList * The String to be parsed into IDREFS * @throws IllegalArgumentException if the given argument is not a valid IDREFS */ public IDREFS(List<IDREF> idRefList) throws IllegalArgumentException { if ((idRefList == null) || (idRefList.size() == 0)) { throw new IllegalArgumentException( "parameter can not be null for IDREFS"); } StringBuffer aRet = new StringBuffer(); Iterator<IDREF> aIter = idRefList.iterator(); while (aIter.hasNext()) { if (aRet.length() > 0) { aRet.append(' '); } String styleName = aIter.next().toString(); aRet.append(styleName); } mIdRefs = aRet.toString(); }