Skip to content

Commit 5b14c5c

Browse files
author
John Keyes
committed
- tided javadoc
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@267489 13f79535-47bb-0310-9956-ffa450edef68
1 parent c193918 commit 5b14c5c

1 file changed

Lines changed: 23 additions & 31 deletions

File tree

src/java/org/apache/commons/cli2/builder/ArgumentBuilder.java

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/**
2-
* Copyright 2003-2004 The Apache Software Foundation
1+
/*
2+
* Copyright 2003-2005 The Apache Software Foundation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -68,7 +68,8 @@ public ArgumentBuilder() {
6868
* Creates a new Argument instance using the options specified in this
6969
* ArgumentBuilder.
7070
*
71-
* @return A new Argument instance.
71+
* @return A new Argument instance using the options specified in this
72+
* ArgumentBuilder.
7273
*/
7374
public final Argument create() {
7475
final Argument argument =
@@ -91,7 +92,7 @@ public final Argument create() {
9192

9293
/**
9394
* Resets the ArgumentBuilder to the defaults for a new Argument. The
94-
* method should be called automatically at the end of a create() call.
95+
* method is called automatically at the end of a create() call.
9596
*/
9697
public final ArgumentBuilder reset() {
9798
name = "arg";
@@ -113,8 +114,7 @@ public final ArgumentBuilder reset() {
113114
*
114115
* @see org.apache.commons.cli2.CommandLine#getValue(String)
115116
*
116-
* @param newName
117-
* the name of the argument
117+
* @param newName the name of the argument
118118
* @return this ArgumentBuilder
119119
*/
120120
public final ArgumentBuilder withName(final String newName) {
@@ -127,8 +127,7 @@ public final ArgumentBuilder withName(final String newName) {
127127
*
128128
* The description is used when displaying online help.
129129
*
130-
* @param newDescription
131-
* a description of the argument
130+
* @param newDescription a description of the argument
132131
* @return this ArgumentBuilder
133132
*/
134133
public final ArgumentBuilder withDescription(final String newDescription) {
@@ -139,8 +138,7 @@ public final ArgumentBuilder withDescription(final String newDescription) {
139138
/**
140139
* Sets the minimum number of values needed for the argument to be valid.
141140
*
142-
* @param newMinimum
143-
* the number of values needed
141+
* @param newMinimum the number of values needed
144142
* @return this ArgumentBuilder
145143
*/
146144
public final ArgumentBuilder withMinimum(final int newMinimum) {
@@ -151,8 +149,7 @@ public final ArgumentBuilder withMinimum(final int newMinimum) {
151149
/**
152150
* Sets the maximum number of values allowed for the argument to be valid.
153151
*
154-
* @param newMaximum
155-
* the number of values allowed
152+
* @param newMaximum the number of values allowed
156153
* @return this ArgumentBuilder
157154
*/
158155
public final ArgumentBuilder withMaximum(final int newMaximum) {
@@ -165,11 +162,12 @@ public final ArgumentBuilder withMaximum(final int newMaximum) {
165162
* argument is of the form -libs:dir1,dir2,dir3 the initialSeparator would
166163
* be ':'.
167164
*
168-
* @param newInitialSeparator
169-
* the character used to separate the values from the option
165+
* @param newInitialSeparator the character used to separate the values
166+
* from the option
170167
* @return this ArgumentBuilder
171168
*/
172-
public final ArgumentBuilder withInitialSeparator(final char newInitialSeparator) {
169+
public final ArgumentBuilder withInitialSeparator(
170+
final char newInitialSeparator) {
173171

174172
this.initialSeparator = newInitialSeparator;
175173
return this;
@@ -180,11 +178,12 @@ public final ArgumentBuilder withInitialSeparator(final char newInitialSeparator
180178
* argument is of the form -libs:dir1,dir2,dir3 the subsequentSeparator
181179
* would be ','.
182180
*
183-
* @param newSubsequentSeparator
184-
* the character used to separate the values from each other
181+
* @param newSubsequentSeparator the character used to separate the values
182+
* from each other
185183
* @return this ArgumentBuilder
186184
*/
187-
public final ArgumentBuilder withSubsequentSeparator(final char newSubsequentSeparator) {
185+
public final ArgumentBuilder withSubsequentSeparator(
186+
final char newSubsequentSeparator) {
188187

189188
this.subsequentSeparator = newSubsequentSeparator;
190189
return this;
@@ -194,8 +193,7 @@ public final ArgumentBuilder withSubsequentSeparator(final char newSubsequentSep
194193
* Sets the validator instance used to perform validation on the Argument
195194
* values.
196195
*
197-
* @param newValidator
198-
* a Validator instance
196+
* @param newValidator a Validator instance
199197
* @return this ArgumentBuilder
200198
*/
201199
public final ArgumentBuilder withValidator(final Validator newValidator) {
@@ -207,8 +205,8 @@ public final ArgumentBuilder withValidator(final Validator newValidator) {
207205
* Sets the "consume remaining" option, defaults to "--". Use this if you
208206
* want to allow values that might be confused with option strings.
209207
*
210-
* @param newConsumeRemaining
211-
* the string to use for the consume remaining option
208+
* @param newConsumeRemaining the string to use for the consume
209+
* remaining option
212210
* @return this ArgumentBuilder
213211
*/
214212
public final ArgumentBuilder withConsumeRemaining(final String newConsumeRemaining) {
@@ -220,9 +218,7 @@ public final ArgumentBuilder withConsumeRemaining(final String newConsumeRemaini
220218
/**
221219
* Sets the default value.
222220
*
223-
* @param defaultValue
224-
* the default value for the Argument
225-
*
221+
* @param defaultValue the default value for the Argument
226222
* @return this ArgumentBuilder
227223
*/
228224
public final ArgumentBuilder withDefault(final Object defaultValue) {
@@ -236,9 +232,7 @@ public final ArgumentBuilder withDefault(final Object defaultValue) {
236232
/**
237233
* Sets the default values.
238234
*
239-
* @param newDefaultValues
240-
* the default values for the Argument
241-
*
235+
* @param newDefaultValues the default values for the Argument
242236
* @return this ArgumentBuilder
243237
*/
244238
public final ArgumentBuilder withDefaults(final List newDefaultValues) {
@@ -249,9 +243,7 @@ public final ArgumentBuilder withDefaults(final List newDefaultValues) {
249243
/**
250244
* Sets the id
251245
*
252-
* @param newId
253-
* the id of the Argument
254-
*
246+
* @param newId the id of the Argument
255247
* @return this ArgumentBuilder
256248
*/
257249
public final ArgumentBuilder withId(final int newId) {

0 commit comments

Comments
 (0)