Package org.apache.cxf.jaxrs.ext.atom

Examples of org.apache.cxf.jaxrs.ext.atom.AbstractEntryBuilder


            return;
        }
       
        setCommonElementProperties(factory, entry, builder, o);
       
        AbstractEntryBuilder theBuilder = (AbstractEntryBuilder)builder;
        String author = theBuilder.getAuthor(o);
        if (author != null) {
            entry.addAuthor(author);
        } else {
            entry.addAuthor("CXF JAX-RS");
        }
        String title = theBuilder.getTitle(o);
        if (title != null) {
            entry.setTitle(title);
        } else {
            entry.setTitle(o.getClass().getSimpleName());
        }
       
        String id = theBuilder.getId(o);
        if (id != null) {
            entry.setId(id);
        } else {
            entry.setId("uuid:" + UUID.randomUUID().toString());
        }
        String updated = theBuilder.getUpdated(o);
        if (updated != null) {
            entry.setUpdated(updated);
        } else {
            entry.setUpdated(new Date());
        }
       
        Map<String, String> links = theBuilder.getLinks(o);
        if (links != null) {
            for (Map.Entry<String, String> e : links.entrySet()) {
                entry.addLink(e.getKey(), e.getValue());
            }
        }
       
        // entry specific
       
        String published = theBuilder.getPublished(o);
        if (published != null) {
            entry.setPublished(published);   
        }
       
        String summary = theBuilder.getSummary(o);
        if (summary != null) {
            entry.setSummary(summary);   
        }
       
        List<String> terms = theBuilder.getCategories(o);
        if (terms != null) {
            for (String term : terms) {
                entry.addCategory(term);
            }
        }
View Full Code Here


            return;
        }
       
        setCommonElementProperties(factory, entry, builder, o);
       
        AbstractEntryBuilder theBuilder = (AbstractEntryBuilder)builder;
        String author = theBuilder.getAuthor(o);
        if (author != null) {
            entry.addAuthor(author);
        } else {
            entry.addAuthor("CXF JAX-RS");
        }
        String title = theBuilder.getTitle(o);
        if (title != null) {
            entry.setTitle(title);
        } else {
            entry.setTitle(o.getClass().getSimpleName());
        }
       
        String id = theBuilder.getId(o);
        if (id != null) {
            entry.setId(id);
        } else {
            entry.setId("uuid:" + UUID.randomUUID().toString());
        }
        String updated = theBuilder.getUpdated(o);
        if (updated != null) {
            entry.setUpdated(updated);
        } else {
            entry.setUpdated(new Date());
        }
       
        Map<String, String> links = theBuilder.getLinks(o);
        if (links != null) {
            for (Map.Entry<String, String> e : links.entrySet()) {
                entry.addLink(e.getKey(), e.getValue());
            }
        }
       
        // entry specific
       
        String published = theBuilder.getPublished(o);
        if (published != null) {
            entry.setPublished(published);   
        }
       
        String summary = theBuilder.getSummary(o);
        if (summary != null) {
            entry.setSummary(summary);   
        }
       
        List<String> terms = theBuilder.getCategories(o);
        if (terms != null) {
            for (String term : terms) {
                entry.addCategory(term);
            }
        }
View Full Code Here

            return;
        }
       
        setCommonElementProperties(factory, entry, builder, o);
       
        AbstractEntryBuilder theBuilder = (AbstractEntryBuilder)builder;
        String author = theBuilder.getAuthor(o);
        if (author != null) {
            entry.addAuthor(author);
        } else {
            entry.addAuthor("CXF JAX-RS");
        }
        String title = theBuilder.getTitle(o);
        if (title != null) {
            entry.setTitle(title);
        } else {
            entry.setTitle(o.getClass().getSimpleName());
        }
       
        String id = theBuilder.getId(o);
        if (id != null) {
            entry.setId(id);
        } else {
            entry.setId("uuid:" + UUID.randomUUID().toString());
        }
        String updated = theBuilder.getUpdated(o);
        if (updated != null) {
            entry.setUpdated(updated);
        } else {
            entry.setUpdated(new Date());
        }
       
        Map<String, String> links = theBuilder.getLinks(o);
        if (links != null) {
            for (Map.Entry<String, String> e : links.entrySet()) {
                entry.addLink(e.getKey(), e.getValue());
            }
        }
       
        // entry specific
       
        String published = theBuilder.getPublished(o);
        if (published != null) {
            entry.setPublished(published);   
        }
       
        String summary = theBuilder.getSummary(o);
        if (summary != null) {
            entry.setSummary(summary);   
        }
       
        List<String> terms = theBuilder.getCategories(o);
        if (terms != null) {
            for (String term : terms) {
                entry.addCategory(term);
            }
        }
View Full Code Here

            return;
        }
       
        setCommonElementProperties(factory, entry, builder, o);
       
        AbstractEntryBuilder theBuilder = (AbstractEntryBuilder)builder;
        String author = theBuilder.getAuthor(o);
        if (author != null) {
            entry.addAuthor(author);
        } else {
            entry.addAuthor("CXF JAX-RS");
        }
        String title = theBuilder.getTitle(o);
        if (title != null) {
            entry.setTitle(title);
        } else {
            entry.setTitle(o.getClass().getSimpleName());
        }
       
        String id = theBuilder.getId(o);
        if (id != null) {
            entry.setId(id);
        } else {
            entry.setId("uuid:" + UUID.randomUUID().toString());
        }
        String updated = theBuilder.getUpdated(o);
        if (updated != null) {
            entry.setUpdated(updated);
        } else {
            entry.setUpdated(new Date());
        }
       
        Map<String, String> links = theBuilder.getLinks(o);
        if (links != null) {
            for (Map.Entry<String, String> e : links.entrySet()) {
                entry.addLink(e.getKey(), e.getValue());
            }
        }
       
        // entry specific
       
        String published = theBuilder.getPublished(o);
        if (published != null) {
            entry.setPublished(published);   
        }
       
        String summary = theBuilder.getSummary(o);
        if (summary != null) {
            entry.setSummary(summary);   
        }
       
        List<String> terms = theBuilder.getCategories(o);
        if (terms != null) {
            for (String term : terms) {
                entry.addCategory(term);
            }
        }
View Full Code Here

            return;
        }
       
        setCommonElementProperties(factory, entry, builder, o);
       
        AbstractEntryBuilder theBuilder = (AbstractEntryBuilder)builder;
        String author = theBuilder.getAuthor(o);
        if (author != null) {
            entry.addAuthor(author);
        } else {
            entry.addAuthor("CXF JAX-RS");
        }
        String title = theBuilder.getTitle(o);
        if (title != null) {
            entry.setTitle(title);
        } else {
            entry.setTitle(o.getClass().getSimpleName());
        }
       
        String id = theBuilder.getId(o);
        if (id != null) {
            entry.setId(id);
        } else {
            entry.setId("uuid:" + UUID.randomUUID().toString());
        }
        String updated = theBuilder.getUpdated(o);
        if (updated != null) {
            entry.setUpdated(updated);
        } else {
            entry.setUpdated(new Date());
        }
       
        Map<String, String> links = theBuilder.getLinks(o);
        if (links != null) {
            for (Map.Entry<String, String> e : links.entrySet()) {
                entry.addLink(e.getKey(), e.getValue());
            }
        }
       
        // entry specific
       
        String published = theBuilder.getPublished(o);
        if (published != null) {
            entry.setPublished(published);   
        }
       
        String summary = theBuilder.getSummary(o);
        if (summary != null) {
            entry.setSummary(summary);   
        }
       
        List<String> terms = theBuilder.getCategories(o);
        if (terms != null) {
            for (String term : terms) {
                entry.addCategory(term);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.cxf.jaxrs.ext.atom.AbstractEntryBuilder

Copyright © 2018 www.massapicom. 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.