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 Modifier and Type Field Description private static javax.xml.parsers.DocumentBuilderFactory
FACTORY
-
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 float
getPriority()
protected static java.lang.String
getRequiredXMLAttributeValue(org.w3c.dom.Element element, java.lang.String attributeName)
protected static java.lang.String
getXMLAttributeValue(org.w3c.dom.Element element, java.lang.String attributeName)
protected void
initModel(org.apache.maven.model.Model model, java.io.Reader artifactReader, java.io.File artifactFile)
protected abstract void
initModelFromXML(org.apache.maven.model.Model model, org.w3c.dom.Element xml, java.io.File artifactFile)
-
Methods inherited from class org.eclipse.tycho.pomless.AbstractTychoMapping
accept, findParent, getBuildProperties, getFlavour, getPackaging, getPomVersion, getPrimaryArtifact, getPrimaryArtifactCharset, getReader, getRealArtifactFile, getWriter, isValidLocation, locatePom, locatePomReference, read, read, read
-
-
-
-
Method Detail
-
initModel
protected void initModel(org.apache.maven.model.Model model, java.io.Reader artifactReader, java.io.File artifactFile) throws org.apache.maven.model.io.ModelParseException, java.io.IOException
- Specified by:
initModel
in classAbstractTychoMapping
- Throws:
org.apache.maven.model.io.ModelParseException
java.io.IOException
-
initModelFromXML
protected abstract void initModelFromXML(org.apache.maven.model.Model model, org.w3c.dom.Element xml, java.io.File artifactFile) throws org.apache.maven.model.io.ModelParseException, java.io.IOException
- Throws:
org.apache.maven.model.io.ModelParseException
java.io.IOException
-
getRequiredXMLAttributeValue
protected static java.lang.String getRequiredXMLAttributeValue(org.w3c.dom.Element element, java.lang.String attributeName) throws org.apache.maven.model.io.ModelParseException
- Throws:
org.apache.maven.model.io.ModelParseException
-
getXMLAttributeValue
protected static java.lang.String getXMLAttributeValue(org.w3c.dom.Element element, java.lang.String attributeName)
-
getPriority
public float getPriority()
- Specified by:
getPriority
in interfaceorg.sonatype.maven.polyglot.mapping.Mapping
- Overrides:
getPriority
in classAbstractTychoMapping
-
-