Search in sources :

Example 31 with Property

use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.

the class PropertyFactoryTest method testArray1.

public void testArray1() throws Exception {
    Property prop = PropertyFactory.createProperty("array[0]");
    Test test = new Test();
    prop.setProperty(test, "hogehoge1");
    assertEquals("hogehoge1", prop.getProperty(test));
}
Also used : Property(jp.ossc.nimbus.beans.Property)

Example 32 with Property

use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.

the class PropertyFactoryTest method testNestMap1_2.

public void testNestMap1_2() throws Exception {
    Property prop = PropertyFactory.createProperty("test.map.hoge1");
    Test test = new Test(new Test());
    assertEquals("fuga1", prop.getProperty(test));
    prop.setProperty(test, "hoge");
    assertEquals("hoge", prop.getProperty(test));
}
Also used : Property(jp.ossc.nimbus.beans.Property)

Example 33 with Property

use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.

the class PropertyFactoryTest method testNestMap8_2.

public void testNestMap8_2() throws Exception {
    Property prop = PropertyFactory.createProperty("test.map.hogeString2[2][2]");
    Test test = new Test(new Test());
    assertEquals("fuga633", prop.getProperty(test));
    prop.setProperty(test, "hoge");
    assertEquals("hoge", prop.getProperty(test));
}
Also used : Property(jp.ossc.nimbus.beans.Property)

Example 34 with Property

use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.

the class PropertyFactoryTest method testNestList3_2.

public void testNestList3_2() throws Exception {
    Property prop = PropertyFactory.createProperty("test.list[4][0]");
    Test test = new Test(new Test());
    assertEquals("hoge51", prop.getProperty(test));
    prop.setProperty(test, "hoge");
    assertEquals("hoge", prop.getProperty(test));
}
Also used : Property(jp.ossc.nimbus.beans.Property)

Example 35 with Property

use of jp.ossc.nimbus.beans.Property in project nimbus by nimbus-org.

the class PropertyFactoryTest method testNestMap3_1.

public void testNestMap3_1() throws Exception {
    Property prop = PropertyFactory.createProperty("test.map.hogelist.[3].[0]");
    Test test = new Test(new Test());
    assertEquals("hoge41", prop.getProperty(test));
    prop.setProperty(test, "hoge");
    assertEquals("hoge", prop.getProperty(test));
}
Also used : Property(jp.ossc.nimbus.beans.Property)

Aggregations

Property (jp.ossc.nimbus.beans.Property)48 NoSuchPropertyException (jp.ossc.nimbus.beans.NoSuchPropertyException)8 InvocationTargetException (java.lang.reflect.InvocationTargetException)7 Iterator (java.util.Iterator)5 Map (java.util.Map)5 HashMap (java.util.HashMap)4 DataSet (jp.ossc.nimbus.beans.dataset.DataSet)4 RecordList (jp.ossc.nimbus.beans.dataset.RecordList)4 ArrayList (java.util.ArrayList)3 List (java.util.List)3 NestedProperty (jp.ossc.nimbus.beans.NestedProperty)3 SimpleProperty (jp.ossc.nimbus.beans.SimpleProperty)3 Record (jp.ossc.nimbus.beans.dataset.Record)3 PropertyEditor (java.beans.PropertyEditor)2 BufferedReader (java.io.BufferedReader)2 SQLException (java.sql.SQLException)2 LinkedHashMap (java.util.LinkedHashMap)2 HttpServletRequest (javax.servlet.http.HttpServletRequest)2 ParameterizedType (java.lang.reflect.ParameterizedType)1 Type (java.lang.reflect.Type)1