本文整理了Java中org.apache.shindig.gadgets.templates.XmlTemplateLibrary.parseLibraryDocument()
方法的一些代码示例,展示了XmlTemplateLibrary.parseLibraryDocument()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XmlTemplateLibrary.parseLibraryDocument()
方法的具体详情如下:
包路径:org.apache.shindig.gadgets.templates.XmlTemplateLibrary
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!