Package org.apache.abdera.model

Examples of org.apache.abdera.model.Entry.addContributor()


        // process contributor
        // TODO person
        Object contributorProperty = ScriptableObject.getProperty(nativeEntry, "contributor");
        if (contributorProperty instanceof String) {
            entry.addContributor((String) (contributorProperty));
        }
        Object contributorsProperty = ScriptableObject.getProperty(nativeEntry, "contributors");
        if (contributorsProperty instanceof String) {
            String contributorsString = (String) (contributorsProperty);
            String[] contributors = contributorsString.split(",");
View Full Code Here


        Object contributorsProperty = ScriptableObject.getProperty(nativeEntry, "contributors");
        if (contributorsProperty instanceof String) {
            String contributorsString = (String) (contributorsProperty);
            String[] contributors = contributorsString.split(",");
            for (int i = 0; i < contributors.length; i++) {
                entry.addContributor(contributors[i]);
            }
        }

        // process id
        Object idProperty = ScriptableObject.getProperty(nativeEntry, "id");
View Full Code Here

            else if (argName.equals("contributor"))
            {
                Object author = arg.evaluate(message);
                if (author instanceof Person)
                {
                    entry.addContributor((Person) author);
                }
                else
                {
                    entry.addContributor(author.toString());
                }
View Full Code Here

                {
                    entry.addContributor((Person) author);
                }
                else
                {
                    entry.addContributor(author.toString());
                }
            }
            else if (argName.equals("link"))
            {
                Object link = arg.evaluate(message);
View Full Code Here

            else if (argName.equals("contributor"))
            {
                Object author = arg.evaluate(message);
                if (author instanceof Person)
                {
                    entry.addContributor((Person) author);
                }
                else
                {
                    entry.addContributor(author.toString());
                }
View Full Code Here

                {
                    entry.addContributor((Person) author);
                }
                else
                {
                    entry.addContributor(author.toString());
                }
            }
            else if (argName.equals("link"))
            {
                Object link = arg.evaluate(message);
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.