Examples of valueOf()


Examples of org.dom4j.Node.valueOf()

                String query = "/FindbugsPlugin/BugCode[@abbrev='" + abbrev + "']";
                Node fbNode = pluginDescriptor.selectSingleNode(query);
                int cweid = 0;
                if (fbNode != null) {
                    try {
                        cweid = Integer.parseInt(fbNode.valueOf("@cweid"));
                    } catch (RuntimeException e) {
                        assert true; // ignore
                    }
                }
                BugCode bugCode = new BugCode(abbrev, description, cweid);
View Full Code Here

Examples of org.dom4j.XPath.valueOf()

  public String getColumnName(int columnIndex) {
    XPath xpath = definition.getColumnNameXPath(columnIndex);

    if (xpath != null) {
      System.out.println("Evaluating column xpath: " + xpath + " value: "
          + xpath.valueOf(source));

      return xpath.valueOf(source);
    }

    return definition.getColumnName(columnIndex);
View Full Code Here

Examples of org.dom4j.XPath.valueOf()

    if (xpath != null) {
      System.out.println("Evaluating column xpath: " + xpath + " value: "
          + xpath.valueOf(source));

      return xpath.valueOf(source);
    }

    return definition.getColumnName(columnIndex);
  }
View Full Code Here

Examples of org.dyno.visual.swing.types.editor.spinnermodels.types.NumberType.valueOf()

    if (btnDefault.getSelection())
      return new SpinnerNumberModel();
    else {
      int index = cmbType.getSelectionIndex();
      NumberType type = NumberType.getTypes()[index];
      Number init = type.valueOf(spInit.getSelection());
      Number min = null;
      if (btnMin.getSelection()) {
        min = type.valueOf(spMin.getSelection());
      }
      Number max = null;
View Full Code Here

Examples of org.fnlp.nlp.parser.Target.ValueOf()

    Predict<DependencyTree> res = _getBestParse(sent);
    DependencyTree dt = res.getLabel(0);

    Target target = new Target(sent.length());

    target=target.ValueOf(dt);

    return target;
  }

  public int[] parse(Instance inst)  {
View Full Code Here

Examples of org.g4studio.core.orm.xibatis.sqlmap.engine.type.TypeHandler.valueOf()

        String nullValue = mapping.getNullValue();
        if (result == null && nullValue != null) {
          TypeHandler typeHandler = typeHandlerFactory.getTypeHandler(targetType);
          if (typeHandler != null) {
            result = typeHandler.valueOf(nullValue);
          }
        }
      }
      return result;
    } catch (InstantiationException e) {
View Full Code Here

Examples of org.hibernate.annotationfactory.AnnotationDescriptor.valueOf()

          ad.setValue( "uniqueConstraints", table.uniqueConstraints() );
          ad.setValue( "joinColumns", table.joinColumns() );
          ad.setValue( "inverseJoinColumns", table.inverseJoinColumns() );
        }
      }
      if ( StringHelper.isEmpty( (String) ad.valueOf( "schema" ) )
          && StringHelper.isNotEmpty( defaults.getSchema() ) ) {
        ad.setValue( "schema", defaults.getSchema() );
      }
      if ( StringHelper.isEmpty( (String) ad.valueOf( "catalog" ) )
          && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
View Full Code Here

Examples of org.hibernate.annotations.common.annotationfactory.AnnotationDescriptor.valueOf()

            annotation.setValue( "schema", table.schema() );
            annotation.setValue( "catalog", table.catalog() );
            annotation.setValue( "uniqueConstraints", table.uniqueConstraints() );
          }
        }
        if ( StringHelper.isEmpty( (String) annotation.valueOf( "schema" ) )
            && StringHelper.isNotEmpty( defaults.getSchema() ) ) {
          annotation.setValue( "schema", defaults.getSchema() );
        }
        if ( StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) )
            && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
View Full Code Here

Examples of org.hibernate.annotations.common.annotationfactory.AnnotationDescriptor.valueOf()

        }
        if ( StringHelper.isEmpty( (String) annotation.valueOf( "schema" ) )
            && StringHelper.isNotEmpty( defaults.getSchema() ) ) {
          annotation.setValue( "schema", defaults.getSchema() );
        }
        if ( StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) )
            && StringHelper.isNotEmpty( defaults.getCatalog() ) ) {
          annotation.setValue( "catalog", defaults.getCatalog() );
        }
        return AnnotationFactory.create( annotation );
      }
View Full Code Here

Examples of org.hibernate.annotations.common.annotationfactory.AnnotationDescriptor.valueOf()

      //ignore java annotation, an element is defined
      AnnotationDescriptor annotation = new AnnotationDescriptor( Table.class );
      copyStringAttribute( annotation, subelement, "name", false );
      copyStringAttribute( annotation, subelement, "catalog", false );
      if ( StringHelper.isNotEmpty( defaults.getCatalog() )
          && StringHelper.isEmpty( (String) annotation.valueOf( "catalog" ) ) ) {
        annotation.setValue( "catalog", defaults.getCatalog() );
      }
      copyStringAttribute( annotation, subelement, "schema", false );
      if ( StringHelper.isNotEmpty( defaults.getSchema() )
          && StringHelper.isEmpty( (String) annotation.valueOf( "schema" ) ) ) {
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.