@Override public BomRelationship cloneFor( final ProjectVersionRef declaring ) { return new SimpleBomRelationship( getSources(), getPomLocation(), declaring, getTarget(), getIndex(), isInherited(), isMixin() ); }
@Override public BomRelationship selectTarget( final ProjectVersionRef ref ) { final ProjectVersionRef d = getDeclaring(); return new SimpleBomRelationship( getSources(), d, ref, getIndex(), isInherited(), isMixin() ); }
@Override public String toString() { return String.format( "BomRelationship [%s => %s]", getDeclaring(), getTarget() ); } }
@Override public BomRelationship detach() { return new SimpleBomRelationship( this ); } }
@Override public ArtifactRef getTargetArtifact() { return getTarget().asPomArtifact(); }
rel = new SimpleBomRelationship( sources, pomLocation, declaring, target, index, inherited, mixin ); break;
@Override public BomRelationship selectDeclaring( final ProjectVersionRef ref ) { final ProjectVersionRef t = getTarget(); return new SimpleBomRelationship( getSources(), ref, t, getIndex(), isInherited(), isMixin() ); }
rel = new SimpleBomRelationship( sources, pomLocation, declaring, target, index, inherited, mixin ); break;
@Override public BomRelationship addSource( final URI source ) { Set<URI> srcs = getSources(); srcs.add( source ); return new SimpleBomRelationship( srcs, getPomLocation(), getDeclaring(), getTarget(), getIndex(), isInherited(), isMixin() ); }
try builder.withBoms( new SimpleBomRelationship( source, projectRef, bomView.asProjectVersionRef(), i, bomView.getOriginInfo().isInherited(), bomView.getOriginInfo().isMixin() ) );
@Override public BomRelationship addSources( final Collection<URI> sources ) { Set<URI> srcs = getSources(); srcs.addAll( sources ); return new SimpleBomRelationship( srcs, getPomLocation(), getDeclaring(), getTarget(), getIndex(), isInherited(), isMixin() ); }