@Test public void blockNumericListSupported() { builder.setSupportedBlockTypes(Sets.newHashSet(BlockType.NUMERIC_LIST)); buildList(BlockType.NUMERIC_LIST); assertContent("<ol><li>test 0</li><li>test 1</li></ol>"); }
void setSupportedBlockTypes(Set<BlockType> blockTypes) { checkState(blockStrategyState.isEmpty()); blockStrategies = new BlockStrategies(blockTypes); }
HtmlSubsetDocumentBuilder extends DocumentBuilder { void setSupportedBlockTypes(Set<BlockType> blockTypes) { checkState(blockStrategyState.isEmpty()); blockStrategies = new BlockStrategies(blockTypes); } }
HtmlSubsetDocumentBuilder extends DocumentBuilder { void setSupportedBlockTypes(Set<BlockType> blockTypes) { checkState(blockStrategyState.isEmpty()); blockStrategies = new BlockStrategies(blockTypes); } HtmlSubsetDocumentBuilder(Writer out, boolean formatting);   HtmlSubsetDocumentBuilder(HtmlDocumentBuilder delegate); }
HtmlSubsetDocumentBuilder extends DocumentBuilder { void setSupportedBlockTypes(Set<BlockType> blockTypes) { checkState(blockStrategyState.isEmpty()); blockStrategies = new BlockStrategies(blockTypes); } HtmlSubsetDocumentBuilder(Writer out, boolean formatting);   HtmlSubsetDocumentBuilder(HtmlDocumentBuilder delegate); void setElementNameOfSpanType(SpanType spanType, String elementName); @Override void beginDocument(); @Override void endDocument(); @Override void flush(); @Override void beginBlock(BlockType type, Attributes attributes); @Override void endBlock(); @Override void beginSpan(SpanType type, Attributes attributes); @Override void endSpan(); @Override void beginHeading(int level, Attributes attributes); @Override void endHeading(); @Override void characters(String text); @Override void entityReference(String entity); @Override void image(Attributes attributes, String url); @Override void link(Attributes attributes, String hrefOrHashName, String text); @Override void imageLink(Attributes linkAttributes, Attributes imageAttributes, String href, String imageUrl); @Override void acronym(String text, String definition); @Override void lineBreak(); @Override void charactersUnescaped(String literal); @Override void horizontalRule(); }
HtmlSubsetDocumentBuilder extends DocumentBuilder { void setSupportedBlockTypes(Set<BlockType> blockTypes) { checkState(blockStrategyState.isEmpty()); blockStrategies = new BlockStrategies(blockTypes); } HtmlSubsetDocumentBuilder(Writer out, boolean formatting);   HtmlSubsetDocumentBuilder(HtmlDocumentBuilder delegate); void setElementNameOfSpanType(SpanType spanType, String elementName); @Override void beginDocument(); @Override void endDocument(); @Override void flush(); @Override void beginBlock(BlockType type, Attributes attributes); @Override void endBlock(); @Override void beginSpan(SpanType type, Attributes attributes); @Override void endSpan(); @Override void beginHeading(int level, Attributes attributes); @Override void endHeading(); @Override void characters(String text); @Override void entityReference(String entity); @Override void image(Attributes attributes, String url); @Override void link(Attributes attributes, String hrefOrHashName, String text); @Override void imageLink(Attributes linkAttributes, Attributes imageAttributes, String href, String imageUrl); @Override void acronym(String text, String definition); @Override void lineBreak(); @Override void charactersUnescaped(String literal); @Override void horizontalRule();  }