Package de.japrost.staproma.spm
Class DefaultSpmFactory
- java.lang.Object
-
- de.japrost.staproma.spm.DefaultSpmFactory
-
- All Implemented Interfaces:
SpmFormatFactory
public class DefaultSpmFactory extends java.lang.Object implements SpmFormatFactory
ASpmFormat
that returns aGtdSpmFormat
if the hint isGTD
, anSimpleSpmFormat
with the hint as status else.- Author:
- alexxismachine (Ulrich David)
-
-
Constructor Summary
Constructors Constructor Description DefaultSpmFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpmFormat
construct(java.lang.String hint)
Construct an SpmFormat based on the given hint.MUST NOT returnnull
.
-
-
-
Method Detail
-
construct
public SpmFormat construct(java.lang.String hint)
Description copied from interface:SpmFormatFactory
Construct an SpmFormat based on the given hint.MUST NOT returnnull
.- Specified by:
construct
in interfaceSpmFormatFactory
- Parameters:
hint
- the hint, which SpmFormat should be choosen.- Returns:
- the
SpmFormat
instance.
-
-