|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
org.openpermis.editor.policy.FileType
public class FileType
Constants for types of files handled by the policy editor.
Also acts as file filter if required.
Field Summary | |
---|---|
static FileType |
ACE_POLICY
Type for ACE policy files. |
static FileType |
ACE_ROLE_ASSIGNMENT
Type for ACE role assignment files. |
static FileType |
ANY_FILE
File type for any file. |
static FileType |
PKCS12_FILE
Type for PKC12 files. |
static FileType |
WSDL_FILE
Type for WSDL files. |
static FileType |
XML_POLICY
Type for XML policy files. |
Constructor Summary | |
---|---|
FileType(String typeName,
String extension)
Creates a new file type for the specified type name and extension. |
Method Summary | |
---|---|
boolean |
accept(File file)
|
String |
getDescription()
|
String |
getTypeName()
Returns the type name of this file type. |
static void |
initialize(ApplicationContext context)
Initializes the file types from the specified application context. |
void |
setDescription(String description)
Sets the description of this file type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final FileType ANY_FILE
public static final FileType XML_POLICY
public static final FileType ACE_POLICY
public static final FileType ACE_ROLE_ASSIGNMENT
public static final FileType WSDL_FILE
public static final FileType PKCS12_FILE
Constructor Detail |
---|
public FileType(String typeName, String extension)
typeName
- the name of the type.extension
- the file extension to filter or ANY_EXTENSION
for any file.Method Detail |
---|
public static void initialize(ApplicationContext context)
Translations for file types are read and injected here.
context
- the context used to access translations.public String getTypeName()
public void setDescription(String description)
description
- the description to set.initialize(ApplicationContext)
public boolean accept(File file)
accept
in class FileFilter
public String getDescription()
getDescription
in class FileFilter
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG