Package org.openbel.framework.common.model

Examples of org.openbel.framework.common.model.Citation


     *
     * @param statement {@link Statement}
     */
    protected void attachExpansionRuleCitation(Statement statement) {
        AnnotationGroup ag = new AnnotationGroup();
        Citation citation = getInstance().createCitation(getName());
        citation.setType(CitationType.OTHER);
        citation.setReference(getName());
        ag.setCitation(citation);
        statement.setAnnotationGroup(ag);
    }
View Full Code Here


    @Override
    public XBELAnnotationGroup convert(AnnotationGroup source) {
        if (source == null) return null;

        List<Annotation> annotations = source.getAnnotations();
        Citation citation = source.getCitation();
        Evidence evidence = source.getEvidence();

        XBELAnnotationGroup xag = new XBELAnnotationGroup();
        List<Object> list = xag.getAnnotationOrEvidenceOrCitation();
View Full Code Here

    public Citation convert(BELCitation bc) {
        if (bc == null) {
            return null;
        }

        Citation c = CommonModelFactory.getInstance().createCitation(
                bc.getName());

        if (bc.getPublicationDate() != null) {
            Calendar date = Calendar.getInstance();
            date.setTime(bc.getPublicationDate());

            c.setDate(date);
        }

        c.setAuthors(bc.getAuthors());
        c.setComment(bc.getComment());
        c.setReference(bc.getReference());
        c.setType(CitationType.fromString(bc.getType()));

        return c;
    }
View Full Code Here

        }

        String name = source.getName();

        // Destination type
        Citation dest = CommonModelFactory.getInstance().createCitation(name);

        Calendar date = source.getDate();
        dest.setDate(date);

        String comment = source.getComment();
        dest.setComment(comment);

        String reference = source.getReference();
        dest.setReference(reference);

        CitationType type = source.getType();
        if (type != null) {
            dest.setType(fromString(type.value()));
        }

        if (source.isSetAuthorGroup()) {
            List<String> author = source.getAuthorGroup().getAuthor();
            dest.setAuthors(author);
        }

        return dest;
    }
View Full Code Here

TOP

Related Classes of org.openbel.framework.common.model.Citation

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.