public enum ProjectType extends Enum<ProjectType>
Enum Constant and Description |
---|
File |
Gettext |
Podir |
Properties |
Utf8Properties |
Xliff |
Xml |
Modifier and Type | Method and Description |
---|---|
static List<DocumentType> |
fileProjectSourceDocTypes() |
List<DocumentType> |
getSourceFileTypes() |
static List<DocumentType> |
getSupportedSourceFileTypes(ProjectType type)
This method returns file types/extensions that is supported by web UI
upload.
|
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
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
public static List<DocumentType> getSupportedSourceFileTypes(ProjectType type)
type
- project typepublic List<DocumentType> getSourceFileTypes()
public static List<DocumentType> fileProjectSourceDocTypes()
Copyright © 2016 Zanata Project. All rights reserved.