Examples of IntegerConverter


Examples of br.com.caelum.vraptor.converter.IntegerConverter

  }

  @Test
  public void isCapableOfDealingWithEmptyParameterForInternalWrapperValue() throws OgnlException {
  when(converters.to(Integer.class)).thenReturn(new IntegerConverter());
  Ognl.setValue("cat.firstLeg.id", context, house, "");
  assertThat(house.cat.firstLeg.id, is(equalTo(null)));
  }
View Full Code Here

Examples of com.alibaba.toolkit.util.typeconvert.converters.IntegerConverter

        register(Boolean.class, new BooleanConverter());
        register(Byte.class, new ByteConverter());
        register(Character.class, new CharacterConverter());
        register(Double.class, new DoubleConverter());
        register(Float.class, new FloatConverter());
        register(Integer.class, new IntegerConverter());
        register(Long.class, new LongConverter());
        register(Short.class, new ShortConverter());
        register(Date.class, new SqlDateConverter());
        register(Time.class, new SqlTimeConverter());
        register(Timestamp.class, new SqlTimestampConverter());
View Full Code Here

Examples of com.github.jmkgreen.morphia.converters.IntegerConverter

    public CharacterToByteConverter() { super(Character.class, char.class); }
   
    @Override
    public Object decode(Class targetClass, Object fromDBObject, MappedField optionalExtraInfo) throws MappingException {
      if (fromDBObject == null) return null;
      IntegerConverter intConv = new IntegerConverter();
      Integer i = (Integer)intConv.decode(targetClass, fromDBObject, optionalExtraInfo);
      return new Character((char)i.intValue());
    }
View Full Code Here

Examples of com.ponysdk.ui.server.form2.dataconverter.IntegerConverter

    public IntegerTextBoxFormField() {
        this(new PTextBox());
    }

    public IntegerTextBoxFormField(final PTextBox textBox) {
        super(textBox, new IntegerConverter());
    }
View Full Code Here

Examples of com.technophobia.substeps.model.parameter.IntegerConverter

  private IntegerConverter converter;


  @Before
  public void setUp() {
    converter = new IntegerConverter();
  }
View Full Code Here

Examples of javax.faces.convert.IntegerConverter

        assertEquals(converter.getClass(), converterDescription.getImplementationClass());
    }

    @Test
    public void getConverterMessage() throws Exception {
        converter = new IntegerConverter();
        FacesMessage facesMessage = null;
        controller.replay();
        try {
            converter.getAsObject(environment.getFacesContext(), input, "abc");
        } catch (ConverterException e) {
View Full Code Here

Examples of javax.faces.convert.IntegerConverter

  assertTrue(preSave.equals(postSave));
    }

    public void testImplementsNeither() throws Exception {
  StateHolderSaver saver = null;
  IntegerConverter 
      preSave = new IntegerConverter(),
      postSave = null;

  saver = new StateHolderSaver(facesContext, preSave);
  postSave = (IntegerConverter) saver.restore(facesContext);
  assertTrue(true); // lack of ClassCastException
View Full Code Here

Examples of javax.faces.convert.IntegerConverter

   * Test method for {@link org.ajax4jsf.component.UIActionParameter#processAction(javax.faces.event.ActionEvent)}.
   */
  public void testProcessAction() {
    UICommand command = new UICommand();
    UIActionParameter param = new UIActionParameter();
    param.setConverter(new IntegerConverter());
    param.setName("param");
    ELContext elContext = facesContext.getELContext();
    ExpressionFactory expressionFactory = application.getExpressionFactory();
    ValueExpression expression =
      expressionFactory.createValueExpression(elContext, "#{bean.first}", Integer.TYPE);
View Full Code Here

Examples of jodd.typeconverter.impl.IntegerConverter

  @SuppressWarnings( {"UnnecessaryFullyQualifiedName"})
  public void registerDefaults() {
    register(String.class, new StringConverter());
    register(String[].class, new StringArrayConverter(this));

    IntegerConverter integerConverter = new IntegerConverter();
    register(Integer.class, integerConverter);
    register(int.class, integerConverter);
    register(MutableInteger.class, new MutableIntegerConverter(this));

    ShortConverter shortConverter = new ShortConverter();
View Full Code Here

Examples of net.buffalo.protocal.converters.basic.IntegerConverter

  }

  protected void registerDefaultConverters() {
    BooleanConverter booleanConverter = new BooleanConverter();
    DoubleConverter doubleConverter = new DoubleConverter();
    IntegerConverter integerConverter = new IntegerConverter();
    LongConverter longConverter = new LongConverter();
    StringConverter stringConverter = new StringConverter();
    DateConverter dateConverter = new DateConverter();
    CollectionConverter collectionConverter = new CollectionConverter();
    MapConverter mapConverter = new MapConverter();
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.