void setValue(C value) { context.doc.setElementAttribute(context.container, VALUE_ATTR, serializer.toString(value)); }
void setValue(C value) { context.doc.setElementAttribute(context.container, VALUE_ATTR, serializer.toString(value)); }
void setValue(C value) { context.doc.setElementAttribute(context.container, VALUE_ATTR, serializer.toString(value)); }
void setValue(C value) { context.doc.setElementAttribute(context.container, VALUE_ATTR, serializer.toString(value)); }
private <N, E extends N> void setValue2(ValueContext<N, E> context, Key name, Integer value) { context.doc.setElementAttribute(context.container, name.toString(), Serializer.INTEGER.toString(value)); }
private <N, E extends N> void setValue2(ValueContext<N, E> context, Key name, Integer value) { context.doc.setElementAttribute(context.container, name.toString(), Serializer.INTEGER.toString(value)); }
/** * Populates a document with an initial map state TODO defined by an entry list. * * @return a map-context view of the document state. */ private static <N, E extends N, T extends N> ValueContext<N, E> substrate( ObservableMutableDocument<N, E, T> doc, Map<Key, Integer> values) { // Insert container element. E container = doc.createChildElement(doc.getDocumentElement(), CONTAINER_TAG, Collections.<String,String>emptyMap()); // Set attributes. for (Map.Entry<Key, Integer> entry : values.entrySet()) { doc.setElementAttribute(container, entry.getKey().toString(), Serializer.INTEGER.toString(entry.getValue())); } return new ValueContext<N, E>(doc, container); }
/** * Populates a document with an initial map state TODO defined by an entry list. * * @return a map-context view of the document state. */ private static <N, E extends N, T extends N> ValueContext<N, E> substrate( ObservableMutableDocument<N, E, T> doc, Map<Key, Integer> values) { // Insert container element. E container = doc.createChildElement(doc.getDocumentElement(), CONTAINER_TAG, Collections.<String,String>emptyMap()); // Set attributes. for (Map.Entry<Key, Integer> entry : values.entrySet()) { doc.setElementAttribute(container, entry.getKey().toString(), Serializer.INTEGER.toString(entry.getValue())); } return new ValueContext<N, E>(doc, container); }
/** * Populates a document with an initial map state defined by an entry list. * * @return a map-context view of the document state. */ private static <N, E extends N> ValueContext<N, E> substrate( ObservableMutableDocument<N, E, ?> doc, int value) { // Insert container element E container = doc.createChildElement(doc.getDocumentElement(), CONTAINER_TAG, Collections.<String,String>emptyMap()); doc.setElementAttribute(container, VALUE_ATTR, Serializer.INTEGER.toString(value)); return new ValueContext<N, E>(doc, container); }
/** * Populates a document with an initial map state defined by an entry list. * * @return a map-context view of the document state. */ private static <N, E extends N> ValueContext<N, E> substrate( ObservableMutableDocument<N, E, ?> doc, int value) { // Insert container element E container = doc.createChildElement(doc.getDocumentElement(), CONTAINER_TAG, Collections.<String,String>emptyMap()); doc.setElementAttribute(container, VALUE_ATTR, Serializer.INTEGER.toString(value)); return new ValueContext<N, E>(doc, container); }