Package com.sun.syndication.feed.module

Examples of com.sun.syndication.feed.module.DCSubject


        } else
        {
            DCModule dc = (DCModule)anEntry.getModule(DCModule.URI);
            if (dc != null)
            {
                DCSubject dcSubject = dc.getSubject();
                if (dcSubject != null) subject = dcSubject.getValue();
            }
        }
        item.setSubject(subject);

        return item;
View Full Code Here


     * @param index the index position to retrieve the category.
     * @return the SyndCategoryImpl in position index, <b>null</b> if none.
     *
     */
    public Object get(int index) {
        DCSubject cloneSubject = new DCSubjectImpl();
        cloneSubject.copyFrom(_subjects.get(index));
        return new SyndCategoryImpl(cloneSubject);
    }
View Full Code Here

     * @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;
        DCSubject clonedSubject = new DCSubjectImpl();
        clonedSubject.copyFrom(subject);
        clonedSubject = (DCSubject) _subjects.set(index, clonedSubject);

        return (clonedSubject != null) ? new SyndCategoryImpl(clonedSubject) : null;
    }
View Full Code Here

    * @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;
        DCSubject clonedSubject = new DCSubjectImpl();
        clonedSubject.copyFrom(subject);
        _subjects.add(index, clonedSubject);
    }
View Full Code Here

     * @param index position to remove the category from.
     * @return the SyndCategoryImpl being removed from position index, <b>null</b> if none.
     *
     */
    public Object remove(int index) {
        DCSubject subject = (DCSubject) _subjects.remove(index);

        return (subject != null) ? new SyndCategoryImpl(subject) : null;
    }
View Full Code Here

            if (eDesc != null) {
                String taxonomy = getTaxonomy(eDesc);
                List eValues = eDesc.getChildren("value", getRDFNamespace());
                for (Iterator v = eValues.iterator(); v.hasNext();) {
                    Element eValue = (Element) v.next();
                    DCSubject subject = new DCSubjectImpl();
                    subject.setTaxonomyUri(taxonomy);
                    subject.setValue(eValue.getText());
                    subjects.add(subject);
                }
            } else {
                DCSubject subject = new DCSubjectImpl();
                subject.setValue(eSubject.getText());
                subjects.add(subject);
            }
        }

        return subjects;
View Full Code Here

     * @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;
    }
View Full Code Here

    * @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);
    }
View Full Code Here

     * @param index position to remove the category from.
     * @return the SyndCategoryImpl being removed from position index, <b>null</b> if none.
     *
     */
    public Object remove(int index) {
        DCSubject subject = (DCSubject) _subjects.remove(index);
        return (subject!=null) ? new SyndCategoryImpl(subject) : null;
    }
View Full Code Here

        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);
            }
View Full Code Here

TOP

Related Classes of com.sun.syndication.feed.module.DCSubject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.