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

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

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

QNameSet.forSets介绍

[英]Returns a QNameSet based on the given sets of excluded URIs, included URIs, excluded QNames in included namespaces, and included QNames in excluded namespaces.
[中]基于给定的排除URI集、包含URI集、包含命名空间中的排除QName集和排除命名空间中的包含QName集返回QNameSet。

代码示例

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

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);
}

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

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);
}

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

/**
 * Returns a new QNameSet that is the inverse of this one.
 */
public QNameSet inverse()
{
  return QNameSet.forSets(includedURIs(), excludedURIs(), includedQNamesInExcludedURIs(), excludedQNamesInIncludedURIs());
}

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

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

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

HashSet excludedURI = new HashSet();
excludedURI.add(SOAPENC);
attrModel.setWildcardSet(QNameSet.forSets(excludedURI, null, Collections.EMPTY_SET,
    Collections.EMPTY_SET));
SchemaLocalAttributeImpl attr = new SchemaLocalAttributeImpl();

代码示例来源:origin: org.apache.geronimo.modules/geronimo-naming-builder

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);
}

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

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);
}

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

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);
}

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

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);
}

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

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);
}

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

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

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

/**
 * Returns a new QNameSet that is the inverse of this one.
 */
public QNameSet inverse()
{
  return QNameSet.forSets(includedURIs(), excludedURIs(), includedQNamesInExcludedURIs(), excludedQNamesInIncludedURIs());
}

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

/**
 * Returns a new QNameSet that is the inverse of this one.
 */
public QNameSet inverse()
{
  return QNameSet.forSets(includedURIs(), excludedURIs(), includedQNamesInExcludedURIs(), excludedQNamesInIncludedURIs());
}

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

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

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

HashSet excludedURI = new HashSet();
excludedURI.add(SOAPENC);
attrModel.setWildcardSet(QNameSet.forSets(excludedURI, null, Collections.EMPTY_SET,
    Collections.EMPTY_SET));
SchemaLocalAttributeImpl attr = new SchemaLocalAttributeImpl();

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

HashSet excludedURI = new HashSet();
excludedURI.add(SOAPENC);
attrModel.setWildcardSet(QNameSet.forSets(excludedURI, null, Collections.EMPTY_SET,
    Collections.EMPTY_SET));
SchemaLocalAttributeImpl attr = new SchemaLocalAttributeImpl();

相关文章