@Beta public class StorageTraversal extends Object implements IAdaptable, IDiagnosable
Constructor and Description |
---|
StorageTraversal(Set<? extends IStorage> storages)
Creates our traversal given its set of resources.
|
StorageTraversal(Set<? extends IStorage> storages,
Diagnostic diagnostic)
Creates our traversal given its set of resources.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
getAdapter(Class adapter) |
Diagnostic |
getDiagnostic()
Returns the diagnostic of the storages of this traversal.
|
Set<? extends IStorage> |
getStorages()
Returns the set of resources that are part of this traversal.
|
int |
hashCode() |
void |
removeStorage(IStorage storage)
Removes the given storage from this traversal.
|
void |
setDiagnostic(Diagnostic diagnostic)
Set the diagnostic to be associated with this scope.
|
public StorageTraversal(Set<? extends IStorage> storages)
storages
- The set of resources that are part of this traversal.public StorageTraversal(Set<? extends IStorage> storages, Diagnostic diagnostic)
storages
- The set of resources that are part of this traversal.diagnostic
- diagnostic of the errors that may occur during loading of the storages.public Set<? extends IStorage> getStorages()
Note that this is the original set, and that any modification on the returned Set
will affect
this traversal.
public void removeStorage(IStorage storage)
storage
- The storage to be removed.public Diagnostic getDiagnostic()
getDiagnostic
in interface IDiagnosable
public void setDiagnostic(Diagnostic diagnostic)
setDiagnostic
in interface IDiagnosable
diagnostic
- the diagnosticIDiagnosable.setDiagnostic(org.eclipse.emf.common.util.Diagnostic)
public Object getAdapter(Class adapter)
getAdapter
in interface IAdaptable
IAdaptable.getAdapter(java.lang.Class)
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.