Examples of type()


Examples of org.hibernate.validator.cfg.ConstraintMapping.type()

    public void testCustomMessageInterpolation() {

        HibernateValidatorConfiguration configuration = Validation.byProvider(HibernateValidator.class).configure();
        Assert.assertNotNull(configuration);
        ConstraintMapping mapping = new ConstraintMapping();
        mapping.type(Employee.class).property("firstName", FIELD)
                .constraint(new EmailDef().message("Invalid Email!You have entered:--\\{${validatedValue}\\}"));

        final MessageInterpolator messageInterpolator = new ValueFormatterMessageInterpolator();
        configuration.messageInterpolator(messageInterpolator);
        configuration.addMapping(mapping);
View Full Code Here

Examples of org.hivedb.annotations.Index.type()

 
  @SuppressWarnings("unchecked")
  private IndexType resolveIndexType(final Class entityInterface, final String propertyName) {
    Index annotation = ReflectionTools.getGetterOfProperty(entityInterface, propertyName).getAnnotation(Index.class);
    if (annotation != null)
      return annotation.type();
    if (ReflectionTools.getGetterOfProperty(entityInterface, propertyName).getAnnotation(PartitionIndex.class) != null)
      return IndexType.Partition;
    return IndexType.None;
  }
 
View Full Code Here

Examples of org.infinispan.jmx.annotations.Parameter.type()

                        Element prop = doc.createElementNS(URN_XMLNS_RHQ_CONFIGURATION, "simple-property");
                        name += "|" + param.name();
                        prop.setAttribute("name", param.name());
                        prop.setAttribute("description", param.description());
                        // default type from RHQ is String but sometimes we need (numbers) integer or long
                        if (!param.type().equals("")) prop.setAttribute("type", param.type());
                        parameters.appendChild(prop);
                        annotatedParameter = true;
                     }
                  }
                  if (!annotatedParameter) {
View Full Code Here

Examples of org.internna.iwebmvc.metadata.ui.EntityFilter.type()

        EntityFilterImpl filter = new EntityFilterImpl();
        filter.setEmbeddedClass(field.getDeclaringClass());
        filter.setPath(field.getName());
        EntityFilter entityFilter = field.getAnnotation(EntityFilter.class);
        filter.setRange(entityFilter.range());
        filter.setType(entityFilter.type());
        if (EntityFilter.WIDGET_TYPE.EMBEDDED.equals(filter.getType())) filter.setSubfilters(getSubFilters(field));
        filter.setHelp(entityFilter.help());
        String[] values = entityFilter.values();
        if ((values != null) && (values.length > 0)) filter.setValues(Arrays.asList(values));
        if (logger.isDebugEnabled()) logger.debug("Adding filter [" + filter + "] to view");
View Full Code Here

Examples of org.internna.iwebmvc.metadata.ui.FormField.type()

    private static FormFieldImpl createFormField(Field field) throws NoSuchMethodException, IllegalArgumentException, IllegalAccessException, IllegalAccessException, InvocationTargetException {
        FormFieldImpl formField = new FormFieldImpl();
        formField.setPath(field.getName());
        formField.setEmbeddedClass(field.getDeclaringClass());
        FormField form = field.getAnnotation(FormField.class);
        formField.setType(form.type());
        formField.setHelp(form.help());
        addValidation(field, formField);
        formField.setRenderCrud(form.renderCrud());
        if (EntityFilter.WIDGET_TYPE.EMBEDDED.equals(formField.getType())) formField.setSubfields(getSubFields(field));
        return formField;
View Full Code Here

Examples of org.jboss.errai.ioc.client.api.Timed.type()

      final List<Statement> statements = new ArrayList<Statement>();
      //  statements.add(timerVar);

      final Statement timerExec;
      switch (timed.type()) {
        case REPEATING:
          timerExec = Stmt.loadVariable(timerVarName).invoke("scheduleRepeating", timeUnit.toMillis(interval));
          break;
        default:
        case DELAYED:
View Full Code Here

Examples of org.jboss.forge.shell.plugins.Option.type()

                     optionMeta.setFlagOnly(option.flagOnly());
                     optionMeta.setDescription(option.description());
                     optionMeta.setDefaultValue(option.defaultValue());
                     optionMeta.setHelp(option.help());
                     optionMeta.setRequired(option.required());
                     optionMeta.setPromptType(option.type());
                     optionMeta.setCompleterType(option.completer());

                  }
                  else if (annotation instanceof PipeIn)
                  {
View Full Code Here

Examples of org.jboss.jandex.FieldInfo.type()

        for (AnnotationInstance instance : annotationList) {
            final AnnotationTarget target = instance.target();
            if (target instanceof FieldInfo) {
                final FieldInfo fieldInfo = (FieldInfo) target;
                String typeName = fieldInfo.type().toString();
                if (typeName.startsWith("org.osgi.framework")) {
                    log.debugf("OSGi injection point of type '%s' detected: %s", typeName, fieldInfo.declaringClass());
                    arqConfig.addFrameworkDependency(builder);
                    break;
                }
View Full Code Here

Examples of org.jboss.jsfunit.jsfsession.JSFClientSession.type()

   {
      JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/keepAlive.jsf");
      JSFClientSession client = jsfSession.getJSFClientSession();
      JSFServerSession server = jsfSession.getJSFServerSession();

      client.type("form1:firstAddend", '2');
      assertEquals(2, server.getManagedBeanValue("#{rsBean.addent1}"));
     
      client.type("form1:secondAddend", '3');
      assertEquals(3, server.getManagedBeanValue("#{rsBean.addent2}"));
     
View Full Code Here

Examples of org.jboss.managed.api.annotation.ManagementComponent.type()

      // Create ManagedComponents for ManagedObjects annotated with ManagementComponent
      ManagementComponent mc = (ManagementComponent) moAnns.get(ManagementComponent.class.getName());
      if (mc != null && md.getComponent(mo.getName()) == null)
      {
         ComponentType type = new ComponentType(mc.type(), mc.subtype());
         ManagedComponentImpl comp = new TempManagedComponentImpl(type, md, mo);
         md.addComponent(mo.getName(), comp);
         log.debug("Processing ManagementComponent("+mo.getName()+"): "+comp);
         Set<ManagedComponent> typeComps = compByCompType.get(type);
         if (typeComps == null)
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.