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

How to use
getAttributes
method
in
org.apache.commons.jelly.tags.core.UseBeanTag

Best Java code snippets using org.apache.commons.jelly.tags.core.UseBeanTag.getAttributes (Showing top 4 results out of 315)

origin: commons-jelly/commons-jelly

public void doTag(XMLOutput output) throws JellyTagException {
  Map attributes = getAttributes();
  String var = (String) attributes.get( "var" );
  Object classObject = attributes.get( "class" );
  addIgnoreProperty("class");
  addIgnoreProperty("var");
  try {
    // this method could return null in derived classes
    Class theClass = convertToClass(classObject);
    bean = newInstance(theClass, attributes, output);
    setBeanProperties(bean, attributes);
    // invoke body which could result in other properties being set
    invokeBody(output);
    processBean(var, bean);
  }
  catch (ClassNotFoundException e) {
    throw new JellyTagException(e);
  }
}
origin: org.hudsonci.stapler/commons-jelly

public void doTag(XMLOutput output) throws JellyTagException {
  Map attributes = getAttributes();
  String var = (String) attributes.get( "var" );
  Object classObject = attributes.get( "class" );
  addIgnoreProperty("class");
  addIgnoreProperty("var");
  try {
    // this method could return null in derived classes
    Class theClass = convertToClass(classObject);
    bean = newInstance(theClass, attributes, output);
    setBeanProperties(bean, attributes);
    // invoke body which could result in other properties being set
    invokeBody(output);
    processBean(var, bean);
  }
  catch (ClassNotFoundException e) {
    throw new JellyTagException(e);
  }
}
origin: org.jvnet.hudson/commons-jelly

public void doTag(XMLOutput output) throws JellyTagException {
  Map attributes = getAttributes();
  String var = (String) attributes.get( "var" );
  Object classObject = attributes.get( "class" );
  addIgnoreProperty("class");
  addIgnoreProperty("var");
  try {
    // this method could return null in derived classes
    Class theClass = convertToClass(classObject);
    bean = newInstance(theClass, attributes, output);
    setBeanProperties(bean, attributes);
    // invoke body which could result in other properties being set
    invokeBody(output);
    processBean(var, bean);
  }
  catch (ClassNotFoundException e) {
    throw new JellyTagException(e);
  }
}
origin: org.jenkins-ci/commons-jelly

public void doTag(XMLOutput output) throws JellyTagException {
  Map attributes = getAttributes();
  String var = (String) attributes.get( "var" );
  Object classObject = attributes.get( "class" );
  addIgnoreProperty("class");
  addIgnoreProperty("var");
  try {
    // this method could return null in derived classes
    Class theClass = convertToClass(classObject);
    bean = newInstance(theClass, attributes, output);
    setBeanProperties(bean, attributes);
    // invoke body which could result in other properties being set
    invokeBody(output);
    processBean(var, bean);
  }
  catch (ClassNotFoundException e) {
    throw new JellyTagException(e);
  }
}
org.apache.commons.jelly.tags.coreUseBeanTaggetAttributes

Popular methods of UseBeanTag

  • processBean
    By default this will export the bean using the given variable if it is defined. This Strategy method
  • addIgnoreProperty
    Adds a name to the Set of property names that will be skipped when setting bean properties. In other
  • convertToClass
    Attempts to convert the given object to a Class instance. If the classObject is already a Class it w
  • findAncestorWithClass
  • getAttributeType
  • getDefaultClass
    Allows derived classes to provide a default bean implementation class
  • getIgnorePropertySet
  • invokeBody
  • isIgnoreUnknownProperties
  • loadClass
    Loads the given class using the default class loading mechanism which is to try use the current Thre
  • newInstance
    Creates a new instance of the given class, which by default will invoke the default constructor. Der
  • setBeanProperties
    Sets the properties on the bean. Derived tags could implement some custom type conversion etc. This
  • newInstance,
  • setBeanProperties,
  • validateBeanProperties,
  • doTag

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JFileChooser (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • 14 Best Plugins for Eclipse
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