blob: 88bf49b97475fd0812a1ea2ef73f129867b31f74 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004, 2005 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.wst.server.core.util;
import org.eclipse.wst.server.core.IModule;
import org.eclipse.wst.server.core.IModuleArtifact;
/**
* A dummy module artifact.
*
* @since 1.0
*/
public class NullModuleArtifact implements IModuleArtifact {
private IModule module;
/**
* Create a new reference to a module.
*
* @param module the module
*/
public NullModuleArtifact(IModule module) {
this.module = module;
}
/**
* @see IModuleArtifact#getModule()
*/
public IModule getModule() {
return module;
}
/**
* @see Object#toString()
*/
public String toString() {
return "NullModuleArtifact [module=" + module + "]";
}
}