@Override protected void mergeModel_Name( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getName(); if ( src != null ) { if ( sourceDominant ) { target.setName( src ); target.setLocation( "name", source.getLocation( "name" ) ); } } }
protected void mergeModel_Url( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getUrl(); if ( src != null ) { if ( sourceDominant || target.getUrl() == null ) { target.setUrl( src ); target.setLocation( "url", source.getLocation( "url" ) ); } } }
protected void mergeModel_Description( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getDescription(); if ( src != null ) { if ( sourceDominant || target.getDescription() == null ) { target.setDescription( src ); target.setLocation( "description", source.getLocation( "description" ) ); } } }
protected void mergeModel_Packaging( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getPackaging(); if ( src != null ) { if ( sourceDominant || target.getPackaging() == null ) { target.setPackaging( src ); target.setLocation( "packaging", source.getLocation( "packaging" ) ); } } }
protected void mergeModel_Name( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getName(); if ( src != null ) { if ( sourceDominant || target.getName() == null ) { target.setName( src ); target.setLocation( "name", source.getLocation( "name" ) ); } } }
protected void mergeModel_ModelVersion( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getModelVersion(); if ( src != null ) { if ( sourceDominant || target.getModelVersion() == null ) { target.setModelVersion( src ); target.setLocation( "modelVersion", source.getLocation( "modelVersion" ) ); } } }
protected void mergeModel_GroupId( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getGroupId(); if ( src != null ) { if ( sourceDominant || target.getGroupId() == null ) { target.setGroupId( src ); target.setLocation( "groupId", source.getLocation( "groupId" ) ); } } }
protected void mergeModel_ArtifactId( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getArtifactId(); if ( src != null ) { if ( sourceDominant || target.getArtifactId() == null ) { target.setArtifactId( src ); target.setLocation( "artifactId", source.getLocation( "artifactId" ) ); } } }
protected void mergeModel_Version( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getVersion(); if ( src != null ) { if ( sourceDominant || target.getVersion() == null ) { target.setVersion( src ); target.setLocation( "version", source.getLocation( "version" ) ); } } }
protected void mergeModel_InceptionYear( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getInceptionYear(); if ( src != null ) { if ( sourceDominant || target.getInceptionYear() == null ) { target.setInceptionYear( src ); target.setLocation( "inceptionYear", source.getLocation( "inceptionYear" ) ); } } }
protected void mergeModel_ChildProjectUrlInheritAppendPath( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getChildProjectUrlInheritAppendPath(); if ( src != null ) { if ( sourceDominant || target.getChildProjectUrlInheritAppendPath() == null ) { target.setChildProjectUrlInheritAppendPath( src ); target.setLocation( "child.project.url.inherit.append.path", source.getLocation( "child.project.url.inherit.append.path" ) ); } } }
@Override protected void mergeModel_Url( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getUrl(); if ( src != null ) { if ( sourceDominant ) { target.setUrl( src ); target.setLocation( "url", source.getLocation( "url" ) ); } else if ( target.getUrl() == null ) { target.setUrl( extrapolateChildUrl( src, source.isChildProjectUrlInheritAppendPath(), context ) ); target.setLocation( "url", source.getLocation( "url" ) ); } } }
InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); model.setLocation( "", _location ); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) model.setLocation( "childProjectUrlInheritAppendPath", _location ); model.setChildProjectUrlInheritAppendPath( interpolatedTrimmed( value, "child.project.url.inherit.append.path" ) ); model.setLocation( "modelVersion", _location ); model.setModelVersion( interpolatedTrimmed( parser.nextText(), "modelVersion" ) ); model.setLocation( "groupId", _location ); model.setGroupId( interpolatedTrimmed( parser.nextText(), "groupId" ) ); model.setLocation( "artifactId", _location ); model.setArtifactId( interpolatedTrimmed( parser.nextText(), "artifactId" ) ); model.setLocation( "version", _location ); model.setVersion( interpolatedTrimmed( parser.nextText(), "version" ) ); model.setLocation( "packaging", _location ); model.setPackaging( interpolatedTrimmed( parser.nextText(), "packaging" ) ); model.setLocation( "name", _location ); model.setName( interpolatedTrimmed( parser.nextText(), "name" ) ); model.setLocation( "description", _location ); model.setDescription( interpolatedTrimmed( parser.nextText(), "description" ) );
/** * * @param key * @param location */ public FluentModelBuilder withLocation(Object key, InputLocation location) { model.setLocation(key, location); return this; }
@Override public void setLocation(Object key, InputLocation location) { delegate.setLocation(key, location); }
protected void mergeModel_Url( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getUrl(); if ( src != null ) { if ( sourceDominant || target.getUrl() == null ) { target.setUrl( src ); target.setLocation( "url", source.getLocation( "url" ) ); } } }
protected void mergeModel_ArtifactId( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getArtifactId(); if ( src != null ) { if ( sourceDominant || target.getArtifactId() == null ) { target.setArtifactId( src ); target.setLocation( "artifactId", source.getLocation( "artifactId" ) ); } } }
protected void mergeModel_GroupId( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getGroupId(); if ( src != null ) { if ( sourceDominant || target.getGroupId() == null ) { target.setGroupId( src ); target.setLocation( "groupId", source.getLocation( "groupId" ) ); } } }
protected void mergeModel_Version( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getVersion(); if ( src != null ) { if ( sourceDominant || target.getVersion() == null ) { target.setVersion( src ); target.setLocation( "version", source.getLocation( "version" ) ); } } }
protected void mergeModel_Description( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getDescription(); if ( src != null ) { if ( sourceDominant || target.getDescription() == null ) { target.setDescription( src ); target.setLocation( "description", source.getLocation( "description" ) ); } } }