001 /* 002 * Copyright 1999,2004 The Apache Software Foundation. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 package org.apache.commons.feedparser; 018 019 020 /** 021 * <p>A generic interface 022 * 023 * @author <a href="mailto:burton@apache.org">Kevin A. Burton (burtonator)</a> 024 * @version $Id: FOAFFeedParserListener.java 373614 2006-01-30 22:31:21Z mvdb $ 025 */ 026 public interface FOAFFeedParserListener extends FeedLifecycleListener { 027 028 /** 029 * @see FeedParserListener#onItem 030 * 031 */ 032 public void onPerson( FeedParserState state, 033 String name ) throws FeedParserException; 034 035 public void onPersonEnd() throws FeedParserException; 036 037 public void onKnows( FeedParserState state ) throws FeedParserException; 038 039 public void onKnowsEnd() throws FeedParserException; 040 041 /** 042 * Called when an image is found. 043 * 044 * 045 */ 046 public void onImage( FeedParserState state, 047 String resource ) throws FeedParserException; 048 049 public void onImageEnd() throws FeedParserException; 050 051 public void onWeblog( FeedParserState state, 052 String resource ) throws FeedParserException; 053 054 public void onWeblogEnd() throws FeedParserException; 055 056 public void onHomepage( FeedParserState state, 057 String resource ) throws FeedParserException; 058 059 public void onHomepageEnd() throws FeedParserException; 060 061 /** 062 * When rdfs:seeAlso is called for an additional FOAF file. 063 * 064 * 065 */ 066 public void onSeeAlso( FeedParserState state, 067 String resource ) throws FeedParserException; 068 069 public void onSeeAlsoEnd() throws FeedParserException; 070 071 } 072