Tabnine Logo
WebXmlModel.setSpecificationVersion
Code IndexAdd Tabnine to your IDE (free)

How to use
setSpecificationVersion
method
in
org.jboss.windup.rules.apps.javaee.model.WebXmlModel

Best Java code snippets using org.jboss.windup.rules.apps.javaee.model.WebXmlModel.setSpecificationVersion (Showing top 3 results out of 315)

origin: org.jboss.windup.rules.apps/windup-rules-java-ee

webXml.setSpecificationVersion(webXmlVersion);
origin: windup/windup

webXml.setSpecificationVersion(webXmlVersion);
origin: org.jboss.windup.rules.apps/rules-java-ee

private void addWebXmlMetadata(GraphContext context, XmlFileModel xml, Document doc)
{
  TechnologyTagService technologyTagService = new TechnologyTagService(context);
  TechnologyTagModel technologyTag = technologyTagService.addTagToFileModel(xml, TECH_TAG, TECH_TAG_LEVEL);
  WebXmlService webXmlService = new WebXmlService(context);
  String webXmlVersion = getVersion(xml, doc);
  // check the root XML node.
  WebXmlModel webXml = webXmlService.addTypeToModel(xml);
  // change "_" in the version to "."
  if (StringUtils.isNotBlank(webXmlVersion))
  {
    webXmlVersion = StringUtils.replace(webXmlVersion, "_", ".");
    webXml.setSpecificationVersion(webXmlVersion);
    // set the tag version
    technologyTag.setVersion(webXmlVersion);
  }
  String displayName = $(doc).child("display-name").text();
  displayName = StringUtils.trimToNull(displayName);
  if (StringUtils.isNotBlank(displayName))
  {
    webXml.setDisplayName(displayName);
  }
  // extract references.
  List<EnvironmentReferenceModel> refs = processEnvironmentReference(context, doc.getDocumentElement());
  for (EnvironmentReferenceModel ref : refs)
  {
    webXml.addEnvironmentReference(ref);
  }
}
org.jboss.windup.rules.apps.javaee.modelWebXmlModelsetSpecificationVersion

Javadoc

Sets the EE Specification version specified by this web.xml file

Popular methods of WebXmlModel

  • addEnvironmentReference
    Maintains a list of WebXmlResourceReferenceModels associated with this web.xml file
  • setDisplayName
    Gets the web.xml display-name property
  • addLinkToTransformedFile
  • getEnvironmentReferences
    Maintains a list of EnvironmentReferenceModels associated with this web.xml file
  • getFilePath
  • getProjectModel

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with 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