Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2011 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
 
 package org.eclipse.equinox.internal.p2.updatesite.artifact;
 
 import java.net.URI;
 import java.util.Map;
 
 public class UpdateSiteArtifactRepository implements IArtifactRepository {
 
 	public static final String TYPE = "org.eclipse.equinox.p2.updatesite.artifactRepository"//$NON-NLS-1$
 	public static final String VERSION = Integer.toString(1);
 
 	private URI location;
 
 	public UpdateSiteArtifactRepository(URI locationIArtifactRepository repository) {
 		this. = location;
 		this. = repository;
 	}
 
 	public void addDescriptor(IArtifactDescriptor descriptorIProgressMonitor monitor) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	public void addDescriptor(IArtifactDescriptor descriptor) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	public void addDescriptors(IArtifactDescriptor[] descriptorsIProgressMonitor monitor) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	public void addDescriptors(IArtifactDescriptor[] descriptors) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	public boolean contains(IArtifactDescriptor descriptor) {
 		return .contains(descriptor);
 	}
 
 	public boolean contains(IArtifactKey key) {
 		return .contains(key);
 	}
 
 	public IStatus getArtifact(IArtifactDescriptor descriptorOutputStream destinationIProgressMonitor monitor) {
 		return .getArtifact(descriptordestinationmonitor);
 	}
 
 	}
 
 	public IStatus getArtifacts(IArtifactRequest[] requestsIProgressMonitor monitor) {
 		return .getArtifacts(requestsmonitor);
 	}
 	
 		// TODO Auto-generated method stub
 		return null;
 	}
 
 	public IStatus getRawArtifact(IArtifactDescriptor descriptorOutputStream destinationIProgressMonitor monitor) {
 		return .getRawArtifact(descriptordestinationmonitor);
 	}
 
 	public void removeAll(IProgressMonitor monitor) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	public void removeAll() {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	public void removeDescriptor(IArtifactDescriptor descriptorIProgressMonitor monitor) {
 		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
 	}
 
 	public void removeDescriptor(IArtifactDescriptor descriptor) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public void removeDescriptors(IArtifactDescriptor[] descriptorsIProgressMonitor monitor) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public void removeDescriptors(IArtifactDescriptor[] descriptors) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public void removeDescriptor(IArtifactKey keyIProgressMonitor monitor) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public void removeDescriptor(IArtifactKey key) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public void removeDescriptors(IArtifactKey[] keysIProgressMonitor monitor) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public void removeDescriptors(IArtifactKey[] keys) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public String getDescription() {
	}
	public URI getLocation() {
		return this.;
	}
	public String getName() {
		return .getName();
	}
	public Map<StringStringgetProperties() {
	}
	public String getProperty(String key) {
		return .getProperty(key);
	}
	public String getProvider() {
	}
	}
	public String getType() {
		return ;
	}
	public String getVersion() {
		return ;
	}
	public boolean isModifiable() {
		return false;
	}
	public void setDescription(String description) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public void setName(String name) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public String setProperty(String keyString valueIProgressMonitor monitor) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public String setProperty(String keyString value) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	public void setProvider(String provider) {
		throw new UnsupportedOperationException("Repository not modifiable: " + ); //$NON-NLS-1$
	}
	@SuppressWarnings("rawtypes")
	public Object getAdapter(Class adapter) {
		return .getAdapter(adapter);
	}
	}
	public IArtifactKey createArtifactKey(String classifierString idVersion version) {
		return .createArtifactKey(classifieridversion);
	}
	}
		return .query(querymonitor);
	}
		return .executeBatch(runnablemonitor);
	}
New to GrepCode? Check out our FAQ X