/** * Returns a QNameSet containing only the given QName. * @return the constructed QNameSet */ public static QNameSet singleton(QName name) { return new QNameSet(null, Collections.EMPTY_SET, Collections.EMPTY_SET, Collections.singleton(name)); }
/** * Returns a QNameSet based on the given array of included QNames * * @param includedQNames the array of included QNames */ public static QNameSet forArray(QName[] includedQNames) { if (includedQNames == null) throw new IllegalArgumentException("includedQNames cannot be null"); return new QNameSet(null, Collections.EMPTY_SET, Collections.EMPTY_SET, new HashSet(Arrays.asList(includedQNames))); }
return NONLOCAL; return new QNameSet( minSetCopy(excludedURIs), minSetCopy(includedURIs),
/** * 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 QNameSet containing only the given QName. * @return the constructed QNameSet */ public static QNameSet singleton(QName name) { return new QNameSet(null, Collections.EMPTY_SET, Collections.EMPTY_SET, Collections.singleton(name)); }
/** * Returns a QNameSet containing only the given QName. * @return the constructed QNameSet */ public static QNameSet singleton(QName name) { return new QNameSet(null, Collections.EMPTY_SET, Collections.EMPTY_SET, Collections.singleton(name)); }
/** * Returns a QNameSet based on the given array of included QNames * * @param includedQNames the array of included QNames */ public static QNameSet forArray(QName[] includedQNames) { if (includedQNames == null) throw new IllegalArgumentException("includedQNames cannot be null"); return new QNameSet(null, Collections.EMPTY_SET, Collections.EMPTY_SET, new HashSet(Arrays.asList(includedQNames))); }
/** * Returns a QNameSet based on the given array of included QNames * * @param includedQNames the array of included QNames */ public static QNameSet forArray(QName[] includedQNames) { if (includedQNames == null) throw new IllegalArgumentException("includedQNames cannot be null"); return new QNameSet(null, Collections.EMPTY_SET, Collections.EMPTY_SET, new HashSet(Arrays.asList(includedQNames))); }
return NONLOCAL; return new QNameSet( minSetCopy(excludedURIs), minSetCopy(includedURIs),
return NONLOCAL; return new QNameSet( minSetCopy(excludedURIs), minSetCopy(includedURIs),
/** * 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()); }