com.sap.ide.tools.core.patternfwk
Interface ISourcePatternResult
- All Superinterfaces:
- ISourcePatternTemplateHelper
- All Known Implementing Classes:
- DefaultSourcePatternResult
- public interface ISourcePatternResult
- extends ISourcePatternTemplateHelper
This interface must be implemented by all source pattern result classes. It
provides information about the generation results of the pattern and extends
the interface com.sap.ide.tools.core.patternfwk.ISourcePatternTemplateHelper
which offers those methods that are also relevant when Velocity code
generation is used.
com.sap.ide.tools.core.patternfwk.DefaultSourcePatternResult is
a default implementation for this interface, but pattern implementors can
also directly implement this interface for their result class.
|
Method Summary |
java.lang.String |
getCoding()
This method should return the generated source code for the source pattern.
|
void |
setCoding(java.lang.String coding)
This method sets the generated source code for the source pattern. |
getCoding
public java.lang.String getCoding()
- This method should return the generated source code for the source pattern.
In case a Velocity template is used for code generation the result of this
method is ignored.
- Returns:
- The generated source code fragment as a
java.lang.String.
setCoding
public void setCoding(java.lang.String coding)
- This method sets the generated source code for the source pattern. In case a
Velocity template is used for code generation the source code is set by the
framework with a call to thios method after the call to the source template
intance method
generate(ISourcePatternData).
- Parameters:
coding - The generated source code fragment as a java.lang.String.
Copyright © 2005 SAP AG. All Rights Reserved.