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
FormatProcessorRESOLVEDTYPE and returns as the typed return value.process in interface FormatProcessorartifact - The type to be processedreturnType - The type to be returnedIllegalArgumentException - If the RESOLVEDTYPE argument is not specified or 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 notCopyright © 2016 JBoss by Red Hat. All rights reserved.