View Javadoc

1   /*
2    * Copyright 1999,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (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.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,
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  package org.apache.commons.feedparser;
18  
19  
20  /**
21   * <p>A generic interface 
22   * 
23   * @author <a href="mailto:burton@apache.org">Kevin A. Burton (burtonator)</a>
24   * @version $Id: FOAFFeedParserListener.java 373614 2006-01-30 22:31:21Z mvdb $
25   */
26  public interface FOAFFeedParserListener extends FeedLifecycleListener {
27  
28      /**
29       * @see FeedParserListener#onItem
30       * 
31       */
32      public void onPerson( FeedParserState state,
33                            String name ) throws FeedParserException;
34  
35      public void onPersonEnd() throws FeedParserException;
36  
37      public void onKnows( FeedParserState state ) throws FeedParserException;
38  
39      public void onKnowsEnd() throws FeedParserException;
40  
41      /**
42       * Called when an image is found.
43       *
44       * 
45       */
46      public void onImage( FeedParserState state,
47                           String resource ) throws FeedParserException;
48  
49      public void onImageEnd() throws FeedParserException;
50  
51      public void onWeblog( FeedParserState state,
52                            String resource ) throws FeedParserException;
53  
54      public void onWeblogEnd() throws FeedParserException;
55  
56      public void onHomepage( FeedParserState state,
57                              String resource ) throws FeedParserException;
58  
59      public void onHomepageEnd() throws FeedParserException;
60  
61      /**
62       * When rdfs:seeAlso is called for an additional FOAF file.
63       *
64       * 
65       */
66      public void onSeeAlso( FeedParserState state,
67                             String resource ) throws FeedParserException;
68  
69      public void onSeeAlsoEnd() throws FeedParserException;
70  
71  }
72