Package org.eclipse.tycho.pomless
Class AbstractXMLTychoMapping
- java.lang.Object
-
- org.eclipse.tycho.pomless.AbstractTychoMapping
-
- org.eclipse.tycho.pomless.AbstractXMLTychoMapping
-
- All Implemented Interfaces:
org.apache.maven.model.io.ModelReader,org.sonatype.maven.polyglot.mapping.Mapping
- Direct Known Subclasses:
TychoFeatureMapping,TychoRepositoryMapping,TychoTargetMapping
public abstract class AbstractXMLTychoMapping extends AbstractTychoMapping
Baseclass for models derived from xml sources
-
-
Field Summary
-
Fields inherited from class org.eclipse.tycho.pomless.AbstractTychoMapping
container, logger
-
-
Constructor Summary
Constructors Constructor Description AbstractXMLTychoMapping()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static StringgetRequiredXMLAttributeValue(Element element, String attributeName)protected static StringgetXMLAttributeValue(Element element, String attributeName)protected voidinitModel(org.apache.maven.model.Model model, Reader artifactReader, File artifactFile)protected abstract voidinitModelFromXML(org.apache.maven.model.Model model, Element xml, File artifactFile)-
Methods inherited from class org.eclipse.tycho.pomless.AbstractTychoMapping
accept, findParent, getBuildProperties, getFlavour, getPackaging, getPomVersion, getPrimaryArtifact, getPrimaryArtifactCharset, getPriority, getReader, getRealArtifactFile, getWriter, isValidLocation, locatePom, locatePomReference, read, read, read
-
-
-
-
Method Detail
-
initModel
protected void initModel(org.apache.maven.model.Model model, Reader artifactReader, File artifactFile) throws org.apache.maven.model.io.ModelParseException, IOException- Specified by:
initModelin classAbstractTychoMapping- Throws:
org.apache.maven.model.io.ModelParseExceptionIOException
-
initModelFromXML
protected abstract void initModelFromXML(org.apache.maven.model.Model model, Element xml, File artifactFile) throws org.apache.maven.model.io.ModelParseException, IOException- Throws:
org.apache.maven.model.io.ModelParseExceptionIOException
-
getRequiredXMLAttributeValue
protected static String getRequiredXMLAttributeValue(Element element, String attributeName) throws org.apache.maven.model.io.ModelParseException
- Throws:
org.apache.maven.model.io.ModelParseException
-
-