@Override public synchronized PluginRelationship cloneFor( final ProjectVersionRef projectRef ) { return new SimplePluginRelationship( getSources(), getPomLocation(), projectRef, getTarget(), getIndex(), isManaged(), reporting, isInherited() ); }
@Override public ExtensionRelationship selectDeclaring( final ProjectVersionRef ref ) { final ProjectVersionRef t = getTarget(); // TODO return new SimpleExtensionRelationship( getSources(), getPomLocation(), ref, t, getIndex(), isInherited() ); }
@Override public BomRelationship selectTarget( final ProjectVersionRef ref ) { final ProjectVersionRef d = getDeclaring(); return new SimpleBomRelationship( getSources(), d, ref, getIndex(), isInherited(), isMixin() ); }
@Override public ExtensionRelationship selectTarget( final ProjectVersionRef ref ) { final ProjectVersionRef d = getDeclaring(); return new SimpleExtensionRelationship( getSources(), getPomLocation(), d, ref, getIndex(), isInherited() ); }
@Override public BomRelationship selectDeclaring( final ProjectVersionRef ref ) { final ProjectVersionRef t = getTarget(); return new SimpleBomRelationship( getSources(), ref, t, getIndex(), isInherited(), isMixin() ); }
@Override public ParentRelationship cloneFor( final ProjectVersionRef declaring ) { return new SimpleParentRelationship( getSources(), declaring, getTarget() ); }
public Builder withParent( final ProjectVersionRef parent ) { this.parent = new SimpleParentRelationship( source, ref, parent ); return this; }
@Override public DependencyRelationship detach() { return new SimpleDependencyRelationship( this ); }
@Override public PluginRelationship detach() { return new SimplePluginRelationship( this ); }
@Override public PluginDependencyRelationship detach() { return new SimplePluginDependencyRelationship( this ); }
@Override public BomRelationship detach() { return new SimpleBomRelationship( this ); } }
public SimplePluginRelationship( final PluginRelationship relationship ) { super( relationship ); this.reporting = relationship.isReporting(); }
@Override public ArtifactRef getTargetArtifact() { return getTarget(); }
@Override public ArtifactRef getTargetArtifact() { return getTarget(); }
@Override public PluginRelationship selectDeclaring( final ProjectVersionRef ref ) { final ProjectVersionRef t = getTarget(); return new SimplePluginRelationship( getSources(), getPomLocation(), ref, t, getIndex(), isManaged(), isReporting(), isInherited() ); }
@Override public ExtensionRelationship cloneFor( final ProjectVersionRef declaring ) { return new SimpleExtensionRelationship( getSources(), getPomLocation(), declaring, getTarget(), getIndex(), isInherited() ); }