@Override public ExtensionRelationship detach() { return new SimpleExtensionRelationship( this ); }
public Builder withExtension( final ProjectVersionRef ref, final boolean inherited ) { withExtensions( new SimpleExtensionRelationship( source, POM_ROOT_URI, ref, ref, getNextExtensionIndex(), inherited ) ); return this; }
@Override public ExtensionRelationship addSource( final URI source ) { Set<URI> srcs = getSources(); srcs.add( source ); return new SimpleExtensionRelationship( srcs, getPomLocation(), getDeclaring(), getTarget(), getIndex(), isInherited() ); }
@Override public ExtensionRelationship addSources( final Collection<URI> sources ) { Set<URI> srcs = getSources(); srcs.addAll( sources ); return new SimpleExtensionRelationship( srcs, getPomLocation(), getDeclaring(), getTarget(), getIndex(), isInherited() ); } }
@Override public ExtensionRelationship selectDeclaring( final ProjectVersionRef ref ) { final ProjectVersionRef t = getTarget(); // TODO return new SimpleExtensionRelationship( getSources(), getPomLocation(), ref, t, getIndex(), isInherited() ); }
@Override public ExtensionRelationship selectTarget( final ProjectVersionRef ref ) { final ProjectVersionRef d = getDeclaring(); return new SimpleExtensionRelationship( getSources(), getPomLocation(), d, ref, getIndex(), isInherited() ); }
@Override public ExtensionRelationship cloneFor( final ProjectVersionRef declaring ) { return new SimpleExtensionRelationship( getSources(), getPomLocation(), declaring, getTarget(), getIndex(), isInherited() ); }
rel = new SimpleExtensionRelationship( sources, pomLocation, declaring, target, index, inherited ); break;
rel = new SimpleExtensionRelationship( sources, pomLocation, declaring, target, index, inherited ); break;
builder.withExtensions( new SimpleExtensionRelationship( source, projectRef, ref, builder.getNextExtensionIndex(), ext.getOriginInfo().isInherited() ) );