From: <nu...@us...> - 2011-05-16 00:30:24
|
Revision: 14995 http://pcgen.svn.sourceforge.net/pcgen/?rev=14995&view=rev Author: nuance Date: 2011-05-16 00:30:17 +0000 (Mon, 16 May 2011) Log Message: ----------- Checkstyle updates. Modified Paths: -------------- Trunk/pcgen/code/src/java/pcgen/core/prereq/Prerequisite.java Modified: Trunk/pcgen/code/src/java/pcgen/core/prereq/Prerequisite.java =================================================================== --- Trunk/pcgen/code/src/java/pcgen/core/prereq/Prerequisite.java 2011-05-16 00:06:51 UTC (rev 14994) +++ Trunk/pcgen/code/src/java/pcgen/core/prereq/Prerequisite.java 2011-05-16 00:30:17 UTC (rev 14995) @@ -81,20 +81,22 @@ } /** - * @param totalValues The totalValues to set. + * Sets the totalValues attribute. + * @param val The value to set TotalValues to. */ - public final void setTotalValues(final boolean totalValues) + public final void setTotalValues(final boolean val) { - this.totalValues = totalValues; + this.totalValues = val; } /** - * @param countMultiples - * The countMultiples to set. + * Sets the countMultiples attribute. + * @param val + * The value to set countMultiples to. */ - public void setCountMultiples(final boolean countMultiples) + public void setCountMultiples(final boolean val) { - this.countMultiples = countMultiples; + this.countMultiples = val; } /** @@ -105,23 +107,32 @@ return countMultiples; } - public void setKey(final String key) + /** + * Set the key. + * @param val the Key to set. + */ + public void setKey(final String val) { - this.key = key; + this.key = val; } + /** + * Get the key. + * @return the prerequisite's key. + */ public String getKey() { return key; } /** - * @param kind - * The kind to set. + * Set the kind attribute. + * @param val + * The value to set kind to. */ - public void setKind(final String kind) + public void setKind(final String val) { - this.kind = kind; + this.kind = val; } /** @@ -133,12 +144,13 @@ } /** - * @param operand - * The operand to set. + * Set the operand attribute. + * @param val + * The value to set the operand to. */ - public void setOperand(final String operand) + public void setOperand(final String val) { - this.operand = operand; + this.operand = val; } /** @@ -150,9 +162,10 @@ } /** + * Sets an operator attribute from the name of the operator. * @param operator - * The operator to set. - * @throws PrerequisiteException + * The name of the operator to set in the object. + * @throws PrerequisiteException throws an exception if it can't locate the operator. */ public void setOperator(final String operator) throws PrerequisiteException { @@ -338,15 +351,6 @@ } } - // All of these aer either immutable, or primitive, neither of which need cloning - // private String kind; - // private String key=null; - // private String subKey=null; - // private PrerequisiteOperator operator= new PrerequisiteOperator(PrerequisiteOperator.GTEQ); - // private String operand="1"; //$NON-NLS-1$ - // private boolean countMultiples; - // private boolean overrideQualify=false; - return copy; } @@ -365,7 +369,8 @@ if (categoryName != null && !shortForm) { buf.append("of category "); - buf.append(categoryName+":"); + buf.append(categoryName); + buf.append(":"); buf.append(' '); //$NON-NLS-1$ } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |