Java Code Examples for com.helger.xml.namespace.MapBasedNamespaceContext#addMappings()
The following examples show how to use
com.helger.xml.namespace.MapBasedNamespaceContext#addMappings() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DianUBLWriterBuilder.java From ph-ubl with Apache License 2.0 | 5 votes |
public DianUBLWriterBuilder (@Nonnull final EDianUBLDocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = new MapBasedNamespaceContext (); aNSContext.addMappings (new DianUBLNamespaceContext ()); aNSContext.addDefaultNamespaceURI (m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }
Example 2
Source File: UBLTRWriterBuilder.java From ph-ubl with Apache License 2.0 | 5 votes |
public UBLTRWriterBuilder (@Nonnull final EUBLTRDocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = new MapBasedNamespaceContext (); aNSContext.addMappings (new UBLTRNamespaceContext ()); aNSContext.addDefaultNamespaceURI (m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }
Example 3
Source File: UBLPEWriterBuilder.java From ph-ubl with Apache License 2.0 | 5 votes |
public UBLPEWriterBuilder (@Nonnull final EUBLPEDocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = new MapBasedNamespaceContext (); aNSContext.addMappings (new UBLPENamespaceContext ()); aNSContext.addDefaultNamespaceURI (m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }