Lines Matching refs:Data

25  * Implementation of Data that allows for multiple underlying Data objects and checks each one in
27 * implementation of Clearsilver. This is only meant to be a root Data object and hardcodes that
30 * Note: If you have elements foo.1, foo.2, foo.3 in first Data object and foo.4, foo.5, foo.6 in
31 * second Data object, then fetching children of foo will return only foo.1 foo.2 foo.3 from first
32 * Data object.
38 // variable in multiple Data objects in the chain, which usually indicates
42 Data[] dataList;
49 public ChainedData(Data data) {
51 this.dataList = new Data[] {data};
54 public ChainedData(Data... dataList) {
59 public ChainedData(List<Data> dataList) {
61 this.dataList = dataList.toArray(new Data[dataList.size()]);
65 protected DelegatedData newInstance(Data newDelegate) {
69 private static Data getFirstData(Data[] dataList) {
71 throw new IllegalArgumentException("Must pass in at least one Data object to ChainedData.");
73 Data first = dataList[0];
75 throw new IllegalArgumentException("ChainedData does not accept null Data objects.");
80 private static Data getFirstData(List<Data> dataList) {
82 throw new IllegalArgumentException("Must pass in at least one Data object to ChainedData.");
84 Data first = dataList.get(0);
86 throw new IllegalArgumentException("ChainedData does not accept null Data objects.");
92 public Data getChild(String path) {
93 ArrayList<Data> children = null;
94 Data first = null;
95 for (Data d : dataList) {
96 Data child = d.getChild(path);
109 children = new ArrayList<Data>(dataList.length);
119 // 0 or 1 matches. Return first which is null or Data.
130 public Data createChild(String path) {
131 Data child = getChild(path);
142 Data child = getChild(path);
152 Data child = getChild(path);
167 Data child = getChild(path);
177 Data child = getChild(path);
187 Data child = getChild(path);
197 for (Data d : dataList) {
204 for (Data d : dataList) {
211 for (Data d : dataList) {