Skip to content
Permalink
Browse files
Remove trailing whitepsace.
  • Loading branch information
garydgregory committed Feb 15, 2021
1 parent 16b60e7 commit 1a3e6ea71f03c5e996e7b01e1bee114e835129a4
Show file tree
Hide file tree
Showing 128 changed files with 325 additions and 325 deletions.
@@ -64,7 +64,7 @@
/**
* Construct a "set next" rule with the specified method name. The method's argument type is assumed to be the class
* of the child object.
*
*
* @param methodName Method name of the parent method to call
*/
public AbstractMethodRule( final String methodName )
@@ -74,7 +74,7 @@ public AbstractMethodRule( final String methodName )

/**
* Construct a "set next" rule with the specified method name.
*
*
* @param methodName Method name of the parent method to call
* @param paramType Java class of the parent method's argument (if you wish to use a primitive type, specify the
* corresonding Java wrapper class instead, such as <code>java.lang.Boolean</code> for a
@@ -88,7 +88,7 @@ public AbstractMethodRule( final String methodName, final Class<?> paramType )

/**
* Construct a "set next" rule with the specified method name.
*
*
* @param methodName Method name of the parent method to call
* @param paramTypeName Java class of the parent method's argument (if you wish to use a primitive type, specify the
* corresonding Java wrapper class instead, such as <code>java.lang.Boolean</code> for a
@@ -118,7 +118,7 @@ public AbstractMethodRule( final String methodName, final String paramTypeName )
* <p>
* The default setting is to disable exact matches.
* </p>
*
*
* @return true if exact matching is enabled
* @since Digester Release 1.1.1
*/
@@ -158,7 +158,7 @@ public boolean isFireOnBegin()
* <p>
* See {@link #isExactMatch()}.
* </p>
*
*
* @param useExactMatch should this rule use exact method matching
* @since Digester Release 1.1.1
*/
@@ -31,7 +31,7 @@
* <code>namespaceURI</code> of the <code>Rule</code> will be set correctly before it is passed to
* <code>registerRule</code>. The subclass can then perform whatever it needs to do to register the rule.
* </p>
*
*
* @since 1.5
*/
public abstract class AbstractRulesImpl
@@ -109,7 +109,7 @@ public final void add( final String pattern, final Rule rule )
/**
* Register rule at given pattern. The the Digester and namespaceURI properties of the given <code>Rule</code> can
* be assumed to have been set properly before this method is called.
*
*
* @param pattern Nesting pattern to be matched for this Rule
* @param rule Rule instance to be registered
*/
@@ -55,7 +55,7 @@
* <p>
* Construct rule that sets the given property from the body text.
* </p>
*
*
* @param propertyName name of property to set
*/
public BeanPropertySetterRule( final String propertyName )
@@ -51,7 +51,7 @@
* automatic type conversion is being applied (ie if the target function takes something other than a string as a
* parameter) then the conversion will fail if the converter class does not accept an empty string as valid input.
* </p>
*
*
* @param paramIndex The zero-relative parameter number
*/
public CallParamRule( final int paramIndex )
@@ -61,7 +61,7 @@ public CallParamRule( final int paramIndex )

/**
* Construct a "call parameter" rule that will save the value of the specified attribute as the parameter value.
*
*
* @param paramIndex The zero-relative parameter number
* @param attributeName The name of the attribute to save
*/
@@ -73,7 +73,7 @@ public CallParamRule( final int paramIndex, final String attributeName )

/**
* Construct a "call parameter" rule.
*
*
* @param paramIndex The zero-relative parameter number
* @param fromStack should this parameter be taken from the top of the stack?
*/
@@ -86,7 +86,7 @@ public CallParamRule( final int paramIndex, final boolean fromStack )
/**
* Constructs a "call parameter" rule which sets a parameter from the stack. If the stack contains too few objects,
* then the parameter will be set to null.
*
*
* @param paramIndex The zero-relative parameter number
* @param stackIndex the index of the object which will be passed as a parameter. The zeroth object is the top of
* the stack, 1 is the next object down and so on.
@@ -771,10 +771,10 @@ public boolean getValidating()
}

/**
* Set the validating parser flag. This must be called before <code>parse()</code> is called the first time.
* Set the validating parser flag. This must be called before <code>parse()</code> is called the first time.
* By default the value of this is set to false.
*
* It essentially just controls the DTD validation. To use modern schema languages use the
*
* It essentially just controls the DTD validation. To use modern schema languages use the
* {@link #setXMLSchema(Schema)} method to associate a schema to a parser.
*
* @param validating The new validating parser flag.
@@ -58,7 +58,7 @@
* <strong>Note</strong> that the current implementation does not set the namespace prefixes in the exported nodes. The
* (usually more important) namespace URIs are set, of course.
* </p>
*
*
* @since Digester 1.4
*/
public class NodeCreateRule
@@ -82,7 +82,7 @@
* Stores the content handler currently used by Digester so it can be reset when done, and initializes the DOM
* objects needed to build the node.
* </p>
*
*
* @param doc the document to use to create nodes
* @param root the root node
* @throws ParserConfigurationException if the DocumentBuilderFactory could not be instantiated
@@ -177,7 +177,7 @@ private void addTextIfPresent()
* In this method, we therefore just append the provided text to a "current text" buffer. When the element end
* is found, or a child element is found then we can check whether we have all-whitespace. See method
* addTextIfPresent.
*
*
* @param ch the characters from the XML document
* @param start the start position in the array
* @param length the number of characters to read from the array
@@ -192,7 +192,7 @@ public void characters( final char[] ch, final int start, final int length )

/**
* Checks whether control needs to be returned to Digester.
*
*
* @param namespaceURI the namespace URI
* @param localName the local name
* @param qName the qualified (prefixed) name
@@ -224,7 +224,7 @@ public void endElement( final String namespaceURI, final String localName, final

/**
* Adds a new {@link org.w3c.dom.ProcessingInstruction ProcessingInstruction} to the current node.
*
*
* @param target the processing instruction target
* @param data the processing instruction data, or null if none was supplied
* @throws SAXException if the DOM implementation throws an exception
@@ -245,7 +245,7 @@ public void processingInstruction( final String target, final String data )

/**
* Adds a new child {@link org.w3c.dom.Element Element} to the current node.
*
*
* @param namespaceURI the namespace URI
* @param localName the local name
* @param qName the qualified (prefixed) name
@@ -313,7 +313,7 @@ public NodeCreateRule()
/**
* Constructor. Creates an instance of this rule that will create a DOM {@link org.w3c.dom.Element Element}, but
* lets you specify the JAXP <code>DocumentBuilder</code> that should be used when constructing the node tree.
*
*
* @param documentBuilder the JAXP <code>DocumentBuilder</code> to use
*/
public NodeCreateRule( final DocumentBuilder documentBuilder )
@@ -325,7 +325,7 @@ public NodeCreateRule( final DocumentBuilder documentBuilder )
* Constructor. Creates an instance of this rule that will create either a DOM {@link org.w3c.dom.Element Element}
* or a DOM {@link org.w3c.dom.DocumentFragment DocumentFragment}, depending on the value of the
* <code>nodeType</code> parameter.
*
*
* @param nodeType the type of node to create, which can be either {@link org.w3c.dom.Node#ELEMENT_NODE
* Node.ELEMENT_NODE} or {@link org.w3c.dom.Node#DOCUMENT_FRAGMENT_NODE Node.DOCUMENT_FRAGMENT_NODE}
* @throws ParserConfigurationException if a DocumentBuilder cannot be created which satisfies the
@@ -343,7 +343,7 @@ public NodeCreateRule( final int nodeType )
* or a DOM {@link org.w3c.dom.DocumentFragment DocumentFragment}, depending on the value of the
* <code>nodeType</code> parameter. This constructor lets you specify the JAXP <code>DocumentBuilder</code> that
* should be used when constructing the node tree.
*
*
* @param nodeType the type of node to create, which can be either {@link org.w3c.dom.Node#ELEMENT_NODE
* Node.ELEMENT_NODE} or {@link org.w3c.dom.Node#DOCUMENT_FRAGMENT_NODE Node.DOCUMENT_FRAGMENT_NODE}
* @param documentBuilder the JAXP <code>DocumentBuilder</code> to use
@@ -379,7 +379,7 @@ public NodeCreateRule( final int nodeType, final DocumentBuilder documentBuilder
* resulting in a DOM being built instead of normal digester rule-handling occurring. When the end of the current
* xml element is encountered, the original content handler is restored (expected to be NULL, allowing normal
* Digester operations to continue).
*
*
* @param namespaceURI the namespace URI of the matching element, or an empty string if the parser is not namespace
* aware or the element has no namespace
* @param name the local name if the parser is namespace aware, or just the element name otherwise
@@ -55,7 +55,7 @@ T createObject( Attributes attributes )
/**
* Set the {@link Digester} to allow the implementation to do logging, classloading based on the digester's
* classloader, etc.
*
*
* @param digester parent Digester object
*/
void setDigester( Digester digester );
@@ -36,7 +36,7 @@
* matched. See {@link #ObjectParamRule(int paramIndex, String attributeName, Object param)}.
* </ul>
* </p>
*
*
* @since 1.4
*/
public class ObjectParamRule
@@ -45,7 +45,7 @@
// ----------------------------------------------------------- Constructors
/**
* Construct a "call parameter" rule that will save the given Object as the parameter value.
*
*
* @param paramIndex The zero-relative parameter number
* @param param the parameter to pass along
*/
@@ -57,7 +57,7 @@ public ObjectParamRule( final int paramIndex, final Object param )
/**
* Construct a "call parameter" rule that will save the given Object as the parameter value, provided that the
* specified attribute exists.
*
*
* @param paramIndex The zero-relative parameter number
* @param attributeName The name of the attribute to match
* @param param the parameter to pass along
@@ -29,7 +29,7 @@
* surrounding <code>CallMethodRule</code>. This Rule is most useful when making extensive use of wildcards in rule
* patterns.
* </p>
*
*
* @since 1.6
*/
public class PathCallParamRule
@@ -40,7 +40,7 @@

/**
* Construct a "call parameter" rule that will save the body text of this element as the parameter value.
*
*
* @param paramIndex The zero-relative parameter number
*/
public PathCallParamRule( final int paramIndex )
@@ -21,7 +21,7 @@

/**
* Regular expression matching strategy for RegexRules.
*
*
* @since 1.5
*/
public abstract class RegexMatcher
@@ -30,7 +30,7 @@
/**
* Returns true if the given pattern matches the given path according to the regex algorithm that this strategy
* applies.
*
*
* @param pathPattern the standard digester path representing the element
* @param rulePattern the regex pattern the path will be tested against
* @return true if the given pattern matches the given path
@@ -33,7 +33,7 @@
* does not vary. All patterns are tested to see if they match the path using the regex matcher. All those that do are
* return in the order which the rules were added.
* </p>
*
*
* @since 1.5
*/
public class RegexRules
@@ -52,7 +52,7 @@

/**
* Construct sets the Regex matching strategy.
*
*
* @param matcher the regex strategy to be used, not null
*/
public RegexRules( final RegexMatcher matcher )
@@ -74,7 +74,7 @@ public RegexMatcher getRegexMatcher()

/**
* Sets the current regex matching strategy.
*
*
* @param matcher use this RegexMatcher, not null
*/
public void setRegexMatcher( final RegexMatcher matcher )
@@ -52,7 +52,7 @@
/**
* Add the set of Rule instances defined in this RuleSet to the specified <code>Digester</code> instance,
* associating them with our namespace URI (if any). This method should only be called by a Digester instance.
*
*
* @param digester Digester instance to which the new Rule instances should be added.
*/
void addRuleInstances( Digester digester );
@@ -42,7 +42,7 @@

/**
* Set the Digester instance with which this Rules instance is associated.
*
*
* @param digester The newly associated Digester instance
*/
void setDigester( Digester digester );
@@ -56,7 +56,7 @@

/**
* Set the namespace URI that will be applied to all subsequently added <code>Rule</code> objects.
*
*
* @param namespaceURI Namespace URI that must match on all subsequently added rules, or <code>null</code> for
* matching regardless of the current namespace URI
*/
@@ -66,7 +66,7 @@

/**
* Register a new Rule instance matching the specified pattern.
*
*
* @param pattern Nesting pattern to be matched for this Rule
* @param rule Rule instance to be registered
*/
@@ -81,7 +81,7 @@
* Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if
* there are no matches. If more than one Rule instance matches, they <strong>must</strong> be returned in the order
* originally registered through the <code>add()</code> method.
*
*
* @param namespaceURI Namespace URI for which to select matching rules, or <code>null</code> to match regardless of
* namespace URI
* @param pattern Nesting pattern to be matched

0 comments on commit 1a3e6ea

Please sign in to comment.