Package org.apache.log4j

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


      value = true;
    } else if (!(toTest.equalsIgnoreCase("true")
        || toTest.equalsIgnoreCase("false")))
    {
      Logger logger = Logger.getLogger(StringTools.class);
      logger.warn("Could not create a boolean from the string " + valueAsStr);
    }

    return value;
  }
 
View Full Code Here


        value = Double.POSITIVE_INFINITY;
      } else if (toTest.equalsIgnoreCase("-INF")) {
        value = Double.NEGATIVE_INFINITY;
      } else {
        Logger logger = Logger.getLogger(StringTools.class);
        logger.warn("Could not create a double from the string " + valueAsStr);
      }
    }

    return value;
  }
View Full Code Here

    int value = 0;
    try {
      value = Integer.parseInt(valueAsStr.trim());
    } catch (NumberFormatException e) {
      Logger logger = Logger.getLogger(StringTools.class);
      logger.warn("Could not create an integer from the string " + valueAsStr);
    }
    return value;
  }

  /**
 
View Full Code Here

    short v = 0;
    try {
      v = Short.parseShort(value.trim());
    } catch (NumberFormatException e) {
      Logger logger = Logger.getLogger(StringTools.class);
      logger.warn("Could not create a short from the string " + value);
    }
    return v;
  }
 
  /**
 
View Full Code Here

          SBMLDocument sbmlDoc = (SBMLDocument) sbmlElements.firstElement();
          String sbmlNamespace = sbmlDoc.getSBMLDocumentNamespaces().get("xmlns");

          if (currentNode.getNamespaceURI().equals(sbmlNamespace)) {
            if (isInsideAnnotation) {
              logger.warn("Starting to read a new annotation element while the previous annotation element is not finished.");
            }
            isInsideAnnotation = true;
            annotationDeepness++;
          }
         
View Full Code Here

          } else {
            parser.processCharactersOf(null, characters.getData(),
                sbmlElements.peek());
          }
        } else if (isText) {
          logger.warn(String.format("Some characters cannot be read: %s", characters.getData()));
          if (logger.isDebugEnabled()) {
            logger.debug("Parser = " + parser);
            if (sbmlElements.isEmpty()) {
              logger.debug("The Object Stack is empty !!!");
            } else {
View Full Code Here

          // Process the attributes
          processAttributes(att, currentNode, sbmlElements, parser, hasAttributes, isInsideNotes,
              annotationDeepness, 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

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.