Dwuri.isoffiletype(), Dwuri.getscheme() – Adobe Dreamweaver API Reference CS5 User Manual
Page 282

277
DREAMWEAVER API REFERENCE
Document
Last updated 8/27/2013
Description
Determines if the URI object has the specified service type scheme. The URI object is not valid until it is constructed
or initialized with the valid URI.
Examples of service type schemes are “
http
”, “
file
”, and “
ftp
”. For the URI “
http://www.adobe.com
”, “
http
” is
the service type scheme.
Arguments
type
The type argument specifies the service type scheme to test.
Returns
A Boolean value:
true
if the URI is of the specified service type scheme.
DWUri.isOfFileType()
Availability
Dreamweaver CS5.
Description
Determines if the URI object points to a resource of the specified file type. The URI object is not valid until it is
constructed or initialized with the valid URI.
For the URI “
http://www.adobe.com/index.html
”, “
html
” is the file type.
Arguments
type
The type argument specifies the service type scheme to test.
Returns
A Boolean value:
true
if the URI points to a resource of the specified file type.
DWUri.getScheme()
Availability
Dreamweaver CS5.
Description
Retrieves the service type scheme. The URI object is not valid until it is constructed or initialized with the valid URI.
For the URI “
http://www.adobe.com/index.html
”, “
http
” is the service type scheme.
Arguments
None.
Returns
A String containing the URI object’s service type scheme.