Codota Logo
WebXmlModel.addEnvironmentReference
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • onCreateOptionsMenu (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now