Examples of declarePrefix()


Examples of com.alexgilleran.icesoap.xml.XMLTextNode.declarePrefix()

  }

  @Test
  public void testNullValue() {
    XMLTextNode node = new XMLTextNodeImpl(null, "name", null);
    node.declarePrefix(XMLNode.NS_PREFIX_XSI, XMLNode.NS_URI_XSI);

    assertEquals(
        "<name xsi:nil=\"true\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" />",
        node.toString());
  }
View Full Code Here

Examples of com.alexgilleran.icesoap.xml.impl.XMLTextNodeImpl.declarePrefix()

  }

  @Test
  public void testNullValue() {
    XMLTextNode node = new XMLTextNodeImpl(null, "name", null);
    node.declarePrefix(XMLNode.NS_PREFIX_XSI, XMLNode.NS_URI_XSI);

    assertEquals(
        "<name xsi:nil=\"true\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" />",
        node.toString());
  }
View Full Code Here

Examples of org.semanticweb.HermiT.Prefixes.declarePrefix()

                        String arg=g.getOptarg();
                        int eqIndex=arg.indexOf('=');
                        if (eqIndex==-1) {
                            throw new IllegalArgumentException("the prefix declaration '"+arg+"' is not of the form PN=IRI.");
                        }
                        prefixes.declarePrefix(arg.substring(0,eqIndex),arg.substring(eqIndex+1));
                    }
                        break;
                    case kDefaultPrefix: {
                        String arg=g.getOptarg();
                        prefixes.declareDefaultPrefix(arg);
View Full Code Here

Examples of org.xml.sax.helpers.NamespaceSupport.declarePrefix()

    for (int i = 0; i < n; i++)
    {
      String prefix = (String)m_prefixMappings.elementAt(i++);
      String nsURI = (String)m_prefixMappings.elementAt(i);
      nssupport.declarePrefix(prefix, nsURI);
    }
    //m_prefixMappings.clear(); // JDK 1.2+ only -sc
    m_prefixMappings.removeAllElements(); // JDK 1.1.x compat -sc

    m_elementID++;
View Full Code Here

Examples of org.xml.sax.helpers.NamespaceSupport.declarePrefix()

    for (int i = 0; i < n; i++)
    {
      String prefix = (String)m_prefixMappings.elementAt(i++);
      String nsURI = (String)m_prefixMappings.elementAt(i);
      nssupport.declarePrefix(prefix, nsURI);
    }
    //m_prefixMappings.clear(); // JDK 1.2+ only -sc
    m_prefixMappings.removeAllElements(); // JDK 1.1.x compat -sc

    m_elementID++;
View Full Code Here

Examples of org.xml.sax.helpers.NamespaceSupport.declarePrefix()

    for (int i = 0; i < n; i++)
    {
      String prefix = (String)m_prefixMappings.elementAt(i++);
      String nsURI = (String)m_prefixMappings.elementAt(i);
      nssupport.declarePrefix(prefix, nsURI);
    }
    //m_prefixMappings.clear(); // JDK 1.2+ only -sc
    m_prefixMappings.removeAllElements(); // JDK 1.1.x compat -sc

    m_elementID++;
View Full Code Here

Examples of org.xml.sax.helpers.NamespaceSupport.declarePrefix()

    for (int i = 0; i < n; i++)
    {
      String prefix = (String)m_prefixMappings.elementAt(i++);
      String nsURI = (String)m_prefixMappings.elementAt(i);
      nssupport.declarePrefix(prefix, nsURI);
    }
    //m_prefixMappings.clear(); // JDK 1.2+ only -sc
    m_prefixMappings.removeAllElements(); // JDK 1.1.x compat -sc

    m_elementID++;
View Full Code Here

Examples of org.xml.sax.helpers.NamespaceSupport.declarePrefix()

    for (int i = 0; i < n; i++)
    {
      String prefix = (String)m_prefixMappings.elementAt(i++);
      String nsURI = (String)m_prefixMappings.elementAt(i);
      nssupport.declarePrefix(prefix, nsURI);
    }
    //m_prefixMappings.clear(); // JDK 1.2+ only -sc
    m_prefixMappings.removeAllElements(); // JDK 1.1.x compat -sc

    m_elementID++;
View Full Code Here

Examples of org.xml.sax.helpers.NamespaceSupport.declarePrefix()

    for (int i = 0; i < n; i++)
    {
      String prefix = (String)m_prefixMappings.elementAt(i++);
      String nsURI = (String)m_prefixMappings.elementAt(i);
      nssupport.declarePrefix(prefix, nsURI);
    }
    //m_prefixMappings.clear(); // JDK 1.2+ only -sc
    m_prefixMappings.removeAllElements(); // JDK 1.1.x compat -sc

    m_elementID++;
View Full Code Here

Examples of org.xml.sax.helpers.NamespaceSupport.declarePrefix()

    private String[] getInscopeNamespaces() {
        NamespaceSupport nss = new NamespaceSupport();

        nss.pushContext();
        for(int i=0; i < envelopeTag.ns.length; i+=2) {
            nss.declarePrefix(envelopeTag.ns[i], envelopeTag.ns[i+1]);
        }

        nss.pushContext();
        for(int i=0; i < bodyTag.ns.length; i+=2) {
            nss.declarePrefix(bodyTag.ns[i], bodyTag.ns[i+1]);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.