public enum ResourceFileType extends Enum<ResourceFileType>
| Modifier and Type | Method and Description |
|---|---|
File |
addExtensionIfMissing(File file) |
static ResourceFileType |
fromExtension(String ext) |
static ResourceFileType |
fromFile(File file) |
String |
getArtifactType() |
abstract com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
static ResourceFileType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceFileType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResourceFileType json
public static final ResourceFileType yaml
public static ResourceFileType[] values()
for (ResourceFileType c : ResourceFileType.values()) System.out.println(c);
public static ResourceFileType 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 abstract com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public String getArtifactType()
public static ResourceFileType fromExtension(String ext)
public static ResourceFileType fromFile(File file)
Copyright © 2023. All rights reserved.