001package com.hfg.citation;
002
003
004import java.util.ArrayList;
005import java.util.Date;
006import java.util.List;
007
008//------------------------------------------------------------------------------
009/**
010 Patent data object.
011 <div>
012 @author J. Alex Taylor, hairyfatguy.com
013 </div>
014 */
015//------------------------------------------------------------------------------
016// com.hfg XML/HTML Coding Library
017//
018// This library is free software; you can redistribute it and/or
019// modify it under the terms of the GNU Lesser General Public
020// License as published by the Free Software Foundation; either
021// version 2.1 of the License, or (at your option) any later version.
022//
023// This library is distributed in the hope that it will be useful,
024// but WITHOUT ANY WARRANTY; without even the implied warranty of
025// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
026// Lesser General Public License for more details.
027//
028// You should have received a copy of the GNU Lesser General Public
029// License along with this library; if not, write to the Free Software
030// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
031//
032// J. Alex Taylor, President, Founder, CEO, COO, CFO, OOPS hairyfatguy.com
033// jataylor@hairyfatguy.com
034//------------------------------------------------------------------------------
035
036public class PatentData
037{
038   private String       mTitle;
039   private String       mPublicationNum;
040   private Date         mPublicationDate;
041   private List<Author> mInventors;
042   private List<String> mApplicants;
043   private Integer      mSeqIdNum;
044
045
046   //---------------------------------------------------------------------------
047   public PatentData setTitle(String inValue)
048   {
049      mTitle = inValue;
050      return this;
051   }
052
053   //---------------------------------------------------------------------------
054   public String getTitle()
055   {
056      return mTitle;
057   }
058
059
060
061   //---------------------------------------------------------------------------
062   public PatentData setPublicationNum(String inValue)
063   {
064      mPublicationNum = inValue;
065      return this;
066   }
067
068   //---------------------------------------------------------------------------
069   public String getPublicationNum()
070   {
071      return mPublicationNum;
072   }
073
074
075
076   //---------------------------------------------------------------------------
077   public PatentData setPublicationDate(Date inValue)
078   {
079      mPublicationDate = inValue;
080      return this;
081   }
082
083   //---------------------------------------------------------------------------
084   public Date getPublicationDate()
085   {
086      return mPublicationDate;
087   }
088
089
090   //---------------------------------------------------------------------------
091   public PatentData setInventors(List<Author> inValues)
092   {
093      mInventors = inValues;
094      return this;
095   }
096
097   //---------------------------------------------------------------------------
098   public PatentData addInventor(Author inValue)
099   {
100      if (null == mInventors)
101      {
102         mInventors = new ArrayList<>(5);
103      }
104
105      mInventors.add(inValue);
106      return this;
107   }
108
109   //---------------------------------------------------------------------------
110   public List<Author> getInventors()
111   {
112      return mInventors;
113   }
114
115
116
117   //---------------------------------------------------------------------------
118   public PatentData addApplicant(String inValue)
119   {
120      if (null == mApplicants)
121      {
122         mApplicants = new ArrayList<>(5);
123      }
124
125      mApplicants.add(inValue);
126      return this;
127   }
128
129   //---------------------------------------------------------------------------
130   public PatentData setApplicants(List<String> inValue)
131   {
132      mApplicants = inValue;
133      return this;
134   }
135
136   //---------------------------------------------------------------------------
137   public List<String> getApplicants()
138   {
139      return mApplicants;
140   }
141
142
143
144   //---------------------------------------------------------------------------
145   public PatentData setSeqIdNum(Integer inValue)
146   {
147      mSeqIdNum = inValue;
148      return this;
149   }
150
151   //---------------------------------------------------------------------------
152   public Integer getSeqIdNum()
153   {
154      return mSeqIdNum;
155   }
156
157}