本文整理了Java中org.apache.xmlbeans.QNameSet.excludedURIs
方法的一些代码示例,展示了QNameSet.excludedURIs
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。QNameSet.excludedURIs
方法的具体详情如下:
包路径:org.apache.xmlbeans.QNameSet
类名称: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());
}
内容来源于网络,如有侵权,请联系作者删除!