Package org.openbel.framework.common.model

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


        }

        List<String> values = new ArrayList<String>();
        AnnotationDefinition ad = null;
        for (int i = 0; i < a.size(); i++) {
            Annotation ann = a.get(i);
            if (i == 0) {
                ad = ann.getDefinition();
            } else if (ad != null && !ad.equals(ann.getDefinition())) {
                throw new IllegalStateException(
                        "annotations must have equal definitions.");
            }

            values.add(ann.getValue());
        }

        return new BELAnnotation(badc.convert(ad), values);
    }
View Full Code Here


                        UNRESOLVED_ANNOTATION_DEFINITION_DESCRIPTION,
                        UNRESOLVED_ANNOTATION_DEFINITION_USAGE,
                        UNRESOLVED_ANNOTATION_DEFINITION_VALUE);

        // Destination type
        final Annotation dest = CommonModelFactory.getInstance()
                .createAnnotation(value, ad);
        return dest;
    }
View Full Code Here

TOP

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

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.