QNameSet readQNameSet() { int flag = readShort(); Set uriSet = new HashSet(); int uriCount = readShort(); for (int i = 0; i < uriCount; i++) uriSet.add(readString()); Set qnameSet1 = new HashSet(); int qncount1 = readShort(); for (int i = 0; i < qncount1; i++) qnameSet1.add(readQName()); Set qnameSet2 = new HashSet(); int qncount2 = readShort(); for (int i = 0; i < qncount2; i++) qnameSet2.add(readQName()); if (flag == 1) return QNameSet.forSets(uriSet, null, qnameSet1, qnameSet2); else return QNameSet.forSets(null, uriSet, qnameSet2, qnameSet1); }
QNameSet readQNameSet() { int flag = readShort(); Set uriSet = new HashSet(); int uriCount = readShort(); for (int i = 0; i < uriCount; i++) uriSet.add(readString()); Set qnameSet1 = new HashSet(); int qncount1 = readShort(); for (int i = 0; i < qncount1; i++) qnameSet1.add(readQName()); Set qnameSet2 = new HashSet(); int qncount2 = readShort(); for (int i = 0; i < qncount2; i++) qnameSet2.add(readQName()); if (flag == 1) return QNameSet.forSets(uriSet, null, qnameSet1, qnameSet2); else return QNameSet.forSets(null, uriSet, qnameSet2, qnameSet1); }
/** * Returns a new QNameSet that is the inverse of this one. */ public QNameSet inverse() { return QNameSet.forSets(includedURIs(), excludedURIs(), includedQNamesInExcludedURIs(), excludedQNamesInIncludedURIs()); }
/** * Returns a QNameSet with the same contents as the given * QNameSetSpecification. * @return the copied QNameSet */ public static QNameSet forSpecification(QNameSetSpecification spec) { if (spec instanceof QNameSet) return (QNameSet)spec; return QNameSet.forSets(spec.excludedURIs(), spec.includedURIs(), spec.excludedQNamesInIncludedURIs(), spec.includedQNamesInExcludedURIs()); }
HashSet excludedURI = new HashSet(); excludedURI.add(SOAPENC); attrModel.setWildcardSet(QNameSet.forSets(excludedURI, null, Collections.EMPTY_SET, Collections.EMPTY_SET)); SchemaLocalAttributeImpl attr = new SchemaLocalAttributeImpl();
protected static QNameSet buildQNameSet(String[] eeNamespaces, String localPart) { Set qnames = new HashSet(eeNamespaces.length); for (int i = 0; i < eeNamespaces.length; i++) { String namespace = eeNamespaces[i]; qnames.add(new QName(namespace, localPart)); } //xmlbeans 2.0 has a bug so forArray doesn't work. Don't know if it's fixed in later xmlbeans versions //return QNameSet.forArray(qnames); return QNameSet.forSets(null, Collections.EMPTY_SET, Collections.EMPTY_SET, qnames); }
QNameSet readQNameSet() { int flag = readShort(); Set uriSet = new HashSet(); int uriCount = readShort(); for (int i = 0; i < uriCount; i++) uriSet.add(readString()); Set qnameSet1 = new HashSet(); int qncount1 = readShort(); for (int i = 0; i < qncount1; i++) qnameSet1.add(readQName()); Set qnameSet2 = new HashSet(); int qncount2 = readShort(); for (int i = 0; i < qncount2; i++) qnameSet2.add(readQName()); if (flag == 1) return QNameSet.forSets(uriSet, null, qnameSet1, qnameSet2); else return QNameSet.forSets(null, uriSet, qnameSet2, qnameSet1); }
QNameSet readQNameSet() { int flag = readShort(); Set uriSet = new HashSet(); int uriCount = readShort(); for (int i = 0; i < uriCount; i++) uriSet.add(readString()); Set qnameSet1 = new HashSet(); int qncount1 = readShort(); for (int i = 0; i < qncount1; i++) qnameSet1.add(readQName()); Set qnameSet2 = new HashSet(); int qncount2 = readShort(); for (int i = 0; i < qncount2; i++) qnameSet2.add(readQName()); if (flag == 1) return QNameSet.forSets(uriSet, null, qnameSet1, qnameSet2); else return QNameSet.forSets(null, uriSet, qnameSet2, qnameSet1); }
QNameSet readQNameSet() { int flag = readShort(); Set uriSet = new HashSet(); int uriCount = readShort(); for (int i = 0; i < uriCount; i++) uriSet.add(readString()); Set qnameSet1 = new HashSet(); int qncount1 = readShort(); for (int i = 0; i < qncount1; i++) qnameSet1.add(readQName()); Set qnameSet2 = new HashSet(); int qncount2 = readShort(); for (int i = 0; i < qncount2; i++) qnameSet2.add(readQName()); if (flag == 1) return QNameSet.forSets(uriSet, null, qnameSet1, qnameSet2); else return QNameSet.forSets(null, uriSet, qnameSet2, qnameSet1); }
QNameSet readQNameSet() { int flag = readShort(); Set uriSet = new HashSet(); int uriCount = readShort(); for (int i = 0; i < uriCount; i++) uriSet.add(readString()); Set qnameSet1 = new HashSet(); int qncount1 = readShort(); for (int i = 0; i < qncount1; i++) qnameSet1.add(readQName()); Set qnameSet2 = new HashSet(); int qncount2 = readShort(); for (int i = 0; i < qncount2; i++) qnameSet2.add(readQName()); if (flag == 1) return QNameSet.forSets(uriSet, null, qnameSet1, qnameSet2); else return QNameSet.forSets(null, uriSet, qnameSet2, qnameSet1); }
/** * Returns a QNameSet with the same contents as the given * QNameSetSpecification. * @return the copied QNameSet */ public static QNameSet forSpecification(QNameSetSpecification spec) { if (spec instanceof QNameSet) return (QNameSet)spec; return QNameSet.forSets(spec.excludedURIs(), spec.includedURIs(), spec.excludedQNamesInIncludedURIs(), spec.includedQNamesInExcludedURIs()); }
/** * Returns a new QNameSet that is the inverse of this one. */ public QNameSet inverse() { return QNameSet.forSets(includedURIs(), excludedURIs(), includedQNamesInExcludedURIs(), excludedQNamesInIncludedURIs()); }
/** * Returns a new QNameSet that is the inverse of this one. */ public QNameSet inverse() { return QNameSet.forSets(includedURIs(), excludedURIs(), includedQNamesInExcludedURIs(), excludedQNamesInIncludedURIs()); }
/** * Returns a QNameSet with the same contents as the given * QNameSetSpecification. * @return the copied QNameSet */ public static QNameSet forSpecification(QNameSetSpecification spec) { if (spec instanceof QNameSet) return (QNameSet)spec; return QNameSet.forSets(spec.excludedURIs(), spec.includedURIs(), spec.excludedQNamesInIncludedURIs(), spec.includedQNamesInExcludedURIs()); }
HashSet excludedURI = new HashSet(); excludedURI.add(SOAPENC); attrModel.setWildcardSet(QNameSet.forSets(excludedURI, null, Collections.EMPTY_SET, Collections.EMPTY_SET)); SchemaLocalAttributeImpl attr = new SchemaLocalAttributeImpl();
HashSet excludedURI = new HashSet(); excludedURI.add(SOAPENC); attrModel.setWildcardSet(QNameSet.forSets(excludedURI, null, Collections.EMPTY_SET, Collections.EMPTY_SET)); SchemaLocalAttributeImpl attr = new SchemaLocalAttributeImpl();