How to enforce style to the output of a method

Anfernee Xu <[email protected]> Thu, 8 Dec 2011 10:29:49 +0800
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <CAKSPWFCbLshkiFgh+7ydc2szDRbwZNUypLFjf7DARcNMQb9BCg@mail.gmail.com>
--===============7701666333832474804==
Content-Type: multipart/alternative; boundary=f46d0418283a4a853204b38b71f2

--f46d0418283a4a853204b38b71f2
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

is it possible that I can enfore a style to the output of a particular
method such as toString()?
In particular, I want output of toString() should comforms to the below
format.

      <name>=<value>,<name>=<value>...

In my large project, some codes breaks this format(such as no comma between
name/value pairs), so I need to find a way to identify all violations.
Is it doable in checkstyle?

Thanks for any hints.

-- 
--Anfernee

--f46d0418283a4a853204b38b71f2
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi all,<br><br>is it possible that I can enfore a style to the output of a =
particular method such as toString()?<br>In particular, I want output of to=
String() should comforms to the below format.<br>=A0=A0=A0 <br>=A0=A0=A0=A0=
=A0 &lt;name&gt;=3D&lt;value&gt;,&lt;name&gt;=3D&lt;value&gt;...<br>
<br>In my large project, some codes breaks this format(such as no comma bet=
ween name/value pairs), so I need to find a way to identify all violations.=
<br>Is it doable in checkstyle?<br><br>Thanks for any hints.<br clear=3D"al=
l">
<br>-- <br>--Anfernee<br>

--f46d0418283a4a853204b38b71f2--


--===============7701666333832474804==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
--===============7701666333832474804==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user

--===============7701666333832474804==--