Railo 4.2 Reference
Choose a tag:

Tag <CFPROPERTY>

Defines components as complex types that are used for web services authoring. The attributes of this tag are exposed as component metadata and are subject to inheritance rules.

Body

Dieses Tag darf keinen Body haben.

Beispiel

	<cfproperty
		[access="string"]
		[default="string"]
		[displayname="string"]
		[getter="boolean"]
		[hint="string"]
		name="string"
		[required="boolean"]
		[setter="boolean"]
		[type="string"] ... >
	

Attribute

Dieses Tag hat eine feste Definition von Attributen (siehe nachfolgend), darĂ¼ber hinaus erlaubt das Tag jedoch weitere frei definierbare Attribute zu verwenden.
Name Typ Required Beschreibung
access string No The client security context from which the method can be invoked 
default string No This sets the default value on the property when the object is created. 
displayname string No A value to be displayed when using introspection to show
information about the CFC. The value appears in parentheses
following the property name. 
getter boolean No Specifies whether to generate getter methods or not 
hint string No Text to be displayed when using introspection to show
information about the CFC. This attribute can be useful
for describing the purpose of the parameter. 
name string Yes A string; a property name. Must be a static value. 
required boolean No Whether the parameter is required 
setter boolean No Specifies whether to generate setter methods or not 
type string No A string; a property type name; data type.