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 String
getRequiredXMLAttributeValue(Element element, String attributeName)
protected static String
getXMLAttributeValue(Element element, String attributeName)
protected void
initModel(org.apache.maven.model.Model model, Reader artifactReader, File artifactFile)
protected abstract void
initModelFromXML(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:
initModel
in classAbstractTychoMapping
- Throws:
org.apache.maven.model.io.ModelParseException
IOException
-
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.ModelParseException
IOException
-
getRequiredXMLAttributeValue
protected static String getRequiredXMLAttributeValue(Element element, String attributeName) throws org.apache.maven.model.io.ModelParseException
- Throws:
org.apache.maven.model.io.ModelParseException
-
-