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

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

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

QNameSet.excludedURIs介绍

[英]Namespaces that are fully excluded from the set except for a finite number of individual QName exceptions. Returns null if this set is infinite.
[中]完全排除在集合之外的名称空间,但数量有限的单个QName例外除外。如果此集合是无限的,则返回null。

代码示例

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

void writeQNameSet(QNameSet set)
{
  boolean invert = (set.excludedURIs() != null);
  writeShort(invert ? 1 : 0);
  Set uriSet = invert ? set.excludedURIs() : set.includedURIs();
  writeShort(uriSet.size());
  for (Iterator i = uriSet.iterator(); i.hasNext(); )
    writeString((String)i.next());
  Set qnameSet1 = invert ? set.excludedQNamesInIncludedURIs() : set.includedQNamesInExcludedURIs();
  writeShort(qnameSet1.size());
  for (Iterator i = qnameSet1.iterator(); i.hasNext(); )
    writeQName((QName)i.next());
  Set qnameSet2 = invert ? set.includedQNamesInExcludedURIs() : set.excludedQNamesInIncludedURIs();
  writeShort(qnameSet2.size());
  for (Iterator i = qnameSet2.iterator(); i.hasNext(); )
    writeQName((QName)i.next());
}

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

/**
 * Returns a new QNameSet that is the inverse of this one.
 */
public QNameSet inverse()
{
  if (this == EMPTY)
    return ALL;
  if (this == ALL)
    return EMPTY;
  if (this == LOCAL)
    return NONLOCAL;
  if (this == NONLOCAL)
    return LOCAL;
  return new QNameSet(includedURIs(), excludedURIs(), includedQNamesInExcludedURIs(), excludedQNamesInIncludedURIs());
}

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

void writeQNameSet(QNameSet set)
{
  boolean invert = (set.excludedURIs() != null);
  writeShort(invert ? 1 : 0);
  Set uriSet = invert ? set.excludedURIs() : set.includedURIs();
  writeShort(uriSet.size());
  for (Iterator i = uriSet.iterator(); i.hasNext(); )
    writeString((String)i.next());
  Set qnameSet1 = invert ? set.excludedQNamesInIncludedURIs() : set.includedQNamesInExcludedURIs();
  writeShort(qnameSet1.size());
  for (Iterator i = qnameSet1.iterator(); i.hasNext(); )
    writeQName((QName)i.next());
  Set qnameSet2 = invert ? set.includedQNamesInExcludedURIs() : set.excludedQNamesInIncludedURIs();
  writeShort(qnameSet2.size());
  for (Iterator i = qnameSet2.iterator(); i.hasNext(); )
    writeQName((QName)i.next());
}

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

void writeQNameSet(QNameSet set)
{
  boolean invert = (set.excludedURIs() != null);
  writeShort(invert ? 1 : 0);
  Set uriSet = invert ? set.excludedURIs() : set.includedURIs();
  writeShort(uriSet.size());
  for (Iterator i = uriSet.iterator(); i.hasNext(); )
    writeString((String)i.next());
  Set qnameSet1 = invert ? set.excludedQNamesInIncludedURIs() : set.includedQNamesInExcludedURIs();
  writeShort(qnameSet1.size());
  for (Iterator i = qnameSet1.iterator(); i.hasNext(); )
    writeQName((QName)i.next());
  Set qnameSet2 = invert ? set.includedQNamesInExcludedURIs() : set.excludedQNamesInIncludedURIs();
  writeShort(qnameSet2.size());
  for (Iterator i = qnameSet2.iterator(); i.hasNext(); )
    writeQName((QName)i.next());
}

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

/**
 * Returns a new QNameSet that is the inverse of this one.
 */
public QNameSet inverse()
{
  if (this == EMPTY)
    return ALL;
  if (this == ALL)
    return EMPTY;
  if (this == LOCAL)
    return NONLOCAL;
  if (this == NONLOCAL)
    return LOCAL;
  return new QNameSet(includedURIs(), excludedURIs(), includedQNamesInExcludedURIs(), excludedQNamesInIncludedURIs());
}

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

/**
 * Returns a new QNameSet that is the inverse of this one.
 */
public QNameSet inverse()
{
  if (this == EMPTY)
    return ALL;
  if (this == ALL)
    return EMPTY;
  if (this == LOCAL)
    return NONLOCAL;
  if (this == NONLOCAL)
    return LOCAL;
  return new QNameSet(includedURIs(), excludedURIs(), includedQNamesInExcludedURIs(), excludedQNamesInIncludedURIs());
}

相关文章