<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>ing. Salvatore Fusto</title>
	<atom:link href="http://salvatorefusto.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://salvatorefusto.wordpress.com</link>
	<description>a Software Application Architect</description>
	<lastBuildDate>Wed, 13 Oct 2010 08:35:28 +0000</lastBuildDate>
	<language>it</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='salvatorefusto.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>ing. Salvatore Fusto</title>
		<link>http://salvatorefusto.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://salvatorefusto.wordpress.com/osd.xml" title="ing. Salvatore Fusto" />
	<atom:link rel='hub' href='http://salvatorefusto.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Generic Bean: simple validation</title>
		<link>http://salvatorefusto.wordpress.com/2010/02/04/generic-bean-simple-validation/</link>
		<comments>http://salvatorefusto.wordpress.com/2010/02/04/generic-bean-simple-validation/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 09:03:53 +0000</pubDate>
		<dc:creator>Salvatore Fusto</dc:creator>
				<category><![CDATA[COLDFUSION]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://salvatorefusto.wordpress.com/?p=114</guid>
		<description><![CDATA[In my previous post i write about a generic base bean to be extended in concrete classes. In a recent application i needed some simple validation rules to mantain the object in a consistent state, so i decided to add a couple of custom attributes to properties: min: min lenght for string or min value for numeric; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salvatorefusto.wordpress.com&amp;blog=11432985&amp;post=114&amp;subd=salvatorefusto&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://salvatorefusto.files.wordpress.com/2010/02/bean4.png"><img class="alignleft size-full wp-image-115" title="bean4" src="http://salvatorefusto.files.wordpress.com/2010/02/bean4.png?w=214&#038;h=236" alt="" width="214" height="236" /></a>In my <a href="http://salvatorefusto.wordpress.com/2010/02/02/oop-generic-setters-and-getters/" target="_self">previous post</a> i write about a generic base bean to be extended in concrete classes. In a recent application i needed some simple validation rules to mantain the object in a consistent state, so i decided to add a couple of custom attributes to properties:</p>
<ul>
<li>min: min lenght for string or min value for numeric;</li>
<li>max: max lenght for string or max value for numeric</li>
</ul>
<p>I also added a generic validation method to the base class.</p>
<p>New code and sample can be downloaded from <a href="http://www.box.net/shared/kp2focebnm" target="_blank">here</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salvatorefusto.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salvatorefusto.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salvatorefusto.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salvatorefusto.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salvatorefusto.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salvatorefusto.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salvatorefusto.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salvatorefusto.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salvatorefusto.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salvatorefusto.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salvatorefusto.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salvatorefusto.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salvatorefusto.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salvatorefusto.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salvatorefusto.wordpress.com&amp;blog=11432985&amp;post=114&amp;subd=salvatorefusto&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salvatorefusto.wordpress.com/2010/02/04/generic-bean-simple-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf04c202441122cbc786ca3a21951483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">salvatorefusto</media:title>
		</media:content>

		<media:content url="http://salvatorefusto.files.wordpress.com/2010/02/bean4.png" medium="image">
			<media:title type="html">bean4</media:title>
		</media:content>
	</item>
		<item>
		<title>OOP &#8211; Generic Setters and Getters</title>
		<link>http://salvatorefusto.wordpress.com/2010/02/02/oop-generic-setters-and-getters/</link>
		<comments>http://salvatorefusto.wordpress.com/2010/02/02/oop-generic-setters-and-getters/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 07:49:24 +0000</pubDate>
		<dc:creator>Salvatore Fusto</dc:creator>
				<category><![CDATA[COLDFUSION]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[UML]]></category>
		<category><![CDATA[More]]></category>

		<guid isPermaLink="false">http://salvatorefusto.wordpress.com/?p=59</guid>
		<description><![CDATA[Generic setters and getters<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salvatorefusto.wordpress.com&amp;blog=11432985&amp;post=59&amp;subd=salvatorefusto&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://salvatorefusto.files.wordpress.com/2010/01/bean3.png"></a><img class="alignleft" src="http://salvatorefusto.files.wordpress.com/2010/01/bean.jpg?w=450" alt="" />When writing a CFC that models an object of a domain, you can have a bunch of properties and then a bunch of setter&#8217;s and getter&#8217;s methods, a couple for each property.  Basically each setter sets a property with a value passed as argument, and each getter retrivies the value of a property .</p>
<p><span id="more-59"></span></p>
<hr /><img class="alignright" src="http://salvatorefusto.files.wordpress.com/2010/02/bean2.png?w=450" alt="" />Instead of writing a setter/ getter couple for each property, we can surely write abstract methods adding an argument to each method to specify the property we will set or retreive.</p>
<hr /><img class="alignleft" src="http://salvatorefusto.files.wordpress.com/2010/01/bean3.png?w=450" alt="" />Now that you have defined generic methods, the next step is to write a base class containg the abstract methods just defined, and write concrete classes that extend the base one,  in which you&#8217;ll define only properties. Other than generic setter and getter, the base class has methods to verify if a property is settable and/or gettable, if a value passed to set a property is of the same type of the property ecc. To do so, you use &lt;cfproperty&gt; tag&#8217;s standard and custom attributes.</p>
<p>I &#8216;ve used this method for a long time. You can <a title="genericBean zipped code" href="http://www.box.net/shared/edxvlc77kj" target="_blank">download</a> code and samples.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salvatorefusto.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salvatorefusto.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salvatorefusto.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salvatorefusto.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salvatorefusto.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salvatorefusto.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salvatorefusto.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salvatorefusto.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salvatorefusto.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salvatorefusto.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salvatorefusto.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salvatorefusto.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salvatorefusto.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salvatorefusto.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salvatorefusto.wordpress.com&amp;blog=11432985&amp;post=59&amp;subd=salvatorefusto&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salvatorefusto.wordpress.com/2010/02/02/oop-generic-setters-and-getters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf04c202441122cbc786ca3a21951483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">salvatorefusto</media:title>
		</media:content>

		<media:content url="http://salvatorefusto.files.wordpress.com/2010/01/bean.jpg" medium="image" />

		<media:content url="http://salvatorefusto.files.wordpress.com/2010/02/bean2.png" medium="image" />

		<media:content url="http://salvatorefusto.files.wordpress.com/2010/01/bean3.png" medium="image" />
	</item>
		<item>
		<title>Box(dot)net</title>
		<link>http://salvatorefusto.wordpress.com/2010/01/28/boxdotnet/</link>
		<comments>http://salvatorefusto.wordpress.com/2010/01/28/boxdotnet/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 10:17:58 +0000</pubDate>
		<dc:creator>Salvatore Fusto</dc:creator>
				<category><![CDATA[Varie]]></category>

		<guid isPermaLink="false">http://salvatorefusto.wordpress.com/?p=51</guid>
		<description><![CDATA[Vorrei segnalare un servizio di file sharing che consente di fare l&#8217;upload di files di vario tipo e di condividerli; il servizio è molto user friendly da usare, e il download è immediato. I&#8217;d point out a file sharing service to upload and share files; very user-friendly to use, with an immediate download.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salvatorefusto.wordpress.com&amp;blog=11432985&amp;post=51&amp;subd=salvatorefusto&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Vorrei segnalare un servizio di file sharing che consente di fare l&#8217;upload di files di vario tipo e di condividerli; il servizio è molto user friendly da usare, e il download è immediato.</p>
<hr /><em>I&#8217;d point out a file sharing service to upload and share files; very user-friendly to use, with an immediate download.</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salvatorefusto.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salvatorefusto.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salvatorefusto.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salvatorefusto.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salvatorefusto.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salvatorefusto.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salvatorefusto.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salvatorefusto.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salvatorefusto.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salvatorefusto.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salvatorefusto.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salvatorefusto.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salvatorefusto.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salvatorefusto.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salvatorefusto.wordpress.com&amp;blog=11432985&amp;post=51&amp;subd=salvatorefusto&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salvatorefusto.wordpress.com/2010/01/28/boxdotnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf04c202441122cbc786ca3a21951483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">salvatorefusto</media:title>
		</media:content>
	</item>
		<item>
		<title>salvatorefusto.wordpress</title>
		<link>http://salvatorefusto.wordpress.com/2010/01/14/salvatore-fusto-wordpress/</link>
		<comments>http://salvatorefusto.wordpress.com/2010/01/14/salvatore-fusto-wordpress/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 10:50:19 +0000</pubDate>
		<dc:creator>Salvatore Fusto</dc:creator>
				<category><![CDATA[Varie]]></category>

		<guid isPermaLink="false">http://salvatorefusto.wordpress.com/2010/01/14/salvatore-fusto-wordpress/</guid>
		<description><![CDATA[Ho deciso di spostare il mio blog su wordpress. Today i&#8217;ve moved my personal blog on wordpress<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salvatorefusto.wordpress.com&amp;blog=11432985&amp;post=5&amp;subd=salvatorefusto&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ho deciso di spostare il mio blog su wordpress.</p>
<hr /><em>Today i&#8217;ve moved my personal blog on wordpress</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/salvatorefusto.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/salvatorefusto.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/salvatorefusto.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/salvatorefusto.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/salvatorefusto.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/salvatorefusto.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/salvatorefusto.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/salvatorefusto.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/salvatorefusto.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/salvatorefusto.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/salvatorefusto.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/salvatorefusto.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/salvatorefusto.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/salvatorefusto.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=salvatorefusto.wordpress.com&amp;blog=11432985&amp;post=5&amp;subd=salvatorefusto&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://salvatorefusto.wordpress.com/2010/01/14/salvatore-fusto-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/cf04c202441122cbc786ca3a21951483?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">salvatorefusto</media:title>
		</media:content>
	</item>
	</channel>
</rss>
