org.apache.shindig.gadgets.templates.XmlTemplateLibrary.parseLibraryDocument()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(116)

本文整理了Java中org.apache.shindig.gadgets.templates.XmlTemplateLibrary.parseLibraryDocument()方法的一些代码示例,展示了XmlTemplateLibrary.parseLibraryDocument()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlTemplateLibrary.parseLibraryDocument()方法的具体详情如下:
包路径:org.apache.shindig.gadgets.templates.XmlTemplateLibrary
类名称:XmlTemplateLibrary
方法名:parseLibraryDocument

XmlTemplateLibrary.parseLibraryDocument介绍

暂无

代码示例

代码示例来源:origin: com.lmco.shindig/shindig-gadgets

/**
 * @param uri URI of the template library
 * @param root Element representing the Templates tag of this library
 * @param safe Is this library exempt from being sanitized?
 */
public XmlTemplateLibrary(Uri uri, Element root, String source, boolean safe) 
  throws GadgetException {
 this.libraryUri = uri;
 this.source = source;
 this.registry = new DefaultTagRegistry(parseLibraryDocument(root));
 this.safe = safe;
 ImmutableSet.Builder<TemplateResource> resources = ImmutableSet.builder();
 if (style != null) {
  resources.add(TemplateResource.newStyleResource(style, this));
 }
 if (javaScript != null) {
  resources.add(TemplateResource.newJavascriptResource(javaScript, this));
 }
 
 this.libraryResources = resources.build();
}

代码示例来源:origin: org.apache.shindig/shindig-gadgets

/**
 * @param uri URI of the template library
 * @param root Element representing the Templates tag of this library
 * @param safe Is this library exempt from being sanitized?
 */
public XmlTemplateLibrary(Uri uri, Element root, String source, boolean safe)
  throws GadgetException {
 this.libraryUri = uri;
 this.source = source;
 this.safe = safe;
 this.registry = new DefaultTagRegistry(parseLibraryDocument(root));
 ImmutableSet.Builder<TemplateResource> resources = ImmutableSet.builder();
 if (style != null) {
  resources.add(TemplateResource.newStyleResource(style, this));
 }
 if (javaScript != null) {
  resources.add(TemplateResource.newJavascriptResource(javaScript, this));
 }
 this.libraryResources = resources.build();
}

代码示例来源:origin: org.gatein.shindig/shindig-gadgets

/**
 * @param uri URI of the template library
 * @param root Element representing the Templates tag of this library
 * @param safe Is this library exempt from being sanitized?
 */
public XmlTemplateLibrary(Uri uri, Element root, String source, boolean safe) 
  throws GadgetException {
 this.libraryUri = uri;
 this.source = source;
 this.registry = new DefaultTagRegistry(parseLibraryDocument(root));
 this.safe = safe;
 ImmutableSet.Builder<TemplateResource> resources = ImmutableSet.builder();
 if (style != null) {
  resources.add(TemplateResource.newStyleResource(style, this));
 }
 if (javaScript != null) {
  resources.add(TemplateResource.newJavascriptResource(javaScript, this));
 }
 
 this.libraryResources = resources.build();
}

相关文章