org.parboiled.common.StringUtils Java Examples
The following examples show how to use
org.parboiled.common.StringUtils.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PegdownConfluenceWikiVisitor.java From maven-confluence-plugin with Apache License 2.0 | 6 votes |
@Override public void visit(OrderedListNode oln) { ++listLevel; try { _buffer.append('\n'); for (Node child : oln.getChildren()) { _buffer.append( StringUtils.repeat('#', listLevel) ).append(' '); child.accept(this); _buffer.append('\n'); } _buffer.append('\n'); }finally { --listLevel; } }
Example #2
Source File: PegdownConfluenceWikiVisitor.java From maven-confluence-plugin with Apache License 2.0 | 6 votes |
@Override public void visit(BulletListNode bln) { ++listLevel; try { _buffer.append('\n'); for (Node child : bln.getChildren()) { _buffer.append( StringUtils.repeat('*', listLevel) ).append(' '); child.accept(this); _buffer.append('\n'); } _buffer.append('\n'); }finally { --listLevel; } }
Example #3
Source File: GithubEnterpriseScm.java From blueocean-plugin with MIT License | 5 votes |
@Override public @Nonnull String getUri() { String apiUri = getCustomApiUri(); // NOTE: GithubEnterpriseScm requires that the apiUri be specified if (StringUtils.isEmpty(apiUri)) { throw new ServiceException.BadRequestException(new ErrorMessage(400, "apiUrl is required parameter")); } return apiUri; }