Package org.sbml.jsbml

Examples of org.sbml.jsbml.Annotation


      Object contextObject) {
   
    // The namespace of this parser is declared in a RDF subnode of an annotation.
    // adds the namespace to the RDFAnnotationNamespaces HashMap of annotation.
    if (elementName.equals("RDF") && contextObject instanceof Annotation){
      Annotation annotation = (Annotation) contextObject;
     
      annotation.addRDFAnnotationNamespace(localName, prefix, URI);
    }
  }
View Full Code Here


    // A CreatorParser can only modify a contextObject which is an Annotation instance.
    // The namespace of this parser should be associated with the creator subnode of an annotation.
    // Creates a ModelHistory instance and set the modelHistory of annotation.
    if (elementName.equals("creator") && contextObject instanceof Annotation){
      Annotation annotation = (Annotation) contextObject;
      History modelHistory = new History();
      annotation.setHistory(modelHistory);
     
      return modelHistory;
    }
    else {
      // TODO : !elementName.equals("creator"), SBML syntax error?
View Full Code Here

    // The namespace of this parser should be declared in a 'RDF' subNode of
    // an annotation.
    // Sets the namespace to the RDFAnnotationNamespaces HashMap of
    // annotation.
    if (elementName.equals("RDF") && contextObject instanceof Annotation) {
      Annotation annotation = (Annotation) contextObject;

      annotation.addRDFAnnotationNamespace(localName, prefix, URI);
    }
  }
View Full Code Here

    logger.debug("processStartElement : " + elementName);
   
    // When this parser read a starting element tag, it can modify a
    // contextObject which is an Annotation instance.
    if (contextObject instanceof Annotation) {
      Annotation annotation = (Annotation) contextObject;

      if (!annotation.isSetHistory()) {
        annotation.setHistory(new History());
      }
     
      if (annotation.isSetHistory()) {
        History history = annotation.getHistory();

        // If the localName of the node is 'created' and if it has not
        // been read yet,
        // the previousElement of this parser is set to 'created' and
        // hasReadCreated is set
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.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.