// Copyright 2012 Georg-August-Universität Göttingen, Germany // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package de.ugoe.cs.autoquest.plugin.guitar; import de.ugoe.cs.autoquest.IReplayDecorator; import de.ugoe.cs.util.StringTools; /** *

* {@link IReplayDecorator} for replays generated for the GUITAR suite. *

* * @author Steffen Herbold * @version 1.0 */ public class EFGReplayDecorator implements IReplayDecorator { /** *

* Id for object serialization. *

*/ private static final long serialVersionUID = 1L; /** *

* The instance of the {@link EFGReplayDecorator} (implemented as * singleton). *

*/ transient private static EFGReplayDecorator theInstance; /** *

* Constructor. Private to guarantee that only one instance of the replay * generator exists. *

*/ private EFGReplayDecorator() { }; /** *

* Returns the instance of the MFCReplayDecorator. *

* * @return instance of the MFCReplayDecorator. */ public static EFGReplayDecorator getInstance() { if (theInstance == null) { theInstance = new EFGReplayDecorator(); } return theInstance; } /* * (non-Javadoc) * * @see de.ugoe.cs.autoquest.IReplayDecorator#getHeader() */ @Override public String getHeader() { return "" + StringTools.ENDLINE + "" + StringTools.ENDLINE; } /* * (non-Javadoc) * * @see de.ugoe.cs.autoquest.IReplayDecorator#getFooter() */ @Override public String getFooter() { return ""; } /* * (non-Javadoc) * * @see de.ugoe.cs.autoquest.IReplayDecorator#getSessionHeader(int) */ @Override public String getSessionHeader(int sessionId) { return ""; } /* * (non-Javadoc) * * @see de.ugoe.cs.autoquest.IReplayDecorator#getSessionFooter(int) */ @Override public String getSessionFooter(int sessionId) { return ""; } }