Tabnine Logo
DynaTag.setAttribute
Code IndexAdd Tabnine to your IDE (free)

How to use
setAttribute
method
in
org.apache.commons.jelly.DynaTag

Best Java code snippets using org.apache.commons.jelly.DynaTag.setAttribute (Showing top 9 results out of 315)

origin: stapler/stapler

private void configureTag(Tag tag, Map attributes) throws JellyException {
  if ( tag instanceof DynaTag ) {
    DynaTag dynaTag = (DynaTag) tag;
    for (Object o : attributes.entrySet()) {
      Entry entry = (Entry) o;
      String name = (String) entry.getKey();
      if(name.equals("xmlns"))    continue;   // we'll process this by ourselves
      Object value = getValue(entry, dynaTag.getAttributeType(name));
      dynaTag.setAttribute(name, value);
    }
  } else {
    // treat the tag as a bean
    DynaBean dynaBean = new ConvertingWrapDynaBean( tag );
    for (Object o : attributes.entrySet()) {
      Entry entry = (Entry) o;
      String name = (String) entry.getKey();
      if(name.equals("xmlns"))    continue;   // we'll process this by ourselves
      DynaProperty property = dynaBean.getDynaClass().getDynaProperty(name);
      if (property == null) {
        throw new JellyException("This tag does not understand the '" + name + "' attribute");
      }
      dynaBean.set(name, getValue(entry,property.getType()));
    }
  }
}
origin: org.jenkins-ci/commons-jelly

  value = expression.evaluateRecurse(context);
dynaTag.setAttribute(name, value);
origin: org.jvnet.hudson/commons-jelly

dynaTag.setAttribute(name, value);
origin: commons-jelly/commons-jelly

  value = expression.evaluateRecurse(context);
dynaTag.setAttribute(name, value);
origin: org.jvnet.hudson/commons-jelly

  value = expression.evaluateRecurse(context);
dynaTag.setAttribute(name, value);
origin: org.jenkins-ci/commons-jelly

dynaTag.setAttribute(name, value);
origin: org.hudsonci.stapler/commons-jelly

  value = expression.evaluateRecurse(context);
dynaTag.setAttribute(name, value);
origin: org.hudsonci.stapler/commons-jelly

dynaTag.setAttribute(name, value);
origin: commons-jelly/commons-jelly

dynaTag.setAttribute(name, value);
org.apache.commons.jellyDynaTagsetAttribute

Javadoc

Sets an attribute value of this tag before the tag is invoked

Popular methods of DynaTag

  • getAttributeType

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Sublime Text 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