WritableDataImplpublic class WritableDataImpl extends Object implements WritableData
Fields Summary |
---|
protected List | children | protected List | values | protected List | table | protected String | source | protected String | type | private static int | INITIAL_CAPACITY |
Constructors Summary |
---|
public WritableDataImpl()
this("", DataType.CONTAINER);
| public WritableDataImpl(String type)
this("",type);
| public WritableDataImpl(String source, String type)Creates a new instance of WritableDataImpl
this(source,type, 5,20);
| public WritableDataImpl(String source, String type, int initialValuesCapacity)
this(source, type, INITIAL_CAPACITY, initialValuesCapacity);
| public WritableDataImpl(String source, String type, int initialChildrenCapacity, int initialValuesCapacity)
this(source,type, initialChildrenCapacity,
initialValuesCapacity,INITIAL_CAPACITY);
| public WritableDataImpl(String source, String type, int initialChildrenCapacity, int initialValuesCapacity, int initialTableCapacity)
this.source= source;
this.type = type;
children = new ArrayList(initialChildrenCapacity);
values = new ArrayList(initialValuesCapacity);
table = new ArrayList(initialTableCapacity);
|
Methods Summary |
---|
public void | addChild(com.sun.enterprise.diagnostics.Data dataObj)
if(dataObj != null)
children.add(dataObj);
| public void | addRow(java.util.List list)
if(list != null)
table.add(list);
| public void | addValue(java.lang.String value)
values.add(value);
| public java.util.Iterator | getChildren()
return children.iterator();
| public java.lang.String | getSource()
return source;
| public java.util.Iterator | getTable()
List<Iterator<String>> listOfIterators = new ArrayList();
Iterator<List<String>> iterator = table.iterator();
while(iterator.hasNext()) {
List row = iterator.next();
listOfIterators.add(row.iterator());
}
return listOfIterators.iterator();
| public java.lang.String | getType()
return type;
| public java.util.Iterator | getValues()
return values.iterator();
|
|