org.apache.tiles.Definition.isExtending()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(137)

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

Definition.isExtending介绍

[英]Get extends flag.
[中]获取扩展标志。

代码示例

代码示例来源:origin: org.apache.tiles/tiles-core

/** {@inheritDoc} */
@Override
public void register(Definition definition, Request request) {
  Map<String, Definition> definitions = getOrCreateDefinitions(request);
  if (definition.getName() == null) {
    definition.setName(getNextUniqueDefinitionName(definitions));
  }
  if (definition.isExtending()) {
    this.resolveInheritance(definition, request);
  }
  definitions.put(definition.getName(), definition);
}

代码示例来源:origin: org.apache.tiles/com.springsource.org.apache.tiles.core

Set<String> alreadyResolvedDefinitions) {
if (!definition.isExtending()
    || alreadyResolvedDefinitions.contains(definition.getName())) {
  return;

代码示例来源:origin: org.apache.tiles/com.springsource.org.apache.tiles.core

/**
 * Adds a definition to the set of custom ones.
 *
 * @param definition The definition to add.
 * @param request The current request.
 * @throws org.apache.tiles.definition.DefinitionsFactoryException If
 * something goes wrong during the addition.
 */
public void addDefinition(Definition definition,
    TilesRequestContext request) {
  Map<String, Definition> definitions = getOrCreateDefinitions(request);
  if (definition.getName() == null) {
    definition.setName(getNextUniqueDefinitionName(definitions));
  }
  validate(definition);
  if (definition.isExtending()) {
    this.resolveInheritance(definition, request);
  }
  definitions.put(definition.getName(), definition);
}

代码示例来源:origin: org.apache.tiles/tiles-core

Set<String> alreadyResolvedDefinitions) {
if (!definition.isExtending()
    || alreadyResolvedDefinitions.contains(definition.getName())) {
  return;

代码示例来源:origin: org.apache.tiles/com.springsource.org.apache.tiles.core

Set<String> alreadyResolvedDefinitions) {
if (!definition.isExtending()
    || alreadyResolvedDefinitions.contains(definition.getName())) {
  return;

代码示例来源:origin: org.apache.tiles/com.springsource.org.apache.tiles.core

TilesRequestContext request) {
if (!definition.isExtending()) {
  return;

代码示例来源:origin: org.apache.tiles/tiles-core

Request request) {
if (!definition.isExtending()) {
  return;

相关文章