blob: a505e1a56b5e41d48a7caa705cbf74f379dc1839 [file] [log] [blame]
/*******************************************************************************
* <copyright>
*
* Copyright (c) 2005, 2012 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP AG - initial API, implementation and documentation
* mwenz - Bug 325084 - Provide documentation for Patterns
*
* </copyright>
*
*******************************************************************************/
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;
}
}