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()); }
/** * 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()); }
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()); }
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()); }
/** * 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()); }
/** * 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()); }