本文整理了Java中org.xwiki.rendering.syntax.Syntax.equals()
方法的一些代码示例,展示了Syntax.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Syntax.equals()
方法的具体详情如下:
包路径:org.xwiki.rendering.syntax.Syntax
类名称:Syntax
方法名:equals
暂无
代码示例来源:origin: org.xwiki.rendering/xwiki-rendering-transformation-macro
@Override
public boolean match(MacroId macroId)
{
// True if the macroId has no syntax or if it has one it has to match the passed syntax
return syntax == null || macroId.getSyntax() == null || macroId.getSyntax().equals(syntax);
}
}).get(category);
代码示例来源:origin: org.xwiki.rendering/xwiki-rendering-transformation-macro
@Override
public boolean match(MacroId macroId)
{
// True if the macroId has no syntax or if it has one it has to match the passed syntax
return syntax == null || macroId.getSyntax() == null || macroId.getSyntax().equals(syntax);
}
}).keySet();
代码示例来源:origin: org.xwiki.platform/xwiki-core-rendering-transformation-macro
public boolean match(MacroId macroId)
{
// True if the macroId has no syntax or if it has one it has to match the passed syntax
return syntax == null || macroId.getSyntax() == null || macroId.getSyntax().equals(syntax);
}
}).get(category);
代码示例来源:origin: org.xwiki.rendering/xwiki-rendering-transformation-macro
continue;
if (syntax == null || macroId.getSyntax() == null || syntax.equals(macroId.getSyntax())) {
result.add(macroId);
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
StringBuffer result = new StringBuffer();
super.displayView(result, name, prefix, object, context);
if (getObjectDocumentSyntax(object, context).equals(Syntax.XWIKI_1_0)) {
buffer.append(context.getWiki().parseContent(result.toString(), context));
} else {
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
private boolean setWikiMacroClassesDocumentFields(XWikiDocument doc, String title)
{
boolean needsUpdate = false;
if (StringUtils.isBlank(doc.getCreator())) {
needsUpdate = true;
doc.setCreator(XWikiRightService.SUPERADMIN_USER);
}
if (StringUtils.isBlank(doc.getAuthor())) {
needsUpdate = true;
doc.setAuthorReference(doc.getCreatorReference());
}
if (StringUtils.isBlank(doc.getParent())) {
needsUpdate = true;
doc.setParent("XWiki.XWikiClasses");
}
if (StringUtils.isBlank(doc.getTitle())) {
needsUpdate = true;
doc.setTitle(title);
}
if (StringUtils.isBlank(doc.getContent()) || !Syntax.XWIKI_2_0.equals(doc.getSyntax())) {
needsUpdate = true;
doc.setContent("{{include document=\"XWiki.ClassSheet\" /}}");
doc.setSyntax(Syntax.XWIKI_2_0);
}
return needsUpdate;
}
代码示例来源:origin: org.xwiki.platform/xwiki-core-rendering-transformation-macro
/**
* {@inheritDoc}
*
* @see Object#equals(Object)
*/
@Override
public boolean equals(Object object)
{
boolean result;
// See http://www.technofundo.com/tech/java/equalhash.html for the detail of this algorithm.
if (this == object) {
result = true;
} else {
if ((object == null) || (object.getClass() != this.getClass())) {
result = false;
} else {
MacroId macroId = (MacroId) object;
result =
(getId() == macroId.getId() || (getId() != null && getId().equals(macroId.getId())))
&& (getSyntax() == macroId.getSyntax() || (getSyntax() != null && getSyntax().equals(
macroId.getSyntax())));
}
}
return result;
}
}
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
if (!outputSyntax.equals(Syntax.HTML_4_01) && !outputSyntax.equals(Syntax.XHTML_1_0)) {
XDOM xdom = parseContent(Syntax.HTML_4_01.toIdString(), title);
this.parserUtils.removeTopLevelParagraph(xdom.getChildren());
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
if (contentdoc.getSyntax().equals(Syntax.XWIKI_1_0)) {
result = getRenderingEngine().renderText(contentdoc.getContent(), contentdoc,
(XWikiDocument) context.get("doc"), context);
if (contentdoc.getSyntax().equals(Syntax.XWIKI_1_0)) {
result = getRenderingEngine().renderText(contentdoc.getContent(), contentdoc, doc, context);
} else {
代码示例来源:origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-mailsender
doc.setTitle("XWiki Mail Class");
if (StringUtils.isBlank(doc.getContent()) || !Syntax.XWIKI_2_0.equals(doc.getSyntax())) {
needsUpdate = true;
doc.setContent("{{include document=\"XWiki.ClassSheet\" /}}");
代码示例来源:origin: org.xwiki.platform/xwiki-platform-display-api
if (document.getSyntax().equals(translatedDocument.getSyntax())) {
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
doc.setTitle("XWiki Aggregator URL Class");
if (StringUtils.isBlank(doc.getContent()) || !Syntax.XWIKI_2_0.equals(doc.getSyntax())) {
needsUpdate = true;
doc.setContent("{{include document=\"XWiki.ClassSheet\" /}}");
代码示例来源:origin: org.xwiki.platform/xwiki-platform-component-wiki
doc.setTitle(title);
if (StringUtils.isBlank(doc.getContent()) || !Syntax.XWIKI_2_0.equals(doc.getSyntax())) {
needsUpdate = true;
doc.setContent("{{include reference=\"XWiki.ClassSheet\" /}}");
代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core
if (StringUtils.isBlank(doc.getContent()) || !Syntax.XWIKI_2_0.equals(doc.getSyntax())) {
needsUpdate = true;
doc.setContent("{{include document=\"XWiki.ClassSheet\" /}}");
代码示例来源:origin: com.xpn.xwiki.platform.plugins/xwiki-plugin-scheduler
doc.setTitle("XWiki Scheduler Job Class");
if (StringUtils.isBlank(doc.getContent()) || !Syntax.XWIKI_2_0.equals(doc.getSyntax())) {
needsUpdate = true;
doc.setContent("{{include document=\"XWiki.ClassSheet\" /}}");
内容来源于网络,如有侵权,请联系作者删除!