Examples of readAttribute()


Examples of org.sbml.jsbml.Annotation.readAttribute()

    // A SBMLCoreParser can modify a contextObject which is an instance of
    // Annotation.
    // Try to read the attributes.
    else if (contextObject instanceof Annotation) {
      Annotation annotation = (Annotation) contextObject;
      isAttributeRead = annotation.readAttribute(attributeName, prefix,
          value);
    } else if (contextObject instanceof ASTNode) {
      ASTNode astNode = (ASTNode) contextObject;
     
      try {
View Full Code Here

Examples of org.sbml.jsbml.Annotation.readAttribute()

    // A RDFAnnotationParser can modify a contextObject which is an Annotation instance.
    // The annotation element can contain other attributes. Try to read them.
    if (contextObject instanceof Annotation){
      Annotation modelAnnotation = (Annotation) contextObject;
      isReadAttribute = modelAnnotation.readAttribute(attributeName, prefix, value);
    }
    // A RDFAnnotationParser can modify a contextObject which is an ModelHistory instance.
    // When this parser is parsing the model history, some rdf attributes can appear. Try to
    // read them.
    else if (contextObject instanceof History){
View Full Code Here

Examples of org.sbml.jsbml.Annotation.readAttribute()

      } catch (Throwable exc) {
        System.err.println(exc.getMessage());
      }
    } else if (contextObject instanceof Annotation) {
      Annotation annotation = (Annotation) contextObject;
      isAttributeRead = annotation.readAttribute(attributeName, prefix,
          value);
    }

    if (!isAttributeRead) {
      // TODO : throw new SBMLException ("The attribute " + attributeName
View Full Code Here

Examples of org.sbml.jsbml.Annotation.readAttribute()

      } catch (Throwable exc) {
        System.err.println(exc.getMessage());
      }
    } else if (contextObject instanceof Annotation) {
      Annotation annotation = (Annotation) contextObject;
      isAttributeRead = annotation.readAttribute(attributeName, prefix,
        value);
    } else if (contextObject instanceof SBasePlugin) {
      isAttributeRead = ((SBasePlugin) contextObject).readAttribute(
        attributeName, prefix, value);
    }
View Full Code Here

Examples of org.sbml.jsbml.Annotation.readAttribute()

    // A SBMLCoreParser can modify a contextObject which is an instance of
    // Annotation.
    // Try to read the attributes.
    else if (contextObject instanceof Annotation) {
      Annotation annotation = (Annotation) contextObject;
      isAttributeRead = annotation.readAttribute(attributeName, prefix,
          value);
    } else if (contextObject instanceof ASTNode) {
      ASTNode astNode = (ASTNode) contextObject;
     
      try {
View Full Code Here

Examples of org.sbml.jsbml.CVTerm.readAttribute()

    // When this parser is parsing the rdf annotation, some rdf attributes can appear. Try to
    // read them.
    else if (contextObject instanceof CVTerm && previousElements.containsKey("CVTerm")) {
      if (previousElements.get("CVTerm").equals("li")) {
        CVTerm cvterm = (CVTerm) contextObject;
        isReadAttribute = cvterm.readAttribute(elementName, attributeName, prefix, value);
      }
    }
   
    if (!isReadAttribute) {
      logger.warn("RDFAnnotationParser : processAttribute : found an unknown attribute '" +
View Full Code Here

Examples of org.sbml.jsbml.CVTerm.readAttribute()

    // When this parser is parsing the rdf annotation, some rdf attributes can appear. Try to
    // read them.
    else if (contextObject instanceof CVTerm && previousElements.containsKey("CVTerm")){
      if (previousElements.get("CVTerm").equals("li")){
        CVTerm cvterm = (CVTerm) contextObject;
        isReadAttribute = cvterm.readAttribute(elementName, attributeName, prefix, value);
      }
    }
   
    if (!isReadAttribute){
      logger.warn("RDFAnnotationParser : processAttribute : found an unknown attribute '" +
View Full Code Here

Examples of org.sbml.jsbml.CVTerm.readAttribute()

    // When this parser is parsing the rdf annotation, some rdf attributes can appear. Try to
    // read them.
    else if (contextObject instanceof CVTerm && previousElements.containsKey("CVTerm")){
      if (previousElements.get("CVTerm").equals("li")){
        CVTerm cvterm = (CVTerm) contextObject;
        isReadAttribute = cvterm.readAttribute(elementName, attributeName, prefix, value);
      }
    }
   
    if (!isReadAttribute){
      logger.warn("RDFAnnotationParser : processAttribute : found an unknown attribute '" +
View Full Code Here

Examples of org.sbml.jsbml.Creator.readAttribute()

    // When this parser is parsing the model history, some rdf attributes can appear. Try to
    // read them.
    else if (contextObject instanceof Creator && previousElements.containsKey("creator")) {
      if (previousElements.get("creator").equals("li")) {
        Creator modelCreator = (Creator) contextObject;
        isReadAttribute = modelCreator.readAttribute(elementName, attributeName, prefix, value);
      }
    }
    // A RDFAnnotationParser can modify a contextObject which is an CVTerm instance.
    // If the contextObject is a CVTerm instance, the rdf attributes should appear in the
    // 'li' subelement of the 'Bag' subelement of the 'Miriam-Qualifier' node.
View Full Code Here

Examples of org.sbml.jsbml.Creator.readAttribute()

    // When this parser is parsing the model history, some rdf attributes can appear. Try to
    // read them.
    else if (contextObject instanceof Creator && previousElements.containsKey("creator")){
      if (previousElements.get("creator").equals("li")){
        Creator modelCreator = (Creator) contextObject;
        isReadAttribute = modelCreator.readAttribute(elementName, attributeName, prefix, value);
      }
    }
    // A RDFAnnotationParser can modify a contextObject which is an CVTerm instance.
    // If the contextObject is a CVTerm instance, the rdf attributes should appear in the
    // 'li' subelement of the 'Bag' subelement of the 'Miriam-Qualifier' node.
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.