satc
Class SyntaxInfo

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--satc.SyntaxInfo

public final class SyntaxInfo
extends javax.swing.filechooser.FileFilter

This class contains general information about syntax modes. Each syntax mode has a syntaxInfo structure associated.


Constructor Summary
SyntaxInfo(java.lang.String name, java.lang.String type, java.util.List exts, java.lang.String description)
          The constructor.
 
Method Summary
 boolean accept(java.io.File f)
          FileFilter method.
 java.lang.String getDefaultExtension()
          Returns the default extension for this syntax mode.
static SyntaxInfo getDefaultSyntaxInfo()
          Documents with unknown syntax are opened as plain text.
 java.lang.String getDescription()
          Returns a textual description of this syntax mode.
 java.lang.String getName()
          Returns the internal name for this syntax mode.
 java.lang.String getType()
          Returns the MIME type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxInfo

public SyntaxInfo(java.lang.String name,
                  java.lang.String type,
                  java.util.List exts,
                  java.lang.String description)
The constructor.
Method Detail

getType

public java.lang.String getType()
Returns the MIME type.

getName

public java.lang.String getName()
Returns the internal name for this syntax mode. This name is used by SATC to retrieve the appropriate classes for a certain syntax mode. All classes related to a syntax mode are prefixed with this name.

getDefaultExtension

public java.lang.String getDefaultExtension()
Returns the default extension for this syntax mode.

getDescription

public java.lang.String getDescription()
Returns a textual description of this syntax mode.
Overrides:
getDescription in class javax.swing.filechooser.FileFilter

accept

public boolean accept(java.io.File f)
FileFilter method.
Overrides:
accept in class javax.swing.filechooser.FileFilter

getDefaultSyntaxInfo

public static SyntaxInfo getDefaultSyntaxInfo()
Documents with unknown syntax are opened as plain text.