本文整理了Java中org.htmlparser.Tag.isEmptyXmlTag()
方法的一些代码示例,展示了Tag.isEmptyXmlTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.isEmptyXmlTag()
方法的具体详情如下:
包路径:org.htmlparser.Tag
类名称:Tag
方法名:isEmptyXmlTag
[英]Is this an empty xml tag of the form <tag/>.
[中]这是一个格式为<tag/>的空xml标记。
代码示例来源:origin: com.bbossgroups.pdp/pdp-cms
/**
* @see org.htmlparser.Tag#isEmptyXmlTag()
*/
public boolean isEmptyXmlTag() {
return m_decorated.isEmptyXmlTag();
}
代码示例来源:origin: org.opencms/opencms-core
/**
* @see org.htmlparser.Tag#isEmptyXmlTag()
*/
public boolean isEmptyXmlTag() {
return m_decorated.isEmptyXmlTag();
}
代码示例来源:origin: org.opencms/opencms-solr
/**
* @see org.htmlparser.Tag#isEmptyXmlTag()
*/
public boolean isEmptyXmlTag() {
return m_decorated.isEmptyXmlTag();
}
代码示例来源:origin: org.everit.templating/org.everit.templating.html
private void handleNonEWTNode(final Tag tag) {
if (!tag.isEmptyXmlTag()) {
visitorPath.add(new VisitorPathElement().withTag(tag));
}
currentSB.append(tag.toTagHtml());
}
代码示例来源:origin: org.everit.templating/org.everit.templating.html
private boolean handleRenderNoneTag(final Tag tag) {
boolean renderNoneTag = false;
if (renderNone(tag)) {
if (!tag.isEmptyXmlTag()) {
visitorPath.add(new VisitorPathElement().withTag(tag));
visitMode = VisitMode.NONE;
specialVisitDepth = visitorPath.size();
}
renderNoneTag = true;
}
return renderNoneTag;
}
代码示例来源:origin: org.everit.templating/org.everit.templating.html
private boolean handleTageInNoneAndInlineMode(final Tag tag) {
boolean noneOrInlineTag = false;
if ((visitMode == VisitMode.NONE) || (visitMode == VisitMode.INLINE)) {
if (!tag.isEmptyXmlTag()) {
visitorPath.add(new VisitorPathElement().withTag(tag));
}
if (visitMode == VisitMode.INLINE) {
currentSB.append(tag.toHtml(true));
}
noneOrInlineTag = true;
}
return noneOrInlineTag;
}
代码示例来源:origin: omegat-org/omegat
if (tag.isEmptyXmlTag()) { // This only detects tags that already have a
代码示例来源:origin: org.everit.templating/org.everit.templating.html
/**
* Constructor.
*
* @param tag
* The tag that this node definition belongs to.
* @param templateFileName
* the name of the template file.
*/
public TagNode(final Tag tag, final String templateFileName) {
emptyTag = tag.isEmptyXmlTag();
Page page = tag.getPage();
startPositionInTemplate = tag.getStartPosition();
int endPosition = tag.getEndPosition();
int length = endPosition - startPositionInTemplate;
textRepresentation = new char[length];
page.getText(textRepresentation, 0, startPositionInTemplate, endPosition);
this.templateFileName = templateFileName;
}
代码示例来源:origin: org.everit.templating/org.everit.templating.html
if (!tag.isEmptyXmlTag()) {
visitorPath.add(new VisitorPathElement().withEwtNode(tagNode).withTag(tag));
parentNode = tagNode;
代码示例来源:origin: com.bbossgroups/bboss-htmlparser
if (ret.isEmptyXmlTag ())
ret.setEndTag (ret);
else
if (next.isEmptyXmlTag ())
代码示例来源:origin: org.htmlparser/htmlparser
if (ret.isEmptyXmlTag ())
ret.setEndTag (ret);
else
if (next.isEmptyXmlTag ())
内容来源于网络,如有侵权,请联系作者删除!