org.joinedworkz.common.adapter.ResourceProvideAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-base Show documentation
Show all versions of common-base Show documentation
DSL based modeling framework - facilities common base
package org.joinedworkz.common.adapter;
import java.util.Map;
import org.eclipse.xtend.lib.annotations.Accessors;
import org.eclipse.xtext.xbase.lib.CollectionLiterals;
import org.eclipse.xtext.xbase.lib.Pure;
import org.joinedworkz.core.model.CmnAdapter;
import org.joinedworkz.core.model.CmnComponent;
import org.joinedworkz.core.model.CmnProvidedResource;
@Accessors
@SuppressWarnings("all")
public class ResourceProvideAdapter implements CmnAdapter {
private final Map providedResources = CollectionLiterals.newLinkedHashMap();
public CmnProvidedResource putProvidedResource(final CmnComponent component, final CmnProvidedResource providedResource) {
return this.providedResources.put(component, providedResource);
}
public CmnProvidedResource getProvidedResource(final CmnComponent component) {
return this.providedResources.get(component);
}
@Pure
public Map getProvidedResources() {
return this.providedResources;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy