public abstract class MappingSupport extends Object implements Mapping
Mapping implementations.ARTIFACT_ID_PROPERTY, DESCRIPTION_PROPERTY, GROUP_ID_PROPERTY, NAME_PROPERTY, PACKAGING_PROPERTY, PROPERTY_PREFIX, URL_PROPERTY, VERSION_PROPERTY| Modifier | Constructor and Description |
|---|---|
protected |
MappingSupport(String roleHint) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Map<String,?> options)
Tests weather this mapping accepts the given option
|
String[] |
getAcceptLocationExtensions() |
String[] |
getAcceptOptionKeys() |
String |
getFlavour() |
String |
getLocation(Map<?,?> options) |
String[] |
getPomNames() |
float |
getPriority()
get the priority of this mapping, higher priorities are given precedence over those with lower priority, the default priority is 0
|
org.apache.maven.model.io.ModelReader |
getReader() |
org.apache.maven.model.io.ModelWriter |
getWriter() |
File |
locatePom(File dir)
Locates the pom in the given directory
|
void |
setAcceptLocationExtensions(String... accept) |
void |
setAcceptOptionKeys(String... accept) |
void |
setPomNames(String... names) |
protected void |
setPriority(float priority) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEnhancementPropertiesprotected MappingSupport(String roleHint)
public String getFlavour()
getFlavour in interface Mappingpublic org.apache.maven.model.io.ModelReader getReader()
getReader in interface MappingModelReader responsible for reading poms returned by the Mapping.locatePom(File) methodpublic org.apache.maven.model.io.ModelWriter getWriter()
getWriter in interface MappingModelWriter responsible for writing poms returned by the Mapping.locatePom(File) methodpublic String[] getAcceptLocationExtensions()
public void setAcceptLocationExtensions(String... accept)
public String[] getAcceptOptionKeys()
public void setAcceptOptionKeys(String... accept)
public String[] getPomNames()
public void setPomNames(String... names)
public File locatePom(File dir)
Mappingpublic boolean accept(Map<String,?> options)
Mappingpublic float getPriority()
MappinggetPriority in interface Mappingprotected void setPriority(float priority)
Copyright © 2025. All rights reserved.