commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/builder StandardToStringStyle.java
Date Thu, 19 Sep 2002 19:45:22 GMT
scolebourne    2002/09/19 12:45:22

  Modified:    lang/src/java/org/apache/commons/lang/builder
                        StandardToStringStyle.java
  Log:
  Superclass now specifies protected getters and setters
  
  Revision  Changes    Path
  1.3       +37 -73    jakarta-commons/lang/src/java/org/apache/commons/lang/builder/StandardToStringStyle.java
  
  Index: StandardToStringStyle.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/StandardToStringStyle.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StandardToStringStyle.java	17 Sep 2002 22:09:11 -0000	1.2
  +++ StandardToStringStyle.java	19 Sep 2002 19:45:22 -0000	1.3
  @@ -81,7 +81,7 @@
        * @return the current useClassName flag
        */
       public boolean isUseClassName() {
  -        return useClassName;
  +        return super.isUseClassName();
       }
   
       /**
  @@ -89,7 +89,7 @@
        * @param useClassName  the new useClassName flag
        */
       public void setUseClassName(boolean useClassName) {
  -        this.useClassName = useClassName;
  +        super.setUseClassName(useClassName);
       }
   
       //---------------------------------------------------------------------
  @@ -99,7 +99,7 @@
        * @return the current shortClassName flag
        */
       public boolean isShortClassName() {
  -        return useShortClassName;
  +        return super.isShortClassName();
       }
   
       /**
  @@ -107,7 +107,7 @@
        * @param shortClassName  the new shortClassName flag
        */
       public void setShortClassName(boolean shortClassName) {
  -        this.useShortClassName = shortClassName;
  +        super.setShortClassName(shortClassName);
       }
   
       //---------------------------------------------------------------------
  @@ -117,7 +117,7 @@
        * @return the current useIdentityHashCode flag
        */
       public boolean isUseIdentityHashCode() {
  -        return useIdentityHashCode;
  +        return super.isUseIdentityHashCode();
       }
   
       /**
  @@ -125,7 +125,7 @@
        * @param useFieldNames  the new useIdentityHashCode flag
        */
       public void setUseIdentityHashCode(boolean useIdentityHashCode) {
  -        this.useIdentityHashCode = useIdentityHashCode;
  +        super.setUseIdentityHashCode(useIdentityHashCode);
       }
   
       //---------------------------------------------------------------------
  @@ -135,7 +135,7 @@
        * @return the current useFieldNames flag
        */
       public boolean isUseFieldNames() {
  -        return useFieldNames;
  +        return super.isUseFieldNames();
       }
   
       /**
  @@ -143,7 +143,7 @@
        * @param useFieldNames  the new useFieldNames flag
        */
       public void setUseFieldNames(boolean useFieldNames) {
  -        this.useFieldNames = useFieldNames;
  +        super.setUseFieldNames(useFieldNames);
       }
   
       //---------------------------------------------------------------------
  @@ -153,7 +153,7 @@
        * @return the current defaultFullDetail flag
        */
       public boolean isDefaultFullDetail() {
  -        return defaultFullDetail;
  +        return super.isDefaultFullDetail();
       }
   
       /**
  @@ -161,7 +161,7 @@
        * @param defaultFullDetail  the new defaultFullDetail flag
        */
       public void setDefaultFullDetail(boolean defaultFullDetail) {
  -        this.defaultFullDetail = defaultFullDetail;
  +        super.setDefaultFullDetail(defaultFullDetail);
       }
   
       //---------------------------------------------------------------------
  @@ -171,7 +171,7 @@
        * @return the current array content detail setting
        */
       public boolean isArrayContentDetail() {
  -        return arrayContentDetail;
  +        return super.isArrayContentDetail();
       }
       
       /**
  @@ -179,7 +179,7 @@
        * @param arrayContentDetail  the new arrayContentDetail flag
        */
       public void setArrayContentDetail(boolean arrayContentDetail) {
  -        this.arrayContentDetail = arrayContentDetail;
  +        super.setArrayContentDetail(arrayContentDetail);
       }
   
       //---------------------------------------------------------------------
  @@ -189,7 +189,7 @@
        * @return the current array start text
        */
       public String getArrayStart() {
  -        return arrayStart;
  +        return super.getArrayStart();
       }
   
       /**
  @@ -198,10 +198,7 @@
        * @param arrayStart  the new array start text
        */
       public void setArrayStart(String arrayStart) {
  -        if (arrayStart == null) {
  -            arrayStart = "";
  -        }
  -        this.arrayStart = arrayStart;
  +        super.setArrayStart(arrayStart);
       }
   
       //---------------------------------------------------------------------
  @@ -211,7 +208,7 @@
        * @return the current array end text
        */
       public String getArrayEnd() {
  -        return arrayEnd;
  +        return super.getArrayEnd();
       }
   
       /**
  @@ -220,10 +217,7 @@
        * @param arrayEnd  the new array end text
        */
       public void setArrayEnd(String arrayEnd) {
  -        if (arrayStart == null) {
  -            arrayStart = "";
  -        }
  -        this.arrayEnd = arrayEnd;
  +        super.setArrayEnd(arrayEnd);
       }
   
       //---------------------------------------------------------------------
  @@ -233,7 +227,7 @@
        * @return the current array separator text
        */
       public String getArraySeparator() {
  -        return arraySeparator;
  +        return super.getArraySeparator();
       }
   
       /**
  @@ -242,10 +236,7 @@
        * @param arraySeparator  the new array separator text
        */
       public void setArraySeparator(String arraySeparator) {
  -        if (arraySeparator == null) {
  -            arraySeparator = "";
  -        }
  -        this.arraySeparator = arraySeparator;
  +        super.setArraySeparator(arraySeparator);
       }
   
       //---------------------------------------------------------------------
  @@ -255,7 +246,7 @@
        * @return the current content start text
        */
       public String getContentStart() {
  -        return contentStart;
  +        return super.getContentStart();
       }
   
       /**
  @@ -264,10 +255,7 @@
        * @param contentStart  the new content start text
        */
       public void setContentStart(String contentStart) {
  -        if (contentStart == null) {
  -            contentStart = "";
  -        }
  -        this.contentStart = contentStart;
  +        super.setContentStart(contentStart);
       }
   
       //---------------------------------------------------------------------
  @@ -277,7 +265,7 @@
        * @return the current content end text
        */
       public String getContentEnd() {
  -        return contentEnd;
  +        return super.getContentEnd();
       }
   
       /**
  @@ -286,10 +274,7 @@
        * @param contentEnd  the new content end text
        */
       public void setContentEnd(String contentEnd) {
  -        if (contentEnd == null) {
  -            contentEnd = "";
  -        }
  -        this.contentEnd = contentEnd;
  +        super.setContentEnd(contentEnd);
       }
   
       //---------------------------------------------------------------------
  @@ -299,7 +284,7 @@
        * @return the current field name value separator text
        */
       public String getFieldNameValueSeparator() {
  -        return fieldNameValueSeparator;
  +        return super.getFieldNameValueSeparator();
       }
   
       /**
  @@ -308,10 +293,7 @@
        * @param fieldNameValueSeparator  the new field name value separator text
        */
       public void setFieldNameValueSeparator(String fieldNameValueSeparator) {
  -        if (fieldNameValueSeparator == null) {
  -            fieldNameValueSeparator = "";
  -        }
  -        this.fieldNameValueSeparator = fieldNameValueSeparator;
  +        super.setFieldNameValueSeparator(fieldNameValueSeparator);
       }
   
       //---------------------------------------------------------------------
  @@ -321,7 +303,7 @@
        * @return the current field separator text
        */
       public String getFieldSeparator() {
  -        return fieldSeparator;
  +        return super.getFieldSeparator();
       }
   
       /**
  @@ -330,10 +312,7 @@
        * @param fieldSeparator  the new field separator text
        */
       public void setFieldSeparator(String fieldSeparator) {
  -        if (fieldSeparator == null) {
  -            fieldSeparator = "";
  -        }
  -        this.fieldSeparator = fieldSeparator;
  +        super.setFieldSeparator(fieldSeparator);
       }
   
       //---------------------------------------------------------------------
  @@ -343,7 +322,7 @@
        * @return the current text to output when null found
        */
       public String getNullText() {
  -        return nullText;
  +        return super.getNullText();
       }
   
       /**
  @@ -352,10 +331,7 @@
        * @param nullText  the new text to output when null found
        */
       public void setNullText(String nullText) {
  -        if (nullText == null) {
  -            nullText = "";
  -        }
  -        this.nullText = nullText;
  +        super.setNullText(nullText);
       }
   
       //---------------------------------------------------------------------
  @@ -366,7 +342,7 @@
        * @return the current start of size text
        */
       public String getSizeStartText() {
  -        return sizeStartText;
  +        return super.getSizeStartText();
       }
   
       /**
  @@ -376,10 +352,7 @@
        * @param sizeStartText  the new start of size text
        */
       public void setSizeStartText(String sizeStartText) {
  -        if (sizeStartText == null) {
  -            sizeStartText = "";
  -        }
  -        this.sizeStartText = sizeStartText;
  +        super.setSizeStartText(sizeStartText);
       }
   
       //---------------------------------------------------------------------
  @@ -390,7 +363,7 @@
        * @return the current end of size text
        */
       public String getSizeEndText() {
  -        return sizeEndText;
  +        return super.getSizeEndText();
       }
   
       /**
  @@ -400,10 +373,7 @@
        * @param sizeEndText  the new end of size text
        */
       public void setSizeEndText(String sizeEndText) {
  -        if (sizeEndText == null) {
  -            sizeEndText = "";
  -        }
  -        this.sizeEndText = sizeEndText;
  +        super.setSizeEndText(sizeEndText);
       }
   
       //---------------------------------------------------------------------
  @@ -414,7 +384,7 @@
        * @return the current start of summary text
        */
       public String getSummaryObjectStartText() {
  -        return summaryObjectStartText;
  +        return super.getSummaryObjectStartText();
       }
   
       /**
  @@ -424,10 +394,7 @@
        * @param summaryObjectStartText  the new start of summary text
        */
       public void setSummaryObjectStartText(String summaryObjectStartText) {
  -        if (summaryObjectStartText == null) {
  -            summaryObjectStartText = "";
  -        }
  -        this.summaryObjectStartText = summaryObjectStartText;
  +        super.setSummaryObjectStartText(summaryObjectStartText);
       }
   
       //---------------------------------------------------------------------
  @@ -438,7 +405,7 @@
        * @return the current end of summary text
        */
       public String getSummaryObjectEndText() {
  -        return summaryObjectEndText;
  +        return super.getSummaryObjectEndText();
       }
   
       /**
  @@ -448,10 +415,7 @@
        * @param summaryObjectEndText  the new end of summary text
        */
       public void setSummaryObjectEndText(String summaryObjectEndText) {
  -        if (summaryObjectEndText == null) {
  -            summaryObjectEndText = "";
  -        }
  -        this.summaryObjectEndText = summaryObjectEndText;
  +        super.setSummaryObjectEndText(summaryObjectEndText);
       }
   
       //---------------------------------------------------------------------
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message