/*******************************************************************************
* Copyright (c) 2006-2013, Cloudsmith Inc.
* The code, documentation and other materials contained herein have been
* licensed under the Eclipse Public License - v 1.0 by the copyright holder
* listed above, as the Initial Contributor under such license. The text of
* such license is available at www.eclipse.org.
*
* Contributors:
* Lorenzo Bettini - https://bugs.eclipse.org/bugs/show_bug.cgi?id=428301
******************************************************************************/
package org.eclipse.buckminster.rmap.pde.util;
import java.util.Map;
import org.eclipse.buckminster.model.common.ComponentIdentifier;
/**
* @author Thomas Hallgren
*/
public class MapFileEntry {
private final ComponentIdentifier componentIdentifier;
private final String readerType;
private final Map<String, Object> properties;
protected MapFileEntry(ComponentIdentifier componentIdentifier, String readerType, Map<String, Object> properties) {
this.componentIdentifier = componentIdentifier;
this.readerType = readerType;
this.properties = properties;
}
public ComponentIdentifier getComponentIdentifier() {
return componentIdentifier;
}
public Map<String, Object> getProperties() {
return properties;
}
public String getReaderType() {
return readerType;
}
@Override
public String toString() {
StringBuilder bld = new StringBuilder();
componentIdentifier.toString(bld);
bld.append(", "); //$NON-NLS-1$
bld.append(readerType);
bld.append(", "); //$NON-NLS-1$
bld.append(properties);
return bld.toString();
}
}