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

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

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

origin: commons-jelly/commons-jelly

/**
 * If {@link #isIgnoreUnknownProperties()} returns true, make sure that
 * every non-ignored ({@see #addIgnoreProperty(String)}) property
 * matches a writable property on the target bean.
 * @param bean the bean to validate
 * @param attributes the list of properties to validate
 * @throws JellyTagException when a property is not writeable
 */
protected void validateBeanProperties(Object bean, Map attributes) throws JellyTagException {
  if (!isIgnoreUnknownProperties()) {
    for (Iterator i=attributes.keySet().iterator();i.hasNext();) {
      String attrName = (String)i.next();
      if (! PropertyUtils.isWriteable(bean, attrName)) {
        throw new JellyTagException("No bean property found: " + attrName);
      }
    }
  }
}
origin: org.jenkins-ci/commons-jelly

/**
 * If {@link #isIgnoreUnknownProperties()} returns true, make sure that
 * every non-ignored ({@see #addIgnoreProperty(String)}) property
 * matches a writable property on the target bean.
 * @param bean the bean to validate
 * @param attributes the list of properties to validate
 * @throws JellyTagException when a property is not writeable
 */
protected void validateBeanProperties(Object bean, Map attributes) throws JellyTagException {
  if (!isIgnoreUnknownProperties()) {
    for (Iterator i=attributes.keySet().iterator();i.hasNext();) {
      String attrName = (String)i.next();
      if (! PropertyUtils.isWriteable(bean, attrName)) {
        throw new JellyTagException("No bean property found: " + attrName);
      }
    }
  }
}
origin: org.jvnet.hudson/commons-jelly

/**
 * If {@link #isIgnoreUnknownProperties()} returns true, make sure that
 * every non-ignored ({@see #addIgnoreProperty(String)}) property
 * matches a writable property on the target bean.
 * @param bean the bean to validate
 * @param attributes the list of properties to validate
 * @throws JellyTagException when a property is not writeable
 */
protected void validateBeanProperties(Object bean, Map attributes) throws JellyTagException {
  if (!isIgnoreUnknownProperties()) {
    for (Iterator i=attributes.keySet().iterator();i.hasNext();) {
      String attrName = (String)i.next();
      if (! PropertyUtils.isWriteable(bean, attrName)) {
        throw new JellyTagException("No bean property found: " + attrName);
      }
    }
  }
}
origin: org.hudsonci.stapler/commons-jelly

/**
 * If {@link #isIgnoreUnknownProperties()} returns true, make sure that
 * every non-ignored ({@see #addIgnoreProperty(String)}) property
 * matches a writable property on the target bean.
 * @param bean the bean to validate
 * @param attributes the list of properties to validate
 * @throws JellyTagException when a property is not writeable
 */
protected void validateBeanProperties(Object bean, Map attributes) throws JellyTagException {
  if (!isIgnoreUnknownProperties()) {
    for (Iterator i=attributes.keySet().iterator();i.hasNext();) {
      String attrName = (String)i.next();
      if (! PropertyUtils.isWriteable(bean, attrName)) {
        throw new JellyTagException("No bean property found: " + attrName);
      }
    }
  }
}
org.apache.commons.jelly.tags.coreUseBeanTagisIgnoreUnknownProperties

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
  • getAttributes
  • getDefaultClass
    Allows derived classes to provide a default bean implementation class
  • getIgnorePropertySet
  • invokeBody
  • 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

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • 21 Best IntelliJ Plugins
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