@Nonnull protected <T> JAXBElement <T> createJAXBElement (@Nonnull final T aValue) { return new JAXBElement <> (new QName (m_aDocType.getNamespaceURI (), m_aDocType.getLocalName ()), GenericReflection.uncheckedCast (aValue.getClass ()), null, aValue); } }
public EbInterfaceWriter (@Nonnull final EEbInterfaceDocumentType eDocType) { super (eDocType); // Create a default namespace context for the passed document type final MapBasedNamespaceContext aNSContext = new MapBasedNamespaceContext (); aNSContext.setMapping ("eb", m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }
public UBL21WriterBuilder (@Nonnull final EUBL21DocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = UBL21NamespaceContext.getInstance ().getClone (); aNSContext.addDefaultNamespaceURI (m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }
public UBL20WriterBuilder (@Nonnull final EUBL20DocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = UBL20NamespaceContext.getInstance ().getClone (); aNSContext.addDefaultNamespaceURI (m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }
public GenericodeWriter (@Nonnull final EGenericodeDocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = new MapBasedNamespaceContext (); aNSContext.addMapping ("gc", m_aDocType.getNamespaceURI ()); aNSContext.addDefaultNamespaceURI (""); setNamespaceContext (aNSContext); }
public UBL22WriterBuilder (@Nonnull final EUBL22DocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = UBL22NamespaceContext.getInstance ().getClone (); aNSContext.addDefaultNamespaceURI (m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }
public UBL21WriterBuilder (@Nonnull final EUBL21DocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = UBL21NamespaceContext.getInstance ().getClone (); aNSContext.addDefaultNamespaceURI (m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }
public UBL22WriterBuilder (@Nonnull final EUBL22DocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = UBL22NamespaceContext.getInstance ().getClone (); aNSContext.addDefaultNamespaceURI (m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }
public UBL20WriterBuilder (@Nonnull final EUBL20DocumentType eDocType) { super (eDocType); // Create a special namespace context for the passed document type final MapBasedNamespaceContext aNSContext = UBL20NamespaceContext.getInstance ().getClone (); aNSContext.addDefaultNamespaceURI (m_aDocType.getNamespaceURI ()); setNamespaceContext (aNSContext); }
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); }
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); }