org.apache.xmlbeans.QNameSet.containsAll()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(61)

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

QNameSet.containsAll介绍

[英]True if the given set is a subset of this one.
[中]如果给定集合是该集合的子集,则为True。

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

private static boolean afterMapSubsumedByStartMap(Map startMap, Map afterMap)
{
  if (afterMap.size() > startMap.size())
    return false;
  
  if (afterMap.isEmpty())
    return true;
  
  for (Iterator i = startMap.keySet().iterator(); i.hasNext(); )
  {
    SchemaParticle part = (SchemaParticle)i.next();
    if (part.getParticleType() == SchemaParticle.WILDCARD)
    {
      if (afterMap.containsKey(part))
      {
        QNameSet startSet = (QNameSet)startMap.get(part);
        QNameSet afterSet = (QNameSet)afterMap.get(part);
        if (!startSet.containsAll(afterSet))
          return false;
      }
    }
    afterMap.remove(part);
    if (afterMap.isEmpty())
      return true;
  }
  return (afterMap.isEmpty());
}

代码示例来源:origin: com.github.pjfanning/xmlbeans

private static boolean afterMapSubsumedByStartMap(Map startMap, Map afterMap)
{
  if (afterMap.size() > startMap.size())
    return false;
  
  if (afterMap.isEmpty())
    return true;
  
  for (Iterator i = startMap.keySet().iterator(); i.hasNext(); )
  {
    SchemaParticle part = (SchemaParticle)i.next();
    if (part.getParticleType() == SchemaParticle.WILDCARD)
    {
      if (afterMap.containsKey(part))
      {
        QNameSet startSet = (QNameSet)startMap.get(part);
        QNameSet afterSet = (QNameSet)afterMap.get(part);
        if (!startSet.containsAll(afterSet))
          return false;
      }
    }
    afterMap.remove(part);
    if (afterMap.isEmpty())
      return true;
  }
  return (afterMap.isEmpty());
}

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

private static boolean afterMapSubsumedByStartMap(Map startMap, Map afterMap)
{
  if (afterMap.size() > startMap.size())
    return false;
  
  if (afterMap.isEmpty())
    return true;
  
  for (Iterator i = startMap.keySet().iterator(); i.hasNext(); )
  {
    SchemaParticle part = (SchemaParticle)i.next();
    if (part.getParticleType() == SchemaParticle.WILDCARD)
    {
      if (afterMap.containsKey(part))
      {
        QNameSet startSet = (QNameSet)startMap.get(part);
        QNameSet afterSet = (QNameSet)afterMap.get(part);
        if (!startSet.containsAll(afterSet))
          return false;
      }
    }
    afterMap.remove(part);
    if (afterMap.isEmpty())
      return true;
  }
  return (afterMap.isEmpty());
}

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

continue; // ignore the extra wildcard
else if (!baseModel.getWildcardSet().containsAll(wcset))

代码示例来源:origin: com.github.pjfanning/xmlbeans

continue; // ignore the extra wildcard
else if (!baseModel.getWildcardSet().containsAll(wcset))

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

continue; // ignore the extra wildcard
else if (!baseModel.getWildcardSet().containsAll(wcset))

相关文章