Package org.apache.xml.utils

Examples of org.apache.xml.utils.StringVector


      // foo; the latter is true if and only if all nodes in $x have
      // the string-value foo.
      NodeIterator list1 = nodeset();
      NodeIterator list2 = ((XNodeSet) obj2).nodeset();
      Node node1;
      StringVector node2Strings = null;

      while (null != (node1 = list1.nextNode()))
      {
        String s1 = getStringFromNode(node1);

        if (null == node2Strings)
        {
          Node node2;

          while (null != (node2 = list2.nextNode()))
          {
            String s2 = getStringFromNode(node2);

            if (comparator.compareStrings(s1, s2))
            {
              result = true;

              break;
            }

            if (null == node2Strings)
              node2Strings = new StringVector();

            node2Strings.addElement(s2);
          }
        }
        else
        {
          int n = node2Strings.size();

          for (int i = 0; i < n; i++)
          {
            if (comparator.compareStrings(s1, node2Strings.elementAt(i)))
            {
              result = true;

              break;
            }
View Full Code Here


      if (!(value instanceof Boolean))
        throw new RuntimeException(XSLMessages.createMessage(XSLTErrorResources.ER_PROPERTY_VALUE_BOOLEAN, new Object[]{XalanProperties.SOURCE_LOCATION})); //"Value for property "
                                  // + XalanProperties.SOURCE_LOCATION
                                  // + " should be a Boolean instance");
      m_useSourceLocationProperty = ((Boolean)value).booleanValue();
      m_sourceSystemId = new StringVector();
      m_sourceLine = new IntVector();
      m_sourceColumn = new IntVector();
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.xml.utils.StringVector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.