Examples of PrefixMapping


Examples of com.hp.jena.rules.ast.PrefixMapping

        assertEquals( "my:B#", AB.getURI( "b" ) );
        }
   
    @Test public void testOverridingPrefersLaterPrefix()
        {
        PrefixMapping A = PrefixMapping.create().setPrefix( "a", "my:A#" );
        PrefixMapping B = PrefixMapping.create().setPrefix( "a", "my:B#" );
        PrefixMapping AB = A.overriddenBy( B );
        assertEquals( "my:B#", AB.getURI( "a" ) );
        assertEquals( null, AB.getURI( "b" ) );
        }
View Full Code Here

Examples of com.topologi.diffx.sequence.PrefixMapping

            // This we need to diff
            //leftReport.append( "#" );
            seq1.addSequence(leftESC.getItem(k));

            // Don't forget our existing prefix mappings!
            PrefixMapping existingPM = leftESC.getItem(k).getPrefixMapping();
            addToPrefixMapping(seq1.getPrefixMapping(), existingPM);
          } else {
            // Does this happen?
            // This just goes straight into the output,
              formatter.declarePrefixMapping(leftESC.getItem(k).getPrefixMapping());
            //out.append("\n<!-- Adding same II -->\n");
            addComment("Adding same II", formatter);
            formatEventSequence(leftESC.getItem(k), formatter);
            //out.append("\n<!-- .. Adding same done -->");
            addComment(".. Adding same done", formatter);
          }
        }


        EventSequence seq2 = new EventSequence();
        // Evil hack - doesn't work
        //seq2.mapPrefix("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "w");
        for (int k = rdi.rightStart() ; k< rdi.rightEnd() ; k++) {
          if (rdi.kind()==rdi.CHANGE) {
            // This is the RHS of the diff
            //rightReport.append( "#" );
            seq2.addSequence(rightESC.getItem(k));

            // Don't forget our existing prefix mappings!
            PrefixMapping existingPM = rightESC.getItem(k).getPrefixMapping();
            addToPrefixMapping(seq2.getPrefixMapping(), existingPM);

          }
        }
View Full Code Here

Examples of flex2.compiler.util.PrefixMapping

                {
                    nsId = PrefixMapping.getNamespaceId(nsUri, namespaces);                       
                }
                else
                {
                    PrefixMapping pm = (PrefixMapping) namespaces.peek();
                    nsUri = pm.getUri();
                    nsId = pm.getNs();
                }
               
                if (nsId > 0)
                {
                    attrExpr = e4xElementsByLocalName + ".@ns" + nsId + "::" + attrName.getLocalPart();
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.