View Javadoc

1   /* ==========================================================================
2    * Copyright 2003-2004 Mevenide Team
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5    * use this file except in compliance with the License. You may obtain a copy of
6    * the License at
7    * 
8    * http://www.apache.org/licenses/LICENSE-2.0
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, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations under
14   * the License.
15   * =========================================================================
16   */
17  package org.mevenide.grammar.impl;
18  
19  import java.util.Collection;
20  import java.util.Collections;
21  import org.mevenide.grammar.TagLib;
22  
23  /***
24   * Empty implementation of a taglib. A fallback impl.
25   * 
26   * @author Milos Kleint (ca206216@tiscali.cz)
27   */
28  public class EmptyTagLibImpl implements TagLib {
29  
30      private String name;
31  
32      /*** Creates a new instance of EmptyTagLibImpl */
33      public EmptyTagLibImpl(String tagLibName) {
34          name = tagLibName;
35      }
36  
37      public String getName() {
38          return name;
39      }
40  
41      public Collection getRootTags() {
42          return Collections.EMPTY_LIST;
43      }
44  
45      public Collection getSubTags(String tagName) {
46          return Collections.EMPTY_LIST;
47      }
48  
49      public Collection getTagAttrs(String tag) {
50          return Collections.EMPTY_LIST;
51      }
52  
53      public Collection getAttrCompletionTypes(String tag, String attribute) {
54          return Collections.EMPTY_LIST;
55      }
56  }