public Builder withParent( final ProjectVersionRef parent ) { this.parent = new SimpleParentRelationship( source, ref, parent ); return this; }
@Override public ParentRelationship detach() { return new SimpleParentRelationship( this ); } }
public EProjectDirectRelationships build() { if ( parent == null ) { parent = new SimpleParentRelationship( ref ); } return new EProjectDirectRelationships( source, ref, parent, boms, dependencies, plugins, managedDependencies, managedPlugins, extensions, pluginDependencies ); }
@Override public ParentRelationship cloneFor( final ProjectVersionRef declaring ) { return new SimpleParentRelationship( getSources(), declaring, getTarget() ); }
@Override public ParentRelationship selectDeclaring( final ProjectVersionRef ref ) { final ProjectVersionRef t = getTarget(); return new SimpleParentRelationship( getSources(), ref, t ); }
@Override public ParentRelationship selectTarget( final ProjectVersionRef ref ) { final ProjectVersionRef d = getDeclaring(); return new SimpleParentRelationship( getSources(), d, ref ); }
@Override public ParentRelationship addSource( final URI source ) { Set<URI> srcs = getSources(); srcs.add( source ); return new SimpleParentRelationship( srcs, getDeclaring(), getTarget() ); }
@Override public ParentRelationship addSources( final Collection<URI> sources ) { Set<URI> srcs = getSources(); srcs.addAll( sources ); return new SimpleParentRelationship( srcs, getDeclaring(), getTarget() ); } }
builder.withParent( new SimpleParentRelationship( source, builder.getProjectRef(), ref ) ); builder.withParent( new SimpleParentRelationship( builder.getProjectRef() ) );
rel = new SimpleParentRelationship( sources, declaring, target ); break;
rel = new SimpleParentRelationship( sources, declaring, target ); break;
graph.storeRelationships( new SimpleParentRelationship( result.getSelectedRef() ) );
graph.storeRelationships( new SimpleParentRelationship( result.getSelectedRef() ) );