示例#1
0
 /**
  * Executes this field expression.
  *
  * @param context AspContext under which to evaluate the expression.
  * @return return value of this expression
  * @throws AspException If an error occurs
  * @see Node#execute(AspContext)
  */
 public Object execute(AspContext context) throws AspException {
   if (DBG.isDebugEnabled()) DBG.debug("execute");
   Object value = expr.execute(context);
   while (value instanceof SimpleReference && !(value instanceof ObjectNode)) {
     if (DBG.isDebugEnabled()) DBG.debug("De-referencing " + value);
     value = ((SimpleReference) value).getValue();
   }
   if (value instanceof ObjectNode) {
     ObjectNode obj = (ObjectNode) value;
     if (DBG.isDebugEnabled()) DBG.debug("Get field of " + ident + " from " + obj);
     return Types.coerceToNode(obj.getField(ident));
   } else {
     throw new AspException("Invalid class for field get: " + value.getClass().getName());
   }
 }
  /**
   * Description of the Method
   *
   * @return Description of the Return Value
   */
  public static synchronized BasicResidueData instance() {
    if (residueData == null) {
      if (logger.isDebugEnabled()) {
        logger.debug("Getting " + BasicResidueData.class.getName() + " instance.");
      }

      residueData = new BasicResidueData();
    }

    return residueData;
  }
  public static synchronized IdentifierExpertSystem instance() {
    if (chemistryKernel == null) {
      if (logger.isDebugEnabled()) {
        logger.debug("Getting " + IdentifierExpertSystem.class.getName() + " instance.");
      }

      chemistryKernel = new IdentifierExpertSystem();
    }

    return chemistryKernel;
  }
示例#4
0
  public LogP() {
    if (logger.isDebugEnabled()) {
      logger.debug("Initialize " + this.getClass().getName());
    }

    descInfo =
        FeatureHelper.generateFeatureInfo(
            this.getClass(),
            BasicFeatureInfo.TYPE_NO_COORDINATES,
            null,
            "joelib2.feature.result.DoubleResult");
  }
示例#5
0
  /** Process the start tag */
  public int doStartTag() throws javax.servlet.jsp.JspException {

    // Look up the requested property value
    if (name != null) {
      Object beanValue = RequestUtils.lookup(pageContext, name, property, scope);
      if (cat.isDebugEnabled()) cat.debug("Value is : '" + beanValue + "'");
      if (beanValue == null) return (EVAL_BODY_TAG);

      // set the property as value
      setValue(beanValue.toString());
    }

    // Continue processing this page
    return (EVAL_BODY_TAG);
  }
  public void addHardCodedKernel(IdentifierHardDependencies hardCodedKernel) {
    String kernelString =
        hardCodedKernel.getClass().getName()
            + " "
            + hardCodedKernel.getVendorInternal()
            + " "
            + hardCodedKernel.getReleaseVersionInternal()
            + " "
            + hardCodedKernel.getReleaseDateInternal();

    if (logger.isDebugEnabled()) {
      logger.debug("hard dependencies: " + kernelString);
    }

    hardInfos.put(CML_HARD_KERNEL + ":" + hardCodedKernel.getClass().getName(), kernelString);
  }
  public void addSoftCodedKernel(IdentifierSoftDependencies softCodedKernel) {
    String kernelString =
        softCodedKernel.getClass().getName()
            + " "
            + softCodedKernel.getVendorExternal()
            + " "
            + softCodedKernel.getResourceExternal()
            + " "
            + softCodedKernel.getReleaseVersionExternal()
            + " "
            + softCodedKernel.getReleaseDateExternal();

    if (logger.isDebugEnabled()) {
      logger.debug("soft dependencies : " + kernelString);
    }

    softInfos.put(CML_SOFT_KERNEL + ":" + softCodedKernel.getClass().getName(), kernelString);
  }