public enum URLFormatProcessor extends Enum<URLFormatProcessor> implements FormatProcessor
FormatProcessor
implementation to return an URL
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 |
URL |
process(ResolvedArtifact artifact,
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 URLFormatProcessor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static URLFormatProcessor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final URLFormatProcessor INSTANCE
public static URLFormatProcessor[] values()
for (URLFormatProcessor c : URLFormatProcessor.values()) System.out.println(c);
public static URLFormatProcessor 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 URL process(ResolvedArtifact artifact, Class returnType) throws IllegalArgumentException
FormatProcessor
RESOLVEDTYPE
and returns as the typed return value.process
in interface FormatProcessor
artifact
- The type to be processedreturnType
- The type to be returnedIllegalArgumentException
- If the RESOLVEDTYPE
argument is not specified or nullpublic boolean handles(Class resolvedTypeClass)
FormatProcessor
resolvedTypeClass
handles
in interface FormatProcessor
resolvedTypeClass
- The type to be processedresolvedTypeClass
or notpublic boolean returns(Class returnTypeClass)
FormatProcessor
returnTypeClass
.returns
in interface FormatProcessor
returnTypeClass
- The type to be returnedreturnTypeClass
or notCopyright © 2022 JBoss by Red Hat. All rights reserved.