protected void mergeDependency_Version( Dependency target, Dependency 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 mergeDependency_ArtifactId( Dependency target, Dependency 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 mergeDependency_GroupId( Dependency target, Dependency 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 mergeDependency_Scope( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getScope(); if ( src != null ) { if ( sourceDominant || target.getScope() == null ) { target.setScope( src ); target.setLocation( "scope", source.getLocation( "scope" ) ); } } }
protected void mergeDependency_Type( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getType(); if ( src != null ) { if ( sourceDominant || target.getType() == null ) { target.setType( src ); target.setLocation( "type", source.getLocation( "type" ) ); } } }
protected void mergeDependency_SystemPath( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getSystemPath(); if ( src != null ) { if ( sourceDominant || target.getSystemPath() == null ) { target.setSystemPath( src ); target.setLocation( "systemPath", source.getLocation( "systemPath" ) ); } } }
protected void mergeDependency_Classifier( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getClassifier(); if ( src != null ) { if ( sourceDominant || target.getClassifier() == null ) { target.setClassifier( src ); target.setLocation( "classifier", source.getLocation( "classifier" ) ); } } }
protected void mergeDependency_Optional( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getOptional(); if ( src != null ) { if ( sourceDominant || target.getOptional() == null ) { target.setOptional( src ); target.setLocation( "optional", source.getLocation( "optional" ) ); } } }
InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); dependency.setLocation( "", _location ); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) dependency.setLocation( "groupId", _location ); dependency.setGroupId( interpolatedTrimmed( parser.nextText(), "groupId" ) ); dependency.setLocation( "artifactId", _location ); dependency.setArtifactId( interpolatedTrimmed( parser.nextText(), "artifactId" ) ); dependency.setLocation( "version", _location ); dependency.setVersion( interpolatedTrimmed( parser.nextText(), "version" ) ); dependency.setLocation( "type", _location ); dependency.setType( interpolatedTrimmed( parser.nextText(), "type" ) ); dependency.setLocation( "classifier", _location ); dependency.setClassifier( interpolatedTrimmed( parser.nextText(), "classifier" ) ); dependency.setLocation( "scope", _location ); dependency.setScope( interpolatedTrimmed( parser.nextText(), "scope" ) ); dependency.setLocation( "systemPath", _location ); dependency.setSystemPath( interpolatedTrimmed( parser.nextText(), "systemPath" ) ); dependency.setLocation( "optional", _location ); dependency.setOptional( interpolatedTrimmed( parser.nextText(), "optional" ) );
public void setLocation(Object key, InputLocation location) { dependency.setLocation(key, location); }
protected void mergeDependency_GroupId( Dependency target, Dependency 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 mergeDependency_ArtifactId( Dependency target, Dependency 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 mergeDependency_Version( Dependency target, Dependency 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 mergeDependency_Classifier( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getClassifier(); if ( src != null ) { if ( sourceDominant || target.getClassifier() == null ) { target.setClassifier( src ); target.setLocation( "classifier", source.getLocation( "classifier" ) ); } } }
protected void mergeDependency_Type( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getType(); if ( src != null ) { if ( sourceDominant || target.getType() == null ) { target.setType( src ); target.setLocation( "type", source.getLocation( "type" ) ); } } }
protected void mergeDependency_Scope( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getScope(); if ( src != null ) { if ( sourceDominant || target.getScope() == null ) { target.setScope( src ); target.setLocation( "scope", source.getLocation( "scope" ) ); } } }
protected void mergeDependency_SystemPath( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getSystemPath(); if ( src != null ) { if ( sourceDominant || target.getSystemPath() == null ) { target.setSystemPath( src ); target.setLocation( "systemPath", source.getLocation( "systemPath" ) ); } } }
protected void mergeDependency_Optional( Dependency target, Dependency source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getOptional(); if ( src != null ) { if ( sourceDominant || target.getOptional() == null ) { target.setOptional( src ); target.setLocation( "optional", source.getLocation( "optional" ) ); } } }
InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); dependency.setLocation( "", _location ); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) dependency.setLocation( "groupId", _location ); dependency.setGroupId( getTrimmedValue( parser.nextText() ) ); dependency.setLocation( "artifactId", _location ); dependency.setArtifactId( getTrimmedValue( parser.nextText() ) ); dependency.setLocation( "version", _location ); dependency.setVersion( getTrimmedValue( parser.nextText() ) ); dependency.setLocation( "type", _location ); dependency.setType( getTrimmedValue( parser.nextText() ) ); dependency.setLocation( "classifier", _location ); dependency.setClassifier( getTrimmedValue( parser.nextText() ) ); dependency.setLocation( "scope", _location ); dependency.setScope( getTrimmedValue( parser.nextText() ) ); dependency.setLocation( "systemPath", _location ); dependency.setSystemPath( getTrimmedValue( parser.nextText() ) ); dependency.setLocation( "optional", _location ); dependency.setOptional( getTrimmedValue( parser.nextText() ) );