Examples of DCSubject


Examples of com.rometools.rome.feed.module.DCSubject

                final String taxonomy = getTaxonomy(description);

                final List<Element> values = description.getChildren("value", getRDFNamespace());
                for (final Element value : values) {

                    final DCSubject subject = new DCSubjectImpl();
                    subject.setTaxonomyUri(taxonomy);
                    subject.setValue(value.getText());
                    subjects.add(subject);

                }

            } else {
                final DCSubject subject = new DCSubjectImpl();
                subject.setValue(eSubject.getText());
                subjects.add(subject);
            }
        }

        return subjects;
View Full Code Here

Examples of com.rometools.rome.feed.module.DCSubject

     *
     */
    @Override
    public SyndCategory set(final int index, final SyndCategory obj) {
        final SyndCategoryImpl sCat = (SyndCategoryImpl) obj;
        DCSubject subject;
        if (sCat != null) {
            subject = sCat.getSubject();
        } else {
            subject = null;
        }
View Full Code Here

Examples of com.rometools.rome.feed.module.DCSubject

     *
     */
    @Override
    public void add(final int index, final SyndCategory obj) {
        final SyndCategoryImpl sCat = (SyndCategoryImpl) obj;
        DCSubject subject;
        if (sCat != null) {
            subject = sCat.getSubject();
        } else {
            subject = null;
        }
View Full Code Here

Examples of com.rometools.rome.feed.module.DCSubject

     * @return the SyndCategoryImpl being removed from position index, <b>null</b> if none.
     *
     */
    @Override
    public SyndCategory remove(final int index) {
        final DCSubject subject = subjects.remove(index);
        if (subject != null) {
            return new SyndCategoryImpl(subject);
        } else {
            return null;
        }
View Full Code Here

Examples of com.rometools.rome.feed.module.DCSubject

        List<DCSubject> sList = null;
        if (cList != null) {
            sList = new ArrayList<DCSubject>();
            for (int i = 0; i < cList.size(); i++) {
                final 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

        } 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

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

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

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

        return (clonedSubject != null) ? new SyndCategoryImpl(clonedSubject) : 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;
        DCSubject clonedSubject = new DCSubjectImpl();
        clonedSubject.copyFrom(subject);
        _subjects.add(index, clonedSubject);
    }
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
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.