Drag[en]gine Script Module DragonScript  1.21
Dragengine.FileExtension Class Reference

File extension for use with file browsers. More...

Inheritance diagram for Dragengine.FileExtension:

Public Member Functions

String getName ()
 Name to display. More...
 
Array getPatterns ()
 Array of file pattern strings in the form ".xyz". More...
 
String getPatternsString ()
 File pattern as single string typically used in file browsers. More...
 
String getPatternsString (String delimiter)
 File pattern as single string typically used in file browsers. More...
 
FileExtension new (String name, Array patterns, String defaultExtension)
 Create file type. More...
 

Detailed Description

File extension for use with file browsers.

Version
1.7

Immutable class.

Member Function Documentation

◆ getName()

String Dragengine.FileExtension.getName ( )

Name to display.

◆ getPatterns()

Array Dragengine.FileExtension.getPatterns ( )

Array of file pattern strings in the form ".xyz".

◆ getPatternsString() [1/2]

String Dragengine.FileExtension.getPatternsString ( )

File pattern as single string typically used in file browsers.

Returned string is in the form "*.abc,*.xyz,...".

◆ getPatternsString() [2/2]

String Dragengine.FileExtension.getPatternsString ( String  delimiter)

File pattern as single string typically used in file browsers.

Returned string is in the form "*.abc{delimiter}*.xyz,..." where "{delimiter}" is the string provided by delimiter. "*" is only prepended if pattern starts with a period.

◆ new()

FileExtension Dragengine.FileExtension.new ( String  name,
Array  patterns,
String  defaultExtension 
)

Create file type.


The documentation for this class was generated from the following file: