Overriding Built-In ColdFusion Methods With Custom ColdFusion Component Methods

<cfcomponent
	displayname="Bean"
	output="false">
 
	<!--- Set method access pointers. --->
	<cfset THIS.IsValid = $IsValid />
 
	<cffunction
		name="$IsValid"
		access="private"
		returntype="boolean"
		output="false"
		hint="Determines if bean data is valid.">
 
		<!--- For testing just return true. --->
		<cfreturn true />
	</cffunction>
 
 
	<cffunction
		name="IsNotValid"
		access="public"
		returntype="boolean"
		output="false"
		hint="Determines if bean data is not valid.">
 
		<cfreturn NOT THIS.IsValid() />
	</cffunction>
 
</cfcomponent>

For Cut-and-Paste