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.DocumentBuilderFactoryFACTORY-
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 java.lang.StringgetRequiredXMLAttributeValue(org.w3c.dom.Element element, java.lang.String attributeName)protected static java.lang.StringgetXMLAttributeValue(org.w3c.dom.Element element, java.lang.String attributeName)protected voidinitModel(org.apache.maven.model.Model model, java.io.Reader artifactReader, java.io.File artifactFile)protected abstract voidinitModelFromXML(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, getPriority, 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:
initModelin classAbstractTychoMapping- Throws:
org.apache.maven.model.io.ModelParseExceptionjava.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.ModelParseExceptionjava.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)
-
-