blob: 10b514b99e1e36820acb9b7ba4ba896e13352505 [file] [log] [blame]
/*********************************************************************
* Copyright (c) 2005, 2019 SAP SE
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* SAP SE - initial API, implementation and documentation
* mwenz - Bug 394801 - AddGraphicalRepresentation doesn't carry properties
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.graphiti;
import java.util.List;
/**
* The Interface IPropertyBag.
*
* @noimplement This interface is not intended to be implemented by clients.
* @noextend This interface is not intended to be extended by clients.
*
* Extend {@link PropertyBag} instead
*/
public interface IPropertyBag {
/**
* Associates the specified value with the specified key. If a mapping for
* the key already exists, the old value is replaced.
*
* @param key
* key with which the specified value is to be associated
* @param value
* value to be associated with the specified key
* @return the previous value associated with <tt>key</tt>, or <tt>null</tt>
* if there was no mapping for <tt>key</tt>.
*
* @see #getProperty(Object)
*/
Object putProperty(Object key, Object value);
/**
* Returns the value to which the specified key is mapped, or {@code null}
* if there is no mapping for the key.
*
* @see #putProperty(Object, Object)
*/
Object getProperty(Object key);
/**
* Returns a {@link List} of all available property keys. The list may be
* empty.
*
* @return The list of all property keys.
*
* @since 0.10
*/
List<Object> getPropertyKeys();
}