Examples of XBELListAnnotation


Examples of org.openbel.bel.xbel.model.XBELListAnnotation

        String value = t.getValue();

        switch (type) {
        case ENUMERATION:
            List<String> enums = t.getEnums();
            XBELListAnnotation xla = new XBELListAnnotation();
            List<String> xlaval = xla.getListValue();
            xlaval.addAll(enums);
            dest.setListAnnotation(xla);
            break;
        case REGULAR_EXPRESSION:
            dest.setPatternAnnotation(value);
View Full Code Here

Examples of org.openbel.bel.xbel.model.XBELListAnnotation

        String id = t.getId();
        String use = t.getUsage();

        AnnotationDefinition dest = null;
        if (t.isSetListAnnotation()) {
            XBELListAnnotation listAnnotation = t.getListAnnotation();
            List<String> vals = listAnnotation.getListValue();
            dest = new AnnotationDefinition(id, desc, use, vals);
        } else if (t.isSetPatternAnnotation()) {
            String regex = t.getPatternAnnotation();
            dest = new AnnotationDefinition(id, REGULAR_EXPRESSION, desc, use);
            dest.setValue(regex);
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.