/** * @see java.lang.Object#hashCode() */ public int hashCode() { int result = 17; result = 37 * result + ( getArtifactId() != null ? getArtifactId().hashCode() : 0 ); result = 37 * result + ( getGroupId() != null ? getGroupId().hashCode() : 0 ); result = 37 * result + ( getVersion() != null ? getVersion().hashCode() : 0 ); return result; }
public static Extension cloneExtension( Extension src ) { Extension rExt = new Extension(); rExt.setArtifactId( src.getArtifactId() ); rExt.setGroupId( src.getGroupId() ); rExt.setVersion( src.getVersion() ); return rExt; }
@Override protected Object getExtensionKey( Extension extension ) { return extension.getGroupId() + ':' + extension.getArtifactId(); }
protected void mergeExtension_GroupId( Extension target, Extension 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" ) ); } } }
Extension extension = new Extension(); InputLocation _location; _location = new InputLocation( parser.getLineNumber(), parser.getColumnNumber(), source ); extension.setLocation( "", _location ); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) extension.setLocation( "groupId", _location ); extension.setGroupId( interpolatedTrimmed( parser.nextText(), "groupId" ) ); extension.setLocation( "artifactId", _location ); extension.setArtifactId( interpolatedTrimmed( parser.nextText(), "artifactId" ) ); extension.setLocation( "version", _location ); extension.setVersion( interpolatedTrimmed( parser.nextText(), "version" ) );
/** * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof Extension ) ) { return false; } Extension e = (Extension) o; if ( !equal( e.getArtifactId(), getArtifactId() ) ) { return false; } else if ( !equal( e.getGroupId(), getGroupId() ) ) { return false; } else if ( !equal( e.getVersion(), getVersion() ) ) { return false; } return true; }
protected void mergeExtension_ArtifactId( Extension target, Extension 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 mergeExtension_Version( Extension target, Extension 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" ) ); } } }
public Extension mergeExtension(Extension extension) { extension.setGroupId(groupId); extension.setArtifactId(artifactId); if(version != null) extension.setVersion(version); return extension; }
int errors = 0; for (final Extension ext : env.project().getBuildExtensions()) { if (SnapshotsValidator.isSnapshot(ext.getVersion())) { Logger.warn( this,
public default Extension extension(NamedValue... keyValuePairs) { return NamedValueProcessor.namedToObject(new Extension(), keyValuePairs); }
Extension extension = new Extension(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- ) extension.setGroupId( interpolatedTrimmed( parser.nextText(), "groupId" ) ); extension.setArtifactId( interpolatedTrimmed( parser.nextText(), "artifactId" ) ); extension.setVersion( interpolatedTrimmed( parser.nextText(), "version" ) );
String extensionId = ArtifactUtils.versionlessKey( extension.getGroupId(), extension.getArtifactId() ); if ( dag.getVertex( extensionId ) != null )
/** * @see java.lang.Object#equals(java.lang.Object) */ public boolean equals( Object o ) { if ( this == o ) { return true; } if ( !( o instanceof Extension ) ) { return false; } Extension e = (Extension) o; if ( !equal( e.getArtifactId(), getArtifactId() ) ) { return false; } else if ( !equal( e.getGroupId(), getGroupId() ) ) { return false; } else if ( !equal( e.getVersion(), getVersion() ) ) { return false; } return true; }
protected void mergeExtension_GroupId( Extension target, Extension 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 mergeExtension_ArtifactId( Extension target, Extension 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 mergeExtension_Version( Extension target, Extension 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" ) ); } } }
public Extension mergeExtension(Extension extension) { extension.setGroupId(groupId); extension.setArtifactId(artifactId); if(version != null) extension.setVersion(version); return extension; }
public Object newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attrs) throws InstantiationException, IllegalAccessException { Extension node; if (value != null) { node = parse(value); if (node == null) { throw new NodeValueParseException(this, value); } } else { node = new Extension(); } return node; }
if ( StringUtils.isEmpty( ext.getVersion() ) ) version = ext.getVersion(); artifactFactory.createExtensionArtifact( ext.getGroupId(), ext.getArtifactId(), versionRange ); "' for extension '" + ArtifactUtils.versionlessKey( ext.getGroupId(), ext.getArtifactId() ) + "': " + e.getMessage(), e );