org.apache.velocity.context.Context.containsKey()方法的使用及代码示例

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

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

Context.containsKey介绍

[英]Indicates whether the specified key is in the context.
[中]指示指定的键是否在上下文中。

代码示例

代码示例来源:origin: webx/citrus

@Override
public boolean internalContainsKey(Object key) {
  return context.containsKey(key);
}

代码示例来源:origin: webx/citrus

@Override
public boolean internalContainsKey(Object key) {
  return context.containsKey(key);
}

代码示例来源:origin: com.alibaba.citrus/citrus-webx-all

@Override
public boolean internalContainsKey(Object key) {
  return context.containsKey(key);
}

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

/**
 * @see org.apache.velocity.context.Context#containsKey(java.lang.Object)
 */
public boolean containsKey(String key)
{
  return context.containsKey( key );
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity

/**
 * @see org.apache.velocity.context.Context#containsKey(java.lang.Object)
 */
public boolean containsKey(Object key)
{
  return context.containsKey( key );
}

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

/**
 * @see org.apache.velocity.context.Context#containsKey(java.lang.Object)
 */
public boolean containsKey(Object key)
{
  return context.containsKey( key );
}

代码示例来源:origin: velocity/velocity-dep

public boolean containsKey(Object key)
{
  return context.containsKey( key );
}

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

/**
 * @see org.apache.velocity.context.Context#containsKey(java.lang.Object)
 */
public boolean containsKey(Object key)
{
  return localContext.containsKey(key) || super.containsKey(key);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity

/**
 * @see org.apache.velocity.context.Context#containsKey(java.lang.Object)
 */
public boolean containsKey(Object key)
{
  return (localContext != null && localContext.containsKey(key)) ||
      super.containsKey(key);
}

代码示例来源:origin: fex-team/fis-velocity-tools

/**
 * @see org.apache.velocity.context.Context#containsKey(java.lang.Object)
 */
public boolean containsKey(Object key)
{
  return (localContext != null && localContext.containsKey(key)) ||
      super.containsKey(key);
}

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

/**
 *  Indicates whether the specified key is in the context.  Provided for
 *  debugging purposes.
 *
 * @param key The key to look for.
 * @return true if the key is in the context, false if not.
 */
public boolean containsKey(Object key)
{
  if (key == null)
  {
    return false;
  }
  boolean exists = internalContainsKey(key);
  if (!exists && innerContext != null)
  {
    exists = innerContext.containsKey(key);
  }
  
  return exists;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity

/**
 *  Indicates whether the specified key is in the context.  Provided for
 *  debugging purposes.
 *
 * @param key The key to look for.
 * @return true if the key is in the context, false if not.
 */
public boolean containsKey(Object key)
{
  if (key == null)
  {
    return false;
  }
  boolean exists = internalContainsKey(key);
  if (!exists && innerContext != null)
  {
    exists = innerContext.containsKey(key);
  }
  
  return exists;
}

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

/**
 *  Indicates whether the specified key is in the context.  Provided for
 *  debugging purposes.
 *
 * @param key The key to look for.
 * @return true if the key is in the context, false if not.
 */
public boolean containsKey(String key)
{
  if (key == null)
  {
    return false;
  }
  boolean exists = internalContainsKey(key);
  if (!exists && innerContext != null)
  {
    exists = innerContext.containsKey(key);
  }
  return exists;
}

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

if (!context.containsKey(variable))

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.velocity

if (!context.containsKey(variable))

相关文章

微信公众号

最新文章

更多