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

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

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

QNameSet.includedQNamesInExcludedURIs介绍

[英]The set of QNames included in the set even though they are within a namespace that is otherwise fully included in the set.
[中]包含在集合中的一组QName,即使它们位于完全包含在集合中的命名空间中。

代码示例

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

public void setAcceptedNames(QNameSet set)
{ 
  mutate(); 
  _acceptedNames = set.includedQNamesInExcludedURIs();
}

代码示例来源: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: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

public void setAcceptedNames(QNameSet set)
{ 
  mutate(); 
  _acceptedNames = set.includedQNamesInExcludedURIs();
}

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

public void setAcceptedNames(QNameSet set)
{ 
  mutate(); 
  _acceptedNames = set.includedQNamesInExcludedURIs();
}

代码示例来源: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: 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());
}

代码示例来源: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());
}

相关文章