Package com.google.enterprise.connector.spiimpl

Examples of com.google.enterprise.connector.spiimpl.ValueImpl


  /**
   * Gets the boolean value for a given property.
   */
  public static boolean getOptionalBoolean(Document document, String name, boolean defaultBool) {
    ValueImpl v = null;
    try {
      v = getValueAndThrow(document, name);
    } catch (RepositoryException e) {
      LOGGER.log(Level.WARNING, "Swallowing exception while accessing " + name,
          e);
      return defaultBool;
    } catch (IllegalArgumentException e) {
      LOGGER.log(Level.WARNING, "Swallowing exception while accessing " + name,
          e);
      return defaultBool;
    }
    if (v != null) {
      return v.toBoolean();
    }
    return defaultBool;
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.spiimpl.ValueImpl

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.