congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DynaTag.getAttributeType
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.commons.jelly.DynaTag.getAttributeType (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

Expression expression = ((ExpressionAttribute) entry.getValue()).exp;
Class type = dynaTag.getAttributeType(name);
Object value = null;
if (type != null && type.isAssignableFrom(Expression.class) && !type.isAssignableFrom(Object.class)) {
origin: org.jvnet.hudson/commons-jelly

if ( Expression.class.isAssignableFrom( dynaTag.getAttributeType(name) ) ) {
  value = expression;
} else {
origin: commons-jelly/commons-jelly

Expression expression = (Expression) entry.getValue();
Class type = dynaTag.getAttributeType(name);
Object value = null;
if (type != null && type.isAssignableFrom(Expression.class) && !type.isAssignableFrom(Object.class)) {
origin: org.jvnet.hudson/commons-jelly

Expression expression = ((ExpressionAttribute) entry.getValue()).exp;
Class type = dynaTag.getAttributeType(name);
Object value = null;
if (type != null && type.isAssignableFrom(Expression.class) && !type.isAssignableFrom(Object.class)) {
origin: org.jenkins-ci/commons-jelly

if ( Expression.class.isAssignableFrom( dynaTag.getAttributeType(name) ) ) {
  value = expression;
} else {
origin: org.hudsonci.stapler/commons-jelly

Expression expression = ((ExpressionAttribute) entry.getValue()).exp;
Class type = dynaTag.getAttributeType(name);
Object value = null;
if (type != null && type.isAssignableFrom(Expression.class) && !type.isAssignableFrom(Object.class)) {
origin: org.hudsonci.stapler/commons-jelly

if ( Expression.class.isAssignableFrom( dynaTag.getAttributeType(name) ) ) {
  value = expression;
} else {
origin: commons-jelly/commons-jelly

if ( Expression.class.isAssignableFrom( dynaTag.getAttributeType(name) ) ) {
  value = expression;
} else {
org.apache.commons.jellyDynaTaggetAttributeType

Popular methods of DynaTag

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

Popular in Java

  • Start an intent from android
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Reference (javax.naming)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now