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 import java.util.Locale;
020
021 import org.jdom.Element;
022
023 /**
024 *
025 * @author <a href="mailto:burton@apache.org">Kevin A. Burton (burtonator)</a>
026 * @version $Id: FeedParserState.java 373614 2006-01-30 22:31:21Z mvdb $
027 */
028 public class FeedParserState {
029
030 public Element current = null;
031
032 /**
033 * xml:lang
034 * @deprecated
035 */
036 public String lang;
037
038 /**
039 * xml:base
040 * @deprecated
041 */
042 public String base;
043
044 public FeedParserState() { }
045
046 MetaFeedParserListener metaFeedParserlistener = null;
047
048 public FeedParserState( Element current ) {
049 this.current = current;
050 }
051
052 public FeedParserState( FeedParserListener listener ) {
053
054 if ( listener instanceof MetaFeedParserListener )
055 metaFeedParserlistener = (MetaFeedParserListener)listener;
056
057 }
058
059 /**
060 * Based on the current locale event model we return the current language.
061 * By default EN is returned.
062 *
063 *
064 */
065 public Locale getCurrentLocale() {
066 return null;
067 }
068
069 }
070