blob: d7796041e3125ad48161718c8f21672d86b3661a [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 325084 - Provide documentation for Patterns
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.graphiti.pattern;
/**
* This feature wraps generic functionality of a pattern for calls of the
* Graphiti framework. Clients should not need to use this class directly.
*
* @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients.
*/
public class FeatureForPatternDelegate implements IFeatureForPattern {
private IPattern pattern;
/**
* Creates a new {@link FeatureForPatternDelegate}.
*
* @param pattern
* the pattern
*/
public FeatureForPatternDelegate(IPattern pattern) {
super();
setPattern(pattern);
}
/**
* Gets the pattern.
*
* @return Returns the pattern.
*/
public IPattern getPattern() {
return pattern;
}
/**
* Sets the pattern.
*
* @param pattern
* the new pattern
*/
private void setPattern(IPattern pattern) {
this.pattern = pattern;
}
}