hudson.plugins.nsiq
Enum FileExtension
java.lang.Object
java.lang.Enum<FileExtension>
hudson.plugins.nsiq.FileExtension
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<FileExtension>
public enum FileExtension
- extends java.lang.Enum<FileExtension>
Method Summary |
static FileExtension |
getExtension(java.lang.String filename)
파일 이름에서 확장자를 가져온다. |
static FileExtension |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FileExtension[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
groovy
public static final FileExtension groovy
java
public static final FileExtension java
sh
public static final FileExtension sh
cpp
public static final FileExtension cpp
c
public static final FileExtension c
h
public static final FileExtension h
cc
public static final FileExtension cc
cxx
public static final FileExtension cxx
html
public static final FileExtension html
xml
public static final FileExtension xml
xhtml
public static final FileExtension xhtml
NONE
public static final FileExtension NONE
values
public static FileExtension[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FileExtension c : FileExtension.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FileExtension valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getExtension
public static FileExtension getExtension(java.lang.String filename)
- 파일 이름에서 확장자를 가져온다.
- Parameters:
filename
- 파일 이름
- Returns:
- 확장자
Copyright © 2004-2011. All Rights Reserved.