Tabnine Logo
Attribute.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.apache.commons.jelly.impl.Attribute

Best Java code snippets using org.apache.commons.jelly.impl.Attribute.getName (Showing top 10 results out of 315)

origin: org.hudsonci.stapler/commons-jelly-tags-define

/**
 * Adds a new attribute definition to this dynamic tag
 */
public void addAttribute(Attribute attribute) {
  if ( attributes == null ) {
    attributes = new HashMap();
  }
  attributes.put( attribute.getName(), attribute );
}
origin: org.hudsonci.stapler/commons-jelly-tags-define

/**
 * Adds a new attribute definition to this dynamic tag
 */
public void addAttribute(Attribute attribute) {
  if ( attributes == null ) {
    attributes = new HashMap();
  }
  attributes.put( attribute.getName(), attribute );
}
origin: org.jenkins-ci/commons-jelly

public void doTag(XMLOutput output) throws JellyTagException {
  // lets find any attributes that are not set and
  for ( Iterator iter = attributes.values().iterator(); iter.hasNext(); ) {
    Attribute attribute = (Attribute) iter.next();
    String name = attribute.getName();
    if ( ! setAttributesSet.contains( name ) ) {
      if ( attribute.isRequired() ) {
        throw new MissingAttributeException(name);
      }
      // lets get the default value
      Object value = null;
      Expression expression = attribute.getDefaultValue();
      if ( expression != null ) {
        value = expression.evaluate(context);
      }
      // only set non-null values?
      if ( value != null ) {
        super.setAttribute(name, value);
      }
    }
  }
  invokeBody(output);
  // export the bean if required
  if ( var != null ) {
    context.setVariable(var, getDynaBean());
  }
}
origin: commons-jelly/commons-jelly

public void doTag(XMLOutput output) throws JellyTagException {
  // lets find any attributes that are not set and
  for ( Iterator iter = attributes.values().iterator(); iter.hasNext(); ) {
    Attribute attribute = (Attribute) iter.next();
    String name = attribute.getName();
    if ( ! setAttributesSet.contains( name ) ) {
      if ( attribute.isRequired() ) {
        throw new MissingAttributeException(name);
      }
      // lets get the default value
      Object value = null;
      Expression expression = attribute.getDefaultValue();
      if ( expression != null ) {
        value = expression.evaluate(context);
      }
      // only set non-null values?
      if ( value != null ) {
        super.setAttribute(name, value);
      }
    }
  }
  invokeBody(output);
  // export the bean if required
  if ( var != null ) {
    context.setVariable(var, getDynaBean());
  }
}
origin: org.hudsonci.stapler/commons-jelly

public void doTag(XMLOutput output) throws JellyTagException {
  // lets find any attributes that are not set and
  for ( Iterator iter = attributes.values().iterator(); iter.hasNext(); ) {
    Attribute attribute = (Attribute) iter.next();
    String name = attribute.getName();
    if ( ! setAttributesSet.contains( name ) ) {
      if ( attribute.isRequired() ) {
        throw new MissingAttributeException(name);
      }
      // lets get the default value
      Object value = null;
      Expression expression = attribute.getDefaultValue();
      if ( expression != null ) {
        value = expression.evaluate(context);
      }
      // only set non-null values?
      if ( value != null ) {
        super.setAttribute(name, value);
      }
    }
  }
  invokeBody(output);
  // export the bean if required
  if ( var != null ) {
    context.setVariable(var, getDynaBean());
  }
}
origin: org.jvnet.hudson/commons-jelly

public void doTag(XMLOutput output) throws JellyTagException {
  // lets find any attributes that are not set and
  for ( Iterator iter = attributes.values().iterator(); iter.hasNext(); ) {
    Attribute attribute = (Attribute) iter.next();
    String name = attribute.getName();
    if ( ! setAttributesSet.contains( name ) ) {
      if ( attribute.isRequired() ) {
        throw new MissingAttributeException(name);
      }
      // lets get the default value
      Object value = null;
      Expression expression = attribute.getDefaultValue();
      if ( expression != null ) {
        value = expression.evaluate(context);
      }
      // only set non-null values?
      if ( value != null ) {
        super.setAttribute(name, value);
      }
    }
  }
  invokeBody(output);
  // export the bean if required
  if ( var != null ) {
    context.setVariable(var, getDynaBean());
  }
}
origin: commons-jelly/commons-jelly

String name = attribute.getName();
if ( ! setAttributesSet.contains( name ) ) {
  if ( attribute.isRequired() ) {
origin: org.jvnet.hudson/commons-jelly

String name = attribute.getName();
if ( ! setAttributesSet.contains( name ) ) {
  if ( attribute.isRequired() ) {
origin: org.hudsonci.stapler/commons-jelly

String name = attribute.getName();
if ( ! setAttributesSet.contains( name ) ) {
  if ( attribute.isRequired() ) {
origin: org.jenkins-ci/commons-jelly

String name = attribute.getName();
if ( ! setAttributesSet.contains( name ) ) {
  if ( attribute.isRequired() ) {
org.apache.commons.jelly.implAttributegetName

Javadoc

Returns the name.

Popular methods of Attribute

  • getDefaultValue
    Returns the defaultValue.
  • isRequired
    Returns whether this attribute is required.
  • <init>
  • setDefaultValue
    Sets the defaultValue.
  • setName
    Sets the name.
  • setRequired
    Sets whether this attribute is required.

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JFrame (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top PhpStorm 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