001package org.apache.commons.digester3.edsl.atom; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022import java.net.URL; 023import java.util.ArrayList; 024import java.util.Date; 025import java.util.List; 026 027public final class Feed 028{ 029 030 private String title; 031 032 private URL link; 033 034 private Date updated; 035 036 private final List<String> authors = new ArrayList<String>(); 037 038 private String id; 039 040 private final List<Entry> entries = new ArrayList<Entry>(); 041 042 public String getTitle() 043 { 044 return title; 045 } 046 047 public void setTitle( String title ) 048 { 049 this.title = title; 050 } 051 052 public URL getLink() 053 { 054 return link; 055 } 056 057 public void setLink( URL link ) 058 { 059 this.link = link; 060 } 061 062 public Date getUpdated() 063 { 064 return updated; 065 } 066 067 public void setUpdated( Date updated ) 068 { 069 this.updated = updated; 070 } 071 072 public String getId() 073 { 074 return id; 075 } 076 077 public void setId( String id ) 078 { 079 this.id = id; 080 } 081 082 public List<String> getAuthors() 083 { 084 return authors; 085 } 086 087 public void addAuthor( String author ) 088 { 089 authors.add( author ); 090 } 091 092 public List<Entry> getEntries() 093 { 094 return entries; 095 } 096 097 public void addEntry( Entry entry ) 098 { 099 entries.add( entry ); 100 } 101 102 @Override 103 public String toString() 104 { 105 return "Feed [title=" + title + ", link=" + link + ", updated=" + updated + ", authors=" + authors + ", id=" 106 + id + ", entries=" + entries + "]"; 107 } 108 109}