@Test public void testGetNamespaceURI() { assertEquals(HL7_URI,ctx.getNamespaceURI(HL7_PREFIX)); assertEquals(XENC_URI,ctx.getNamespaceURI(XENC_PREFIX)); assertEquals(RIM_URI,ctx.getNamespaceURI(RIM_PREFIX)); assertEquals(QUERY_URI,ctx.getNamespaceURI(QUERY_PREFIX)); assertEquals(IHE_ITI_XDSB_2007_URI,ctx.getNamespaceURI(IHE_ITI_XDSB_2007_PREFIX)); assertEquals(XACML_2_URI,ctx.getNamespaceURI(XACML_2_PREFIX)); assertNull(ctx.getNamespaceURI("NOT_A_URI")); }
@Override public String getNamespaceURI(String prefix) { return namespaceUris.get(prefix); }
PepNamespaceContext implements NamespaceContext { @Override public String getNamespaceURI(String prefix) { return namespaceUris.get(prefix); } }
PepNamespaceContext implements NamespaceContext { @Override public String getNamespaceURI(String prefix) { return namespaceUris.get(prefix); } PepNamespaceContext(); }
PepNamespaceContext implements NamespaceContext { @Override public String getNamespaceURI(String prefix) { return namespaceUris.get(prefix); } PepNamespaceContext(); @Override String getNamespaceURI(String prefix); @Override String getPrefix(String uri); @SuppressWarnings("rawtypes") @Override Iterator getPrefixes(String val); }
PepNamespaceContext implements NamespaceContext { @Override public String getNamespaceURI(String prefix) { return namespaceUris.get(prefix); } PepNamespaceContext(); @Override String getNamespaceURI(String prefix); @Override String getPrefix(String uri); @SuppressWarnings("rawtypes") @Override Iterator getPrefixes(String val); static final String HL7_PREFIX; static final String HL7_URI; static final String XENC_PREFIX; static final String XENC_URI; static final String RIM_PREFIX; static final String RIM_URI; static final String QUERY_PREFIX; static final String QUERY_URI; static final String IHE_ITI_XDSB_2007_PREFIX; static final String IHE_ITI_XDSB_2007_URI; static final String XACML_2_PREFIX; static final String XACML_2_URI; }