Package com.sun.syndication.feed.module

Examples of com.sun.syndication.feed.module.DCSubject.copyFrom()


     * @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);
    }

    /**
     * Returns the size of the list.
View Full Code Here


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

     */
    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);
    }

    /**
     * Removes a category element from a specific position.
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.