public enum PathFormatProcessor extends Enum<PathFormatProcessor> implements FormatProcessor
FormatProcessor implementation to return a Path from the provided ResolvedArtifact argument.
Implementation note: This format processor does not use type parameters to be able to process any type inherited from
ResolvedArtifact.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
handles(Class resolvedTypeClass)
Checks if the processor is able to process
resolvedTypeClass |
Path |
process(ResolvedArtifact input,
Class returnType)
Processes the specified
RESOLVEDTYPE and returns as the typed return value. |
boolean |
returns(Class returnTypeClass)
Checks if the processor is able to return
returnTypeClass. |
static PathFormatProcessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PathFormatProcessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PathFormatProcessor INSTANCE
public static PathFormatProcessor[] values()
for (PathFormatProcessor c : PathFormatProcessor.values()) System.out.println(c);
public static PathFormatProcessor 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 boolean handles(Class resolvedTypeClass)
FormatProcessorresolvedTypeClasshandles in interface FormatProcessorresolvedTypeClass - The type to be processedresolvedTypeClass or notpublic boolean returns(Class returnTypeClass)
FormatProcessorreturnTypeClass.returns in interface FormatProcessorreturnTypeClass - The type to be returnedreturnTypeClass or notpublic Path process(ResolvedArtifact input, Class returnType) throws IllegalArgumentException
FormatProcessorRESOLVEDTYPE and returns as the typed return value.process in interface FormatProcessorinput - The type to be processedreturnType - The type to be returnedIllegalArgumentException - If the RESOLVEDTYPE argument is not specified or nullCopyright © 2024 JBoss by Red Hat. All rights reserved.