001: package org.apache.lucene.benchmark.byTask.feeds;
002:
003: /**
004: * Licensed to the Apache Software Foundation (ASF) under one or more
005: * contributor license agreements. See the NOTICE file distributed with
006: * this work for additional information regarding copyright ownership.
007: * The ASF licenses this file to You under the Apache License, Version 2.0
008: * (the "License"); you may not use this file except in compliance with
009: * the License. You may obtain a copy of the License at
010: *
011: * http://www.apache.org/licenses/LICENSE-2.0
012: *
013: * Unless required by applicable law or agreed to in writing, software
014: * distributed under the License is distributed on an "AS IS" BASIS,
015: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016: * See the License for the specific language governing permissions and
017: * limitations under the License.
018: */
019:
020: import java.util.Date;
021: import java.util.Properties;
022:
023: /**
024: * Output of parsing (e.g. HTML parsing) of an input document.
025: */
026:
027: public class DocData {
028:
029: private String name;
030: private String body;
031: private String title;
032: private Date date;
033: private Properties props;
034:
035: public DocData(String name, String body, String title,
036: Properties props, Date date) {
037: this .name = name;
038: this .body = body;
039: this .title = title;
040: this .date = date;
041: this .props = props;
042: }
043:
044: /**
045: * @return Returns the name.
046: */
047: public String getName() {
048: return name;
049: }
050:
051: /**
052: * @param name The name to set.
053: */
054: public void setName(String name) {
055: this .name = name;
056: }
057:
058: /**
059: * @return Returns the props.
060: */
061: public Properties getProps() {
062: return props;
063: }
064:
065: /**
066: * @param props The props to set.
067: */
068: public void setProps(Properties props) {
069: this .props = props;
070: }
071:
072: /**
073: * @return Returns the body.
074: */
075: public String getBody() {
076: return body;
077: }
078:
079: /**
080: * @param body The body to set.
081: */
082: public void setBody(String body) {
083: this .body = body;
084: }
085:
086: /**
087: * @return Returns the title.
088: */
089: public String getTitle() {
090: return title;
091: }
092:
093: /**
094: * @param title The title to set.
095: */
096: public void setTitle(String title) {
097: this .title = title;
098: }
099:
100: /**
101: * @return Returns the date.
102: */
103: public Date getDate() {
104: return date;
105: }
106:
107: /**
108: * @param date The date to set.
109: */
110: public void setDate(Date date) {
111: this.date = date;
112: }
113:
114: }
|