1 /* 2 * Copyright the original author or authors. 3 * 4 * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.mozilla.org/MPL/MPL-1.1.html 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 18 /** 19 * {@code BasicInterface} is the basic interface for each class in the As2lib 20 * Framework. 21 * 22 * <p>It is recommended to always implement this interface in the classes of your 23 * own project but it is not a necessity. You can use all functionalities of the 24 * As2lib Framework without implementing it. 25 * 26 * <p>It enables you to call the {@link #toString} method on instances that have 27 * been casted to interfaces. 28 * 29 * <p>The default implementation {@code BasicClass} offers an enhanced {@code toString} 30 * method implementation that returns a better string representation than the default 31 * {@code Object#toString} method of Flash. 32 * 33 * @author Simon Wacker 34 * @author Martin Heidegger 35 * @author Michael Hermann 36 * @see org.as2lib.core.BasicClass 37 */ 38 interface org.as2lib.core.BasicInterface { 39 40 /** 41 * Returns the string representation of this instance. 42 * 43 * @return the string representation of this instance 44 */ 45 public function toString():String; 46 47 }