Enum TextSourceType
- java.lang.Object
-
- java.lang.Enum<TextSourceType>
-
- org.dddjava.jig.domain.model.sources.file.text.TextSourceType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TextSourceType>
public enum TextSourceType extends java.lang.Enum<TextSourceType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JAVAJAVA_PACKAGE_INFOKOTLINSCALAUNSUPPORTED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TextSourceTypefrom(java.lang.String fileName)static TextSourceTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TextSourceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JAVA_PACKAGE_INFO
public static final TextSourceType JAVA_PACKAGE_INFO
-
JAVA
public static final TextSourceType JAVA
-
KOTLIN
public static final TextSourceType KOTLIN
-
SCALA
public static final TextSourceType SCALA
-
UNSUPPORTED
public static final TextSourceType UNSUPPORTED
-
-
Method Detail
-
values
public static TextSourceType[] 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 (TextSourceType c : TextSourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextSourceType 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 namejava.lang.NullPointerException- if the argument is null
-
from
public static TextSourceType from(java.lang.String fileName)
-
-