@Test public void generatePlaceholderNode() { String id = "test1"; Element ele = ArticleUtil.generatePlaceholderNode(id); assertThat(ele).isNotNull(); assertThat(ele.id()).isEqualTo(id); assertThat(ele.attr("translate")).isEqualTo("no"); }
public static Element generatePlaceholderNode(@NotNull String id) { Attributes attrs = new Attributes(); attrs.put("id", id); attrs.put("translate", "no"); return new Element(Tag.valueOf("var"), "", attrs); }
ArticleUtil { public static Element generatePlaceholderNode(@NotNull String id) { Attributes attrs = new Attributes(); attrs.put("id", id); attrs.put("translate", "no"); return new Element(Tag.valueOf("var"), "", attrs); } }
ArticleUtil { public static Element generatePlaceholderNode(@NotNull String id) { Attributes attrs = new Attributes(); attrs.put("id", id); attrs.put("translate", "no"); return new Element(Tag.valueOf("var"), "", attrs); } @SuppressWarnings("unused") private  ArticleUtil(); }
ArticleUtil { public static Element generatePlaceholderNode(@NotNull String id) { Attributes attrs = new Attributes(); attrs.put("id", id); attrs.put("translate", "no"); return new Element(Tag.valueOf("var"), "", attrs); } @SuppressWarnings("unused") private  ArticleUtil(); static TranslatableNodeList replaceNonTranslatableNodeHTML(int prefix,
            String html); static TranslatableNodeList replaceNonTranslatableNodeXML(int prefix,
            String xml); static String generatePlaceholderId(int prefix, int index); static Element generatePlaceholderNode(@NotNull String id); static Document wrapHTML(String html); static Document wrapXML(String html); static List<Node> unwrapAsNodes(@NotNull Element element); static List<Node> unwrapAsElements(@NotNull Element element); static @Nullable Node asElement(String html, Function<String, Element> toElement); static String replacePlaceholderWithNode(
            Map<String, Node> nodeIdMap, String xml, Function<String, Element> toElement); }
ArticleUtil { public static Element generatePlaceholderNode(@NotNull String id) { Attributes attrs = new Attributes(); attrs.put("id", id); attrs.put("translate", "no"); return new Element(Tag.valueOf("var"), "", attrs); } @SuppressWarnings("unused") private  ArticleUtil(); static TranslatableNodeList replaceNonTranslatableNodeHTML(int prefix,
            String html); static TranslatableNodeList replaceNonTranslatableNodeXML(int prefix,
            String xml); static String generatePlaceholderId(int prefix, int index); static Element generatePlaceholderNode(@NotNull String id); static Document wrapHTML(String html); static Document wrapXML(String html); static List<Node> unwrapAsNodes(@NotNull Element element); static List<Node> unwrapAsElements(@NotNull Element element); static @Nullable Node asElement(String html, Function<String, Element> toElement); static String replacePlaceholderWithNode(
            Map<String, Node> nodeIdMap, String xml, Function<String, Element> toElement);  }