@Test public void testGetData() throws Exception { Column col; col = new Column("title", 0); Assert.assertEquals("test", col.getData("test")); col = new Column("title {{ String }}", 0); Assert.assertEquals("test", col.getData("test")); col = new Column("title {{ String }}", 0); Assert.assertEquals("true", col.getData("true")); col = new Column("title {{ Long }}", 0); Assert.assertEquals(100L, col.getData("100")); col = new Column("title {{ Int }}", 0); Assert.assertEquals(100L, col.getData("100")); col = new Column("title {{ Integer }}", 0); Assert.assertEquals(100L, col.getData("100")); col = new Column("title {{ Double }}", 0); Assert.assertEquals(100.001D, col.getData("100.001")); col = new Column("title {{ Boolean }}", 0); Assert.assertEquals(true, col.getData("true")); col = new Column("title {{ Boolean }}", 0); Assert.assertEquals(false, col.getData("FALSE")); }
public T getData(String data) { return (T) toObjectType(data, this.getDataType()); }
Column { public T getData(String data) { return (T) toObjectType(data, this.getDataType()); } }
Column { public T getData(String data) { return (T) toObjectType(data, this.getDataType()); } Column(final String raw, final int index); }
Column { public T getData(String data) { return (T) toObjectType(data, this.getDataType()); } Column(final String raw, final int index); T getData(String data); T[] getMultiData(String data); int getJcrPropertyType(); String getRaw(); String getPropertyName(); String getRelPropertyPath(); boolean isMulti(); Class getDataType(); int getIndex(); boolean isIgnore(); void setIgnore(final boolean ignore); void setMultiDelimiter(final String multiDelimiter); static Map<String, Column> getColumns(final String[] row,
                                                 final String multiDelimiter,
                                                 final String[] ignoreProperties,
                                                 final String[] requiredProperties); }
Column { public T getData(String data) { return (T) toObjectType(data, this.getDataType()); } Column(final String raw, final int index); T getData(String data); T[] getMultiData(String data); int getJcrPropertyType(); String getRaw(); String getPropertyName(); String getRelPropertyPath(); boolean isMulti(); Class getDataType(); int getIndex(); boolean isIgnore(); void setIgnore(final boolean ignore); void setMultiDelimiter(final String multiDelimiter); static Map<String, Column> getColumns(final String[] row,
                                                 final String multiDelimiter,
                                                 final String[] ignoreProperties,
                                                 final String[] requiredProperties);  }