Package org.apache.log4j

Examples of org.apache.log4j.Logger.warn()


         
          // Process the attributes
          processAttributes(att, currentNode, sbmlElements, parser, hasAttributes, isInsideAnnotation, isRDFSBMLspecificAnnotation);

        } else {
          logger.warn(String.format("Cannot find a parser for the %s namespace", elementNamespace));       
        }
      } else {
        logger.warn(String.format("Cannot find a parser for the %s namespace", elementNamespace));     
      }
    }
View Full Code Here


        } else {
          logger.warn(String.format("Cannot find a parser for the %s namespace", elementNamespace));       
        }
      } else {
        logger.warn(String.format("Cannot find a parser for the %s namespace", elementNamespace));     
      }
    }
   
    return parser;
  }
View Full Code Here

            namespace.getName().getPrefix(),
            namespace.getName().getLocalPart(),
            hasAttributes, isLastNamespace,
            sbmlElements.peek());
      } else if (namespaceParser == null) {
        logger.warn(String.format("Cannot find a parser for the %s namespace", namespace.getNamespaceURI()));
      }
    }

  }
 
View Full Code Here

            currentNode.getLocalPart(),
            attributeName.getLocalPart(),
            attribute.getValue(), attributeName.getPrefix(),
            isLastAttribute, sbmlElements.peek());
      } else {
        logger.warn("Cannot find a parser for the " + attribute.getName().getNamespaceURI() + " namespace");
      }
    }
  }
 
 
View Full Code Here

            // At the end of a sbml node, the
            // SBMLElements stack must contain only a
            // SBMLDocument instance.
            // Otherwise, there is a syntax error in the
            // SBML document
            logger.warn("!!! event.isEndElement : there is a problem in your SBML file !!!!");
            logger.warn("Found an element '" + sbmlElements.peek().getClass().getCanonicalName() +
                "', expected org.sbml.jsbml.SBMLDocument");
          }
        }
      } else {
View Full Code Here

            // SBMLElements stack must contain only a
            // SBMLDocument instance.
            // Otherwise, there is a syntax error in the
            // SBML document
            logger.warn("!!! event.isEndElement : there is a problem in your SBML file !!!!");
            logger.warn("Found an element '" + sbmlElements.peek().getClass().getCanonicalName() +
                "', expected org.sbml.jsbml.SBMLDocument");
          }
        }
      } else {
        // If SBMLElements.isEmpty => there is a syntax
View Full Code Here

      } else {
        // If SBMLElements.isEmpty => there is a syntax
        // error in the SBMLDocument
        // If parser == null => there is no parser for
        // the namespace of this element
        logger.warn("!!! event.isEndElement : there is a problem in your SBML file !!!!");
        logger.warn("This should never happen, there is probably a problem with the parsers used." +
            "\n Try to check if one needed parser is missing or if you are using a parser in development.");
      }
    } else {
      // The initialized parsers map should be
View Full Code Here

        // If SBMLElements.isEmpty => there is a syntax
        // error in the SBMLDocument
        // If parser == null => there is no parser for
        // the namespace of this element
        logger.warn("!!! event.isEndElement : there is a problem in your SBML file !!!!");
        logger.warn("This should never happen, there is probably a problem with the parsers used." +
            "\n Try to check if one needed parser is missing or if you are using a parser in development.");
      }
    } else {
      // The initialized parsers map should be
      // initialized as soon as there is a sbml node.
View Full Code Here

    } else {
      // The initialized parsers map should be
      // initialized as soon as there is a sbml node.
      // If it is null, there is an syntax error in the SBML
      // file.
      logger.warn("The parsers are not initialized, this should not happen !!!");
    }
   
    // We return null as long as we did not find the SBMLDocument closing tag
    return null;
 
View Full Code Here

      }
    }
   
    if (!correct) {
      Logger logger = Logger.getLogger(SBO.class);
      logger.warn("The SBO term '" + sboTerm + "' does not seem to be valid.");
    }
   
    return correct;
  }
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.