Examples of type()


Examples of com.gargoylesoftware.htmlunit.html.HtmlInput.type()

           
      final HtmlInput el1 = (HtmlInput) uploadPage.getFirstByXPath(FILE_UPLOAD_FILE);
      if (el1 == null) {
         fail("Element file upload file doesn't exist");
      } else {        
         el1.type(IMAGE_TO_UPLOAD);
      }     
     
      final HtmlInput el2 = (HtmlInput) uploadPage.getFirstByXPath(FILE_UPLOAD_UPDATE);
      final HtmlPage finishPage = (HtmlPage) el2.click();
      final HtmlElement el3 = (HtmlElement) finishPage.getFirstByXPath(FILE_UPLOAD_RESPONSE);
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlTextInput.type()

      String visibleStyle = nameInput.getStyleAttribute();
      assertFalse("Input control not visible as expected: ["+visibleStyle+"]",
              visibleStyle.contains("display:none") || visibleStyle.contains("display: none"));
     
      // Type value into input control
      nameInput.type(value);
     
      // Type #3 - CUSTOM save button
      if( customSaveId != null )
      {
         // Find and Click save button
View Full Code Here

Examples of com.github.dactiv.orm.annotation.StateDelete.type()

    StateDelete stateDelete = ReflectionUtils.getAnnotation(entityClass,StateDelete.class);
    if (stateDelete == null) {
      return Boolean.TRUE;
    }
   
    Object value = ConvertUtils.convertToObject(stateDelete.value(), stateDelete.type().getValue());
    ReflectionUtils.invokeSetterMethod(entity, stateDelete.propertyName(), value);
    persistentContext.save(entity);
   
    return Boolean.FALSE;
  }
View Full Code Here

Examples of com.godshawk.lib.annotations.modularity.Plugin.type()

    public PluginMetadata generateMetadata(Class<? extends IPlugin> plugin) {
        if (!plugin.isAnnotationPresent(Plugin.class)) {
            throw new IllegalArgumentException(String.format("Plugin %s is not annotated!", plugin.getSimpleName()));
        }
        Plugin pl = plugin.getDeclaredAnnotation(Plugin.class);
        return new PluginMetadata(pl.name(), pl.id(), pl.author(), pl.type());
    }

    public void internalPluginLoad(Class<? extends IPlugin> pluginClass) {
        try {
            PluginMetadata metadata = generateMetadata(pluginClass);
View Full Code Here

Examples of com.google.collide.dtogen.shared.RoutingType.type()

    Preconditions.checkNotNull(routingTypeAnnotation,
        "RoutingType annotation must be specified for all subclasses of RoutableDto. " +
        i.getName());

    return routingTypeAnnotation.type();
  }
}
View Full Code Here

Examples of com.google.common.net.MediaType.type()

    } catch (IllegalArgumentException expected) {}
  }

  public void testCreateApplicationType() {
    MediaType newType = MediaType.createApplicationType("yams");
    assertEquals("application", newType.type());
    assertEquals("yams", newType.subtype());
  }

  public void testCreateAudioType() {
    MediaType newType = MediaType.createAudioType("yams");
View Full Code Here

Examples of com.googlecode.jcsv.annotations.MapToColumn.type()

        int column = mapAnnotation.column();

        // read the annotation type. If type is Default.class, then
        // the type of the field will be used.
        Class<?> type;
        if (mapAnnotation.type().equals(MapToColumn.Default.class)) {
          // use the field type
          type = field.getType();
        } else {
          // use the annotated type
          type = mapAnnotation.type();
View Full Code Here

Examples of com.headius.invokebinder.Binder.type()

                        b.drop(site.type().parameterCount() - 2, 1);
                    }


                    if (nc.isStatic()) {
                        if (b.type().parameterCount() == nc.getNativeSignature().length) {
                            mh = b
                                    .cast(nc.getNativeReturn(), nc.getNativeSignature())
                                    .invokeStaticQuiet(MethodHandles.lookup(), nc.getNativeTarget(), nc.getNativeName());
//                            System.out.println(mh);
                        }
View Full Code Here

Examples of com.headius.invokebinder.Signature.type()

    private void emitWithSignatures(IRMethod method, String name) {
        method.setJittedName(name);

        Signature signature = signatureFor(method, false);
        emitScope(method, name, signature, false);
        method.addNativeSignature(-1, signature.type());

        Signature specificSig = signatureFor(method, true);
        if (specificSig != null) {
            emitScope(method, name, specificSig, true);
            method.addNativeSignature(method.getStaticScope().getRequiredArgs(), specificSig.type());
View Full Code Here

Examples of com.helger.jcodemodel.JMethod.type()

        JMethod acceptMethod = proxyClass.method(JMod.PUBLIC, types._void, "accept");
        acceptMethod.annotate(Override.class);
        JTypeVar visitorResultType = visitorInterface.getResultTypeParameter();
        JTypeVar resultType = Types.generifyWithBoundsFrom(acceptMethod, visitorResultType.name(), visitorResultType);
        acceptMethod.type(resultType);
        JTypeVar visitorExceptionType = visitorInterface.getExceptionTypeParameter();
        JTypeVar exceptionType = null;
        if (visitorExceptionType != null) {
            exceptionType = Types.generifyWithBoundsFrom(acceptMethod, visitorExceptionType.name(), visitorExceptionType);
            acceptMethod._throws(exceptionType);
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.