Tabnine Logo
SetNestedPropertiesRule.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.commons.digester.SetNestedPropertiesRule
constructor

Best Java code snippets using org.apache.commons.digester.SetNestedPropertiesRule.<init> (Showing top 10 results out of 315)

origin: commons-digester/commons-digester

/**
 * Adds an {@link SetNestedPropertiesRule}.
 *
 * @param pattern register the rule with this pattern
 * @param elementName elment name that a property maps to
 * @param propertyName property name of the element mapped from
 *
 * @since 1.6
 */
public void addSetNestedProperties(String pattern, String elementName, String propertyName) {

  addRule(pattern, new SetNestedPropertiesRule(elementName, propertyName));
}
origin: commons-digester/commons-digester

/**
 * Adds an {@link SetNestedPropertiesRule}.
 *
 * @param pattern register the rule with this pattern
 * @param elementNames elment names that (in order) map to properties
 * @param propertyNames property names that (in order) elements are mapped to
 *
 * @since 1.6
 */    
public void addSetNestedProperties(String pattern, String[] elementNames, String[] propertyNames) {

  addRule(pattern, new SetNestedPropertiesRule(elementNames, propertyNames));
}
origin: commons-digester/commons-digester

  @Override
  public Object createObject(Attributes attributes) {
    boolean allowUnknownChildElements = 
      "true".equalsIgnoreCase(attributes.getValue("allow-unknown-child-elements"));
      SetNestedPropertiesRule snpr = new SetNestedPropertiesRule();
      snpr.setAllowUnknownChildElements( allowUnknownChildElements );
      return snpr;
  }
}
origin: commons-digester/commons-digester

/**
 * Adds an {@link SetNestedPropertiesRule}.
 *
 * @param pattern register the rule with this pattern
 *
 * @since 1.6
 */
public void addSetNestedProperties(String pattern) {

  addRule(pattern, new SetNestedPropertiesRule());
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Adds an {@link SetNestedPropertiesRule}.
 *
 * @param pattern register the rule with this pattern
 * @param elementNames elment names that (in order) map to properties
 * @param propertyNames property names that (in order) elements are mapped to
 *
 * @since 1.6
 */    
public void addSetNestedProperties(String pattern, String[] elementNames, String[] propertyNames) {

  addRule(pattern, new SetNestedPropertiesRule(elementNames, propertyNames));
}
origin: com.alibaba.citrus.tool/antx-autoexpand

  public Object createObject(Attributes attributes) {
    boolean allowUnknownChildElements = 
      "true".equalsIgnoreCase(attributes.getValue("allow-unknown-child-elements"));
      SetNestedPropertiesRule snpr = new SetNestedPropertiesRule();
      snpr.setAllowUnknownChildElements( allowUnknownChildElements );
      return snpr;
  }
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Adds an {@link SetNestedPropertiesRule}.
 *
 * @param pattern register the rule with this pattern
 *
 * @since 1.6
 */
public void addSetNestedProperties(String pattern) {

  addRule(pattern, new SetNestedPropertiesRule());
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Adds an {@link SetNestedPropertiesRule}.
 *
 * @param pattern register the rule with this pattern
 * @param elementName elment name that a property maps to
 * @param propertyName property name of the element mapped from
 *
 * @since 1.6
 */
public void addSetNestedProperties(String pattern, String elementName, String propertyName) {

  addRule(pattern, new SetNestedPropertiesRule(elementName, propertyName));
}
origin: jasperreports/jasperreports

SetNestedPropertiesRule textRule = new SetNestedPropertiesRule(
    new String[]{"textContent", "textTruncateSuffix", "reportElement", "box", "font",
        JRXmlConstants.ELEMENT_lineBreakOffsets}, 
origin: jasperreports/jasperreports

SetNestedPropertiesRule textRule = new SetNestedPropertiesRule(new String[]{"text", "reportElement", "box", "textElement"}, new String[]{"text"});
textRule.setTrimData(false);
textRule.setAllowUnknownChildElements(true);
org.apache.commons.digesterSetNestedPropertiesRule<init>

Javadoc

Base constructor, which maps every child element into a bean property with the same name as the xml element.

It is an error if a child xml element exists but the target java bean has no such property (unless setAllowUnknownChildElements has been set to true).

Popular methods of SetNestedPropertiesRule

  • setAllowUnknownChildElements
    Determines whether an error is reported when a nested element is encountered for which there is no c
  • addAlias
    Add an additional custom xml-element -> property mapping. This is primarily intended to be used from
  • setTrimData
    When set to true, any text within child elements will have leading and trailing whitespace removed b

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onCreateOptionsMenu (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Top plugins for Android Studio
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