Examples of DCSubject


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

            if (eDesc!=null) {
                String taxonomy = getTaxonomy(eDesc);
                List eValues = eDesc.getChildren("value",Namespace.getNamespace(RDF_URI));
                for (int j=0;j<eValues.size();j++) {
                    Element eValue = (Element) eValues.get(j);
                    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

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

            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

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

            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

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

     * Default constructor. All properties are set to <b>null</b>.
     * <p>
     *
     */
    public SyndCategory() {
        this(new DCSubject());
    }
View Full Code Here

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

     * @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

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

    * @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

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

     * @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

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

        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

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

     * @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

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

    * @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
TOP
Copyright © 2018 www.massapi.com. 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.