congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WebXmlModel.addEnvironmentReference
Code IndexAdd Tabnine to your IDE (free)

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

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

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

for (EnvironmentReferenceModel ref : refs)
  webXml.addEnvironmentReference(ref);
origin: windup/windup

for (EnvironmentReferenceModel ref : refs)
  webXml.addEnvironmentReference(ref);
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.modelWebXmlModeladdEnvironmentReference

Javadoc

Maintains a list of EnvironmentReferenceModels associated with this web.xml file

Popular methods of WebXmlModel

  • setDisplayName
    Gets the web.xml display-name property
  • setSpecificationVersion
    Sets the EE Specification version specified by this web.xml file
  • addLinkToTransformedFile
  • getEnvironmentReferences
    Maintains a list of EnvironmentReferenceModels associated with this web.xml file
  • getFilePath
  • getProjectModel

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Notification (javax.management)
  • JFileChooser (javax.swing)
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
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