Examples of AtomText


Examples of org.apache.wink.common.model.atom.AtomText

        AtomContent content = new AtomContent();
        content.setValue(this.content);
        content.setType("text");
        entry.setContent(content);
        entry.getAuthors().add(this.author.toAtomPerson());
        entry.setTitle(new AtomText(this.title));
        return entry;
    }
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomText

    private AppWorkspace getWorkspace(String id) {
        AppWorkspace ws = new AppWorkspace();
        ws.setLang("en-us");
        ws.setBase("http://base/workspace");
        ws.setTitle(new AtomText("workspace" + id));
        ws.getOtherAttributes().put(new QName("anyAttirbWorkspace"), "anyAttribValueWorkspace");

        ws.getCollection().add(getCollection("1"));
        ws.getCollection().add(getCollection("2"));
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomText

    private AppCollection getCollection(String id) {
        AppCollection col = new AppCollection();
        col.setLang("en-us");
        col.setBase("http://base/collection");
        col.setTitle(new AtomText("collection" + id));
        col.getOtherAttributes().put(new QName("anyAttirbCollection"), "anyAttribValueCollection");
        col.setHref("href" + id);

        AppAccept accept1 = new AppAccept();
        accept1.setValue("accept1");
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomText

            String type = content.getType();
            if (ModelUtils.isTypeXml(type)) {
                return true;
            }
        } else if (source instanceof AtomText) {
            AtomText text = (AtomText)source;
            AtomTextType type = text.getType();
            if (type == AtomTextType.xhtml) {
                return true;
            }
        }
        return false;
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomText

    private AppWorkspace getWorkspace(String id) {
        AppWorkspace ws = new AppWorkspace();
        ws.setLang("en-us");
        ws.setBase("http://base/workspace");
        ws.setTitle(new AtomText("workspace" + id));
        ws.getOtherAttributes().put(new QName("anyAttirbWorkspace"), "anyAttribValueWorkspace");

        ws.getCollection().add(getCollection("1"));
        ws.getCollection().add(getCollection("2"));
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomText

    private AppCollection getCollection(String id) {
        AppCollection col = new AppCollection();
        col.setLang("en-us");
        col.setBase("http://base/collection");
        col.setTitle(new AtomText("collection" + id));
        col.getOtherAttributes().put(new QName("anyAttirbCollection"), "anyAttribValueCollection");
        col.setHref("href" + id);

        AppAccept accept1 = new AppAccept();
        accept1.setValue("accept1");
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomText

    }

    public AtomEntry toAtomEntry(UriInfo uriInfo) {
        AtomEntry entry = new AtomEntry();
        entry.setId("" + this.id);
        entry.setTitle(new AtomText(this.title));
        entry.setUpdated(this.updated);
        entry.getAuthors().add(author.toAtomPerson());
        AtomContent content = new AtomContent();
        content.setType("text");
        content.setValue(this.posting);
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomText

    }

    public AtomFeed toAtomFeed(UriInfo uriInfo) {
        AtomFeed feed = new AtomFeed();
        feed.setId(id+"");
        feed.setTitle(new AtomText(title));
        feed.setUpdated(updated);
        Set<Integer> ids = entries.keySet();
        List<Integer> idList = new ArrayList<Integer>(ids);
        Collections.sort(idList);
        AtomLink link = null;
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomText

        AtomContent content = new AtomContent();
        content.setValue(this.content);
        content.setType("text");
        entry.setContent(content);
        entry.getAuthors().add(this.author.toAtomPerson());
        entry.setTitle(new AtomText(this.title));
        return entry;
    }
View Full Code Here

Examples of org.apache.wink.common.model.atom.AtomText

    @GET
    @Produces("application/atom+xml")
    public AtomFeed getBlogs() {
        AtomFeed ret = new AtomFeed();
        ret.setId(BlogService.ID);
        ret.setTitle(new AtomText(BlogService.ID));
        AtomLink link = null;
        for(int i = 0; i < BlogService.blogs.size(); ++i) {
            link = new AtomLink();
            link.setHref(baseUri.getAbsolutePath() + "/blogs/" + i);
            link.setTitle(BlogService.blogs.get(i).getTitle());
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.