protected ValueList(ObservableMutableDocument<? super E, E, ?> document, E parent) { list = DocumentBasedElementList.create(DefaultDocumentEventRouter.create(document), parent, CHILD_TAG, this); }
protected ValueList(ObservableMutableDocument<? super E, E, ?> document, E parent) { list = DocumentBasedElementList.create(DefaultDocumentEventRouter.create(document), parent, CHILD_TAG, this); }
/** * Creates a document-based blip. * * @param router the document access that the element belongs * @param container the <blip> element */ static <E> DocumentBasedManifestBlip create(DocumentEventRouter<? super E, E, ?> router, E container) { return new DocumentBasedManifestBlip( DocumentBasedElementList.create(router, container, THREAD_TAG, DocumentBasedManifestThread.<E> factory()), DocumentBasedBasicValue.create(router, container, Serializer.STRING, BLIP_ID_ATTR)); }
/** * Creates the document based store. * * If the document does not yet have an "evals" tag this method will first add * one as a child of the root. * * @param document the document on which to base the manifest */ public static <N, E extends N> DocumentBasedAbuseStore<N, E> create( DocumentEventRouter<N, E, ?> router) { DocumentBasedElementList<E, WantedEvaluation, WantedEvaluation> list = DocumentBasedElementList.create(router, router.getDocument().getDocumentElement(), WANTED_EVAL_TAG, new ElementFactory<E>()); return new DocumentBasedAbuseStore<N, E>(list); }
/** * Creates a document-based thread. * * @param router router for the document the container belongs to * @param container the element that corresponds to the <thread> tag */ static <E> DocumentBasedManifestThread create(DocumentEventRouter<? super E, E, ?> router, E container) { return new DocumentBasedManifestThread( DocumentBasedElementList.create(router, container, BLIP_TAG, DocumentBasedManifestBlip.<E> factory()), DocumentBasedBasicValue.create(router, container, Serializer.STRING, THREAD_ID_ATTR), DocumentBasedBasicValue.create(router, container, Serializer.BOOLEAN, INLINE_ATTR)); }