public enum ProjectType extends Enum<ProjectType>
Enum Constant and Description |
---|
File |
Gettext |
Podir |
Properties |
Utf8Properties |
Xliff |
Xml |
Modifier and Type | Field and Description |
---|---|
protected static String |
PROJECT_TYPE_OFFLINE_PO |
Modifier and Type | Method and Description |
---|---|
static List<DocumentType> |
fileProjectSourceDocTypes()
Deprecated.
|
List<DocumentType> |
getSourceFileTypes()
Deprecated.
|
static List<DocumentType> |
getSupportedSourceFileTypes(ProjectType type)
Deprecated.
|
static ProjectType |
getValueOf(String projectType) |
static ProjectType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProjectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProjectType Utf8Properties
public static final ProjectType Properties
public static final ProjectType Gettext
public static final ProjectType Podir
public static final ProjectType Xliff
public static final ProjectType Xml
public static final ProjectType File
protected static final String PROJECT_TYPE_OFFLINE_PO
public static ProjectType[] values()
for (ProjectType c : ProjectType.values()) System.out.println(c);
public static ProjectType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ProjectType getValueOf(String projectType) throws Exception
projectType
- Exception
@Deprecated public static List<DocumentType> getSupportedSourceFileTypes(ProjectType type)
type
- project type@Deprecated public List<DocumentType> getSourceFileTypes()
@Deprecated public static List<DocumentType> fileProjectSourceDocTypes()
For some reason, this method returns a partial, hard-coded list of the file types supported by the server, except these (as of 3.9): OPEN_DOCUMENT_TEXT_FLAT OPEN_DOCUMENT_PRESENTATION_FLAT OPEN_DOCUMENT_SPREADSHEET_FLAT OPEN_DOCUMENT_GRAPHICS_FLAT OPEN_DOCUMENT_DATABASE OPEN_DOCUMENT_FORMULA XML
Copyright © 2018 Zanata Project. All rights reserved.