* A client of the scenarioo-API can add any key-value-data to this detail informations. - * + *
* Following type of objects are possible values inside the details: *
* See class description of {@link Details} about possible types to use as values. */ public Details addDetail(final String key, final Object value) { @@ -73,79 +72,121 @@ public Details addDetail(final String key, final Object value) { } return this; } - + + /** + * Use to describe an object (described through a type and a name and additional + * key-value-details again). + * + *
+ * See class description of {@link Details} about other possible types to use. + */ + public Details addDetail(final String key, final ObjectDescription objectDescription) { + return this.addDetail(key, (Object) objectDescription); + } + + /** + * Use to reference an {@link ObjectDescription} that was already stored elsewhere, only + * through its type and name without storing all the details information again. + * + *
+ * See class description of {@link Details} about other possible types to use. + */ + public Details addDetail(final String key, final ObjectReference objectReference) { + return this.addDetail(key, (Object) objectReference); + } + + /** + * Use for complex tree structures containing same content types as possible node objects. + * + *
+ * See class description of {@link Details} about other possible types to use. + */ + public Details addDetail(final String key, final ObjectTreeNode> objectTreeNode) { + return this.addDetail(key, (Object) objectTreeNode); + } + + /** + * Use for a list of value items (same types allowed as content types again). + * + *
+ * See class description of {@link Details} about other possible types to use.
+ */
+ public Details addDetail(final String key, final ObjectList> objectList) {
+ return this.addDetail(key, (Object) objectList);
+ }
+
public Object getDetail(final String key) {
return properties.get(key);
}
-
+
@Override
public int size() {
return properties.size();
}
-
+
@Override
public boolean isEmpty() {
return properties.isEmpty();
}
-
+
@Override
public boolean containsKey(final Object key) {
return properties.containsKey(key);
}
-
+
@Override
public boolean containsValue(final Object value) {
return properties.containsValue(value);
}
-
+
@Override
public Object get(final Object key) {
return properties.get(key);
}
-
+
@Override
public Object put(final String key, final Object value) {
return properties.put(key, value);
}
-
+
@Override
public Object remove(final Object key) {
return properties.remove(key);
}
-
+
@Override
public void putAll(final Map extends String, ? extends Object> m) {
properties.putAll(m);
}
-
+
@Override
public void clear() {
properties.clear();
}
-
+
@Override
public Set
This is just a dummy html code with lot of content to generate a lot of big data to write for load testing.
"); for (int i = 0; i < 1000; i++) { - builder.append("