Tabnine Logo
NamespaceService
Code IndexAdd Tabnine to your IDE (free)

How to use
NamespaceService
in
org.jboss.windup.rules.apps.xml.service

Best Java code snippets using org.jboss.windup.rules.apps.xml.service.NamespaceService (Showing top 4 results out of 315)

origin: windup/windup

public NamespaceMetaModel createNamespaceSchemaLocation(String namespaceURI, String schemaLocation)
{
  Iterable<? extends NamespaceMetaModel> results = getGraphContext().getQuery(NamespaceMetaModel.class)
      .traverse(g -> g.has("namespaceURI", namespaceURI).has("schemaLocation", schemaLocation))
      .toList(NamespaceMetaModel.class);
  if (results.iterator().hasNext())
  {
    return results.iterator().next();
  }
  // otherwise, create it.
  NamespaceMetaModel meta = getGraphContext().getFramed().addFramedVertex(NamespaceMetaModel.class);
  meta.setSchemaLocation(schemaLocation);
  meta.setURI(namespaceURI);
  return meta;
}
origin: org.jboss.windup.rules.apps/rules-xml

private void addXmlMetaInformation(GraphContext context, FileModel file)
  NamespaceService namespaceService = new NamespaceService(context);
        NamespaceMetaModel meta = namespaceService.createNamespaceSchemaLocation(namespace,
              namespaceSchemaLocations.get(namespace));
        meta.addXmlResource(xmlResourceModel);
origin: windup/windup

private void addXmlMetaInformation(GraphRewrite event, EvaluationContext context, XmlFileModel file)
  NamespaceService namespaceService = new NamespaceService(event.getGraphContext());
        NamespaceMetaModel meta = namespaceService.createNamespaceSchemaLocation(namespace,
              namespaceSchemaLocations.get(namespace));
        meta.addXmlResource(xmlResourceModel);
origin: org.jboss.windup.rules.apps/rules-xml

public NamespaceMetaModel createNamespaceSchemaLocation(String namespaceURI, String schemaLocation)
{
  Iterable<NamespaceMetaModel> results = getGraphContext().getQuery().type(NamespaceMetaModel.class)
        .has("namespaceURI", namespaceURI).has("schemaLocation", schemaLocation)
        .vertices(NamespaceMetaModel.class);
  for (NamespaceMetaModel result : results)
  {
    return result;
  }
  // otherwise, create it.
  NamespaceMetaModel meta = getGraphContext().getFramed().addVertex(null, NamespaceMetaModel.class);
  meta.setSchemaLocation(schemaLocation);
  meta.setURI(namespaceURI);
  return meta;
}
org.jboss.windup.rules.apps.xml.serviceNamespaceService

Javadoc

Adds createNamespaceSchemaLocation().

Most used methods

  • <init>
  • createNamespaceSchemaLocation
  • getGraphContext

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Reference (javax.naming)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top PhpStorm 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