001package headfirst.composite.menuiterator;
002
003import java.util.Iterator;
004
005public abstract class MenuComponent {
006
007        public void add(MenuComponent menuComponent) {
008                throw new UnsupportedOperationException();
009        }
010        public void remove(MenuComponent menuComponent) {
011                throw new UnsupportedOperationException();
012        }
013        public MenuComponent getChild(int i) {
014                throw new UnsupportedOperationException();
015        }
016
017        public String getName() {
018                throw new UnsupportedOperationException();
019        }
020        public String getDescription() {
021                throw new UnsupportedOperationException();
022        }
023        public double getPrice() {
024                throw new UnsupportedOperationException();
025        }
026        public boolean isVegetarian() {
027                throw new UnsupportedOperationException();
028        }
029
030        @SuppressWarnings("rawtypes")
031        public abstract Iterator createIterator();
032
033        public void print() {
034                throw new UnsupportedOperationException();
035        }
036}