org.eclipse.osgi.storage.bundlefile.BundleFileWrapperChain Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spotless-ext-greclipse Show documentation
Show all versions of spotless-ext-greclipse Show documentation
Groovy Eclipse's formatter bundled for Spotless
The newest version!
/*******************************************************************************
* Copyright (c) 2008, 2013 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.osgi.storage.bundlefile;
import org.eclipse.osgi.internal.hookregistry.BundleFileWrapperFactoryHook;
/**
* Used to chain the BundleFile objects returned from {@link BundleFileWrapperFactoryHook}.
* This class is useful for traversing the chain of wrapped bundle files.
*/
public class BundleFileWrapperChain extends BundleFileWrapper {
private final BundleFile wrapped;
private final BundleFileWrapperChain next;
public BundleFileWrapperChain(BundleFile wrapped, BundleFileWrapperChain next) {
super(wrapped);
this.wrapped = wrapped;
this.next = next;
}
@Override
public String toString() {
return wrapped.toString();
}
/**
* The BundleFile that is wrapped
* @return the BunldeFile that is wrapped
*/
public BundleFile getWrapped() {
return wrapped;
}
/**
* The next WrapperBundleFile in the chain. A null
value
* is returned if this is the end of the chain.
* @return the next WrapperBundleFile
*/
public BundleFileWrapperChain getNext() {
return next;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy