Tabnine Logo
MapBasedNamespaceContext.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.helger.xml.namespace.MapBasedNamespaceContext
constructor

Best Java code snippets using com.helger.xml.namespace.MapBasedNamespaceContext.<init> (Showing top 13 results out of 315)

origin: com.helger/ph-xml

/**
 * Set the namespace context to be used.
 *
 * @param aNamespaceContext
 *        The namespace context to be used. May be <code>null</code>.
 * @return this
 */
@Nonnull
public final XMLWriterSettings setNamespaceContext (@Nullable final INamespaceContext aNamespaceContext)
{
 // A namespace context must always be present, to resolve default namespaces
 m_aNamespaceContext = aNamespaceContext != null ? aNamespaceContext : new MapBasedNamespaceContext ();
 return this;
}
origin: com.helger/ph-xml

@Nonnull
@ReturnsMutableCopy
public MapBasedNamespaceContext getClone ()
{
 return new MapBasedNamespaceContext (this);
}
origin: com.helger/ph-bdve

public ValidationExecutorSchematron (@Nonnull final IValidationArtefact aValidationArtefact,
                   @Nullable final String sPrerequisiteXPath,
                   @Nullable final IIterableNamespaceContext aNamespaceContext)
{
 super (aValidationArtefact);
 ValueEnforcer.isTrue (aValidationArtefact.getValidationArtefactType ().isSchematronBased (),
            "Artifact is not Schematron");
 m_sPrerequisiteXPath = sPrerequisiteXPath;
 m_aNamespaceContext = aNamespaceContext == null ? null : new MapBasedNamespaceContext (aNamespaceContext);
}
origin: com.helger/ph-ebinterface

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);
}
origin: com.helger/ph-schematron

/**
 * @return All contained namespaces as a single namespace context
 */
@Nonnull
@ReturnsMutableCopy
public MapBasedNamespaceContext getAsNamespaceContext ()
{
 final MapBasedNamespaceContext ret = new MapBasedNamespaceContext ();
 for (final PSNS aNS : m_aNSs)
  ret.addMapping (aNS.getPrefix (), aNS.getUri ());
 return ret;
}
origin: com.helger/peppol-commons

 public AbstractSMPMarshaller (@Nonnull final Class <JAXBTYPE> aType,
                @Nonnull final IFunction <JAXBTYPE, JAXBElement <JAXBTYPE>> aWrapper)
 {
  super (aType,
      isValidationEnabled () ? new CommonsArrayList <> (CXMLDSig.getXSDResource (), XSD1, XSD2, XSD3) : null,
      aWrapper);

  final MapBasedNamespaceContext aNSContext = new MapBasedNamespaceContext ();
  aNSContext.addMapping ("smp", ObjectFactory._ServiceGroup_QNAME.getNamespaceURI ());
  aNSContext.addMapping ("ds", "http://www.w3.org/2000/09/xmldsig#");
  setNamespaceContext (aNSContext);
 }
}
origin: com.helger/peppol-commons

 public AbstractBDXRMarshaller (@Nonnull final Class <JAXBTYPE> aType,
                 @Nonnull final IFunction <JAXBTYPE, JAXBElement <JAXBTYPE>> aWrapper)
 {
  super (aType, isValidationEnabled () ? new CommonsArrayList <> (CXMLDSig.getXSDResource (), XSD) : null, aWrapper);

  final MapBasedNamespaceContext aNSContext = new MapBasedNamespaceContext ();
  aNSContext.addMapping ("bdxr", ObjectFactory._ServiceGroup_QNAME.getNamespaceURI ());
  aNSContext.addMapping ("ds", "http://www.w3.org/2000/09/xmldsig#");
  setNamespaceContext (aNSContext);
 }
}
origin: com.helger/ph-genericode

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);
}
origin: phax/ph-schematron

/**
 * @return All contained namespaces as a single namespace context
 */
@Nonnull
@ReturnsMutableCopy
public MapBasedNamespaceContext getAsNamespaceContext ()
{
 final MapBasedNamespaceContext ret = new MapBasedNamespaceContext ();
 for (final PSNS aNS : m_aNSs)
  ret.addMapping (aNS.getPrefix (), aNS.getUri ());
 return ret;
}
origin: phax/ph-ubl

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);
}
origin: phax/ph-ubl

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);
}
origin: com.helger/ph-asic

 /**
  * Create a writer builder for Manifest.
  *
  * @return The builder and never <code>null</code>
  */
 @Nonnull
 public static AsicWriter <Manifest> oasisManifest ()
 {
  final AsicWriter <Manifest> ret = new AsicWriter <> (EAsicDocumentType.MANIFEST);
  final MapBasedNamespaceContext aCtx = new MapBasedNamespaceContext ();
  // Not default namespace because attribute form is qualified!
  aCtx.addMapping ("manifest", "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0");
  ret.setNamespaceContext (aCtx);
  ret.setFormattedOutput (true);
  return ret;
 }
}
origin: phax/ph-schematron

final MapBasedNamespaceContext aNSContext = new MapBasedNamespaceContext ().addMapping ("svrl",
                                            CSVRL.SVRL_NAMESPACE_URI);
com.helger.xml.namespaceMapBasedNamespaceContext<init>

Javadoc

Default constructor.

Popular methods of MapBasedNamespaceContext

  • addDefaultNamespaceURI
    Add the default namespace URL
  • addMapping
    Add a new prefix to namespace mapping. If a prefix is already present, an IllegalArgumentException i
  • addMappings
  • getPrefix
  • setMapping
    Add a new prefix to namespace mapping. If a prefix is already present it is overwritten.
  • getClone
  • getNamespaceURI
  • getPrefixes
  • setMappings
  • _addMapping
  • getCustomNamespaceURI
  • getDefaultNamespaceURI
  • getCustomNamespaceURI,
  • getDefaultNamespaceURI,
  • getPrefixToNamespaceURIMap,
  • setDefaultNamespaceURI

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • BoxLayout (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now