/** * Adds a category to the list. * <p> * @param index position to add the category. * @param obj the SyndCategoryImpl object to add. * */ public void add(int index,Object obj) { SyndCategoryImpl sCat = (SyndCategoryImpl) obj; DCSubject subject = (sCat!=null) ? sCat.getSubject() : null; _subjects.add(index,subject); }
/** * Adds a category to the list. * <p> * @param index position to add the category. * @param obj the SyndCategoryImpl object to add. * */ public void add(int index,Object obj) { SyndCategoryImpl sCat = (SyndCategoryImpl) obj; DCSubject subject = (sCat!=null) ? sCat.getSubject() : null; _subjects.add(index,subject); }
/** * Adds a category to the list. * <p> * @param index position to add the category. * @param obj the SyndCategoryImpl object to add. * */ @Override public void add(int index,SyndCategory obj) { SyndCategoryImpl sCat = (SyndCategoryImpl) obj; DCSubject subject = (sCat!=null) ? sCat.getSubject() : null; _subjects.add(index,subject); }
/** * Adds a category to the list. * <p> * @param index position to add the category. * @param obj the SyndCategoryImpl object to add. * */ @Override public void add(int index,SyndCategory obj) { SyndCategoryImpl sCat = (SyndCategoryImpl) obj; DCSubject subject = (sCat!=null) ? sCat.getSubject() : null; _subjects.add(index,subject); }
/** * Sets a category in an existing position in the list. * <p> * @param index position to set the category. * @param obj the SyndCategoryImpl object to set. * @return the SyndCategoryImpl object that is being replaced, <b>null</b> if none. * */ public Object set(int index,Object obj) { SyndCategoryImpl sCat = (SyndCategoryImpl) obj; DCSubject subject = (sCat!=null) ? sCat.getSubject() : null; subject = (DCSubject) _subjects.set(index,subject); return (subject!=null) ? new SyndCategoryImpl(subject) : null; }
/** * Returns a list with the DCSubject elements of the SyndCategoryImpl list facade. * To be used by the SyndFeedImpl class only. * <p> * @param cList the list with SyndCategoryImpl elements to convert to subject list. * @return a list with DCSubject elements corresponding to the categories in the given list. * */ public static List<DCSubject> convertElementsSyndCategoryToSubject(List<SyndCategory> cList) { List<DCSubject> sList = null; if (cList!=null) { sList = new ArrayList(); for (SyndCategory aCList : cList) { SyndCategoryImpl sCat = (SyndCategoryImpl) aCList; DCSubject subject = null; if (sCat != null) { subject = sCat.getSubject(); } sList.add(subject); } } return sList; }
/** * Sets a category in an existing position in the list. * <p> * @param index position to set the category. * @param obj the SyndCategoryImpl object to set. * @return the SyndCategoryImpl object that is being replaced, <b>null</b> if none. * */ @Override public SyndCategory set(int index, SyndCategory obj) { SyndCategoryImpl sCat = (SyndCategoryImpl) obj; DCSubject subject = (sCat!=null) ? sCat.getSubject() : null; subject = (DCSubject) _subjects.set(index,subject); return (subject!=null) ? new SyndCategoryImpl(subject) : null; }
/** * Returns a list with the DCSubject elements of the SyndCategoryImpl list facade. * To be used by the SyndFeedImpl class only. * <p> * @param cList the list with SyndCategoryImpl elements to convert to subject list. * @return a list with DCSubject elements corresponding to the categories in the given list. * */ public static List convertElementsSyndCategoryToSubject(List cList) { List sList = null; if (cList!=null) { sList = new ArrayList(); for (int i=0;i<cList.size();i++) { SyndCategoryImpl sCat = (SyndCategoryImpl) cList.get(i); DCSubject subject = null; if (sCat!=null) { subject = sCat.getSubject(); } sList.add(subject); } } return sList; }
/** * Sets a category in an existing position in the list. * <p> * @param index position to set the category. * @param obj the SyndCategoryImpl object to set. * @return the SyndCategoryImpl object that is being replaced, <b>null</b> if none. * */ public Object set(int index,Object obj) { SyndCategoryImpl sCat = (SyndCategoryImpl) obj; DCSubject subject = (sCat!=null) ? sCat.getSubject() : null; subject = (DCSubject) _subjects.set(index,subject); return (subject!=null) ? new SyndCategoryImpl(subject) : null; }
/** * Returns a list with the DCSubject elements of the SyndCategoryImpl list facade. * To be used by the SyndFeedImpl class only. * <p> * @param cList the list with SyndCategoryImpl elements to convert to subject list. * @return a list with DCSubject elements corresponding to the categories in the given list. * */ public static List convertElementsSyndCategoryToSubject(List cList) { List sList = null; if (cList!=null) { sList = new ArrayList(); for (int i=0;i<cList.size();i++) { SyndCategoryImpl sCat = (SyndCategoryImpl) cList.get(i); DCSubject subject = null; if (sCat!=null) { subject = sCat.getSubject(); } sList.add(subject); } } return sList; }
/** * Returns a list with the DCSubject elements of the SyndCategoryImpl list facade. * To be used by the SyndFeedImpl class only. * <p> * @param cList the list with SyndCategoryImpl elements to convert to subject list. * @return a list with DCSubject elements corresponding to the categories in the given list. * */ public static List<DCSubject> convertElementsSyndCategoryToSubject(List<SyndCategory> cList) { List<DCSubject> sList = null; if (cList!=null) { sList = new ArrayList(); for (int i=0;i<cList.size();i++) { SyndCategoryImpl sCat = (SyndCategoryImpl) cList.get(i); DCSubject subject = null; if (sCat!=null) { subject = sCat.getSubject(); } sList.add(subject); } } return sList; }
/** * Sets a category in an existing position in the list. * <p> * @param index position to set the category. * @param obj the SyndCategoryImpl object to set. * @return the SyndCategoryImpl object that is being replaced, <b>null</b> if none. * */ @Override public SyndCategory set(int index, SyndCategory obj) { SyndCategoryImpl sCat = (SyndCategoryImpl) obj; DCSubject subject = (sCat!=null) ? sCat.getSubject() : null; subject = (DCSubject) _subjects.set(index,subject); return (subject!=null) ? new SyndCategoryImpl(subject) : null; }