View Javadoc
1   /*
2    Licensed to the Apache Software Foundation (ASF) under one
3    or more contributor license agreements.  See the NOTICE file
4    distributed with this work for additional information
5    regarding copyright ownership.  The ASF licenses this file
6    to you under the Apache License, Version 2.0 (the
7    "License"); you may not use this file except in compliance
8    with the License.  You may obtain a copy of the License at
9    
10       http://www.apache.org/licenses/LICENSE-2.0
11   
12   Unless required by applicable law or agreed to in writing,
13   software distributed under the License is distributed on an
14   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   KIND, either express or implied.  See the License for the
16   specific language governing permissions and limitations
17   under the License.
18   =================== DO NOT EDIT THIS FILE ====================
19   Generated by Modello 2.5.1,
20   any modifications will be overwritten.
21   ==============================================================
22   */
23  
24  package org.apache.maven.plugins.javadoc.options;
25  
26  /**
27   * Root class to contain all javadoc configuration options for
28   * inclusion in javadoc bundle archives.
29   * 
30   * @version $Revision$ $Date$
31   */
32  @SuppressWarnings( "all" )
33  public class JavadocOptions
34      implements java.io.Serializable
35  {
36  
37        //--------------------------/
38       //- Class/Member Variables -/
39      //--------------------------/
40  
41      /**
42       * Field groups.
43       */
44      private java.util.List<Group> groups;
45  
46      /**
47       * Field tags.
48       */
49      private java.util.List<Tag> tags;
50  
51      /**
52       * Field docletArtifacts.
53       */
54      private java.util.List<DocletArtifact> docletArtifacts;
55  
56      /**
57       * Field taglets.
58       */
59      private java.util.List<Taglet> taglets;
60  
61      /**
62       * Field offlineLinks.
63       */
64      private java.util.List<OfflineLink> offlineLinks;
65  
66      /**
67       * Field tagletArtifacts.
68       */
69      private java.util.List<TagletArtifact> tagletArtifacts;
70  
71      /**
72       * Field resourcesArtifacts.
73       */
74      private java.util.List<ResourcesArtifact> resourcesArtifacts;
75  
76      /**
77       * Field bootclasspathArtifacts.
78       */
79      private java.util.List<BootclasspathArtifact> bootclasspathArtifacts;
80  
81      /**
82       * Field links.
83       */
84      private java.util.List<String> links;
85  
86      /**
87       * Field excludePackageNames.
88       */
89      private java.util.List<String> excludePackageNames;
90  
91      /**
92       * Enables deep copying of the '&#42;&#42;/doc-files'
93       * directories and the specific 'resources' directory.
94       */
95      private boolean docfilesSubdirsUsed = false;
96  
97      /**
98       * List of exclusion patterns separated by ':' for deep copying
99       * of the '&#42;&#42;/doc-files' directories.
100      */
101     private String excludedDocfilesSubdirs;
102 
103     /**
104      * 
105      *             Path relative to project basedir where javadoc
106      * resources were located. 
107      *             This is mainly useful in multimodule builds
108      * where the reactor is still populated.
109      *           
110      */
111     private String javadocResourcesDirectory;
112 
113     /**
114      * Field modelEncoding.
115      */
116     private String modelEncoding = "UTF-8";
117 
118 
119       //-----------/
120      //- Methods -/
121     //-----------/
122 
123     /**
124      * Method addBootclasspathArtifact.
125      * 
126      * @param bootclasspathArtifact a bootclasspathArtifact object.
127      */
128     public void addBootclasspathArtifact( BootclasspathArtifact bootclasspathArtifact )
129     {
130         getBootclasspathArtifacts().add( bootclasspathArtifact );
131     } //-- void addBootclasspathArtifact( BootclasspathArtifact )
132 
133     /**
134      * Method addDocletArtifact.
135      * 
136      * @param docletArtifact a docletArtifact object.
137      */
138     public void addDocletArtifact( DocletArtifact docletArtifact )
139     {
140         getDocletArtifacts().add( docletArtifact );
141     } //-- void addDocletArtifact( DocletArtifact )
142 
143     /**
144      * Method addExcludePackageName.
145      * 
146      * @param string a string object.
147      */
148     public void addExcludePackageName( String string )
149     {
150         getExcludePackageNames().add( string );
151     } //-- void addExcludePackageName( String )
152 
153     /**
154      * Method addGroup.
155      * 
156      * @param group a group object.
157      */
158     public void addGroup( Group group )
159     {
160         getGroups().add( group );
161     } //-- void addGroup( Group )
162 
163     /**
164      * Method addLink.
165      * 
166      * @param string a string object.
167      */
168     public void addLink( String string )
169     {
170         getLinks().add( string );
171     } //-- void addLink( String )
172 
173     /**
174      * Method addOfflineLink.
175      * 
176      * @param offlineLink a offlineLink object.
177      */
178     public void addOfflineLink( OfflineLink offlineLink )
179     {
180         getOfflineLinks().add( offlineLink );
181     } //-- void addOfflineLink( OfflineLink )
182 
183     /**
184      * Method addResourcesArtifact.
185      * 
186      * @param resourcesArtifact a resourcesArtifact object.
187      */
188     public void addResourcesArtifact( ResourcesArtifact resourcesArtifact )
189     {
190         getResourcesArtifacts().add( resourcesArtifact );
191     } //-- void addResourcesArtifact( ResourcesArtifact )
192 
193     /**
194      * Method addTag.
195      * 
196      * @param tag a tag object.
197      */
198     public void addTag( Tag tag )
199     {
200         getTags().add( tag );
201     } //-- void addTag( Tag )
202 
203     /**
204      * Method addTaglet.
205      * 
206      * @param taglet a taglet object.
207      */
208     public void addTaglet( Taglet taglet )
209     {
210         getTaglets().add( taglet );
211     } //-- void addTaglet( Taglet )
212 
213     /**
214      * Method addTagletArtifact.
215      * 
216      * @param tagletArtifact a tagletArtifact object.
217      */
218     public void addTagletArtifact( TagletArtifact tagletArtifact )
219     {
220         getTagletArtifacts().add( tagletArtifact );
221     } //-- void addTagletArtifact( TagletArtifact )
222 
223     /**
224      * Method getBootclasspathArtifacts.
225      * 
226      * @return List
227      */
228     public java.util.List<BootclasspathArtifact> getBootclasspathArtifacts()
229     {
230         if ( this.bootclasspathArtifacts == null )
231         {
232             this.bootclasspathArtifacts = new java.util.ArrayList<BootclasspathArtifact>();
233         }
234 
235         return this.bootclasspathArtifacts;
236     } //-- java.util.List<BootclasspathArtifact> getBootclasspathArtifacts()
237 
238     /**
239      * Method getDocletArtifacts.
240      * 
241      * @return List
242      */
243     public java.util.List<DocletArtifact> getDocletArtifacts()
244     {
245         if ( this.docletArtifacts == null )
246         {
247             this.docletArtifacts = new java.util.ArrayList<DocletArtifact>();
248         }
249 
250         return this.docletArtifacts;
251     } //-- java.util.List<DocletArtifact> getDocletArtifacts()
252 
253     /**
254      * Method getExcludePackageNames.
255      * 
256      * @return List
257      */
258     public java.util.List<String> getExcludePackageNames()
259     {
260         if ( this.excludePackageNames == null )
261         {
262             this.excludePackageNames = new java.util.ArrayList<String>();
263         }
264 
265         return this.excludePackageNames;
266     } //-- java.util.List<String> getExcludePackageNames()
267 
268     /**
269      * Get list of exclusion patterns separated by ':' for deep
270      * copying of the '&#42;&#42;/doc-files' directories.
271      * 
272      * @return String
273      */
274     public String getExcludedDocfilesSubdirs()
275     {
276         return this.excludedDocfilesSubdirs;
277     } //-- String getExcludedDocfilesSubdirs()
278 
279     /**
280      * Method getGroups.
281      * 
282      * @return List
283      */
284     public java.util.List<Group> getGroups()
285     {
286         if ( this.groups == null )
287         {
288             this.groups = new java.util.ArrayList<Group>();
289         }
290 
291         return this.groups;
292     } //-- java.util.List<Group> getGroups()
293 
294     /**
295      * Get path relative to project basedir where javadoc resources
296      * were located. 
297      *             This is mainly useful in multimodule builds
298      * where the reactor is still populated.
299      * 
300      * @return String
301      */
302     public String getJavadocResourcesDirectory()
303     {
304         return this.javadocResourcesDirectory;
305     } //-- String getJavadocResourcesDirectory()
306 
307     /**
308      * Method getLinks.
309      * 
310      * @return List
311      */
312     public java.util.List<String> getLinks()
313     {
314         if ( this.links == null )
315         {
316             this.links = new java.util.ArrayList<String>();
317         }
318 
319         return this.links;
320     } //-- java.util.List<String> getLinks()
321 
322     /**
323      * Get the modelEncoding field.
324      * 
325      * @return String
326      */
327     public String getModelEncoding()
328     {
329         return this.modelEncoding;
330     } //-- String getModelEncoding()
331 
332     /**
333      * Method getOfflineLinks.
334      * 
335      * @return List
336      */
337     public java.util.List<OfflineLink> getOfflineLinks()
338     {
339         if ( this.offlineLinks == null )
340         {
341             this.offlineLinks = new java.util.ArrayList<OfflineLink>();
342         }
343 
344         return this.offlineLinks;
345     } //-- java.util.List<OfflineLink> getOfflineLinks()
346 
347     /**
348      * Method getResourcesArtifacts.
349      * 
350      * @return List
351      */
352     public java.util.List<ResourcesArtifact> getResourcesArtifacts()
353     {
354         if ( this.resourcesArtifacts == null )
355         {
356             this.resourcesArtifacts = new java.util.ArrayList<ResourcesArtifact>();
357         }
358 
359         return this.resourcesArtifacts;
360     } //-- java.util.List<ResourcesArtifact> getResourcesArtifacts()
361 
362     /**
363      * Method getTagletArtifacts.
364      * 
365      * @return List
366      */
367     public java.util.List<TagletArtifact> getTagletArtifacts()
368     {
369         if ( this.tagletArtifacts == null )
370         {
371             this.tagletArtifacts = new java.util.ArrayList<TagletArtifact>();
372         }
373 
374         return this.tagletArtifacts;
375     } //-- java.util.List<TagletArtifact> getTagletArtifacts()
376 
377     /**
378      * Method getTaglets.
379      * 
380      * @return List
381      */
382     public java.util.List<Taglet> getTaglets()
383     {
384         if ( this.taglets == null )
385         {
386             this.taglets = new java.util.ArrayList<Taglet>();
387         }
388 
389         return this.taglets;
390     } //-- java.util.List<Taglet> getTaglets()
391 
392     /**
393      * Method getTags.
394      * 
395      * @return List
396      */
397     public java.util.List<Tag> getTags()
398     {
399         if ( this.tags == null )
400         {
401             this.tags = new java.util.ArrayList<Tag>();
402         }
403 
404         return this.tags;
405     } //-- java.util.List<Tag> getTags()
406 
407     /**
408      * Get enables deep copying of the '&#42;&#42;/doc-files'
409      * directories and the specific 'resources' directory.
410      * 
411      * @return boolean
412      */
413     public boolean isDocfilesSubdirsUsed()
414     {
415         return this.docfilesSubdirsUsed;
416     } //-- boolean isDocfilesSubdirsUsed()
417 
418     /**
419      * Method removeBootclasspathArtifact.
420      * 
421      * @param bootclasspathArtifact a bootclasspathArtifact object.
422      */
423     public void removeBootclasspathArtifact( BootclasspathArtifact bootclasspathArtifact )
424     {
425         getBootclasspathArtifacts().remove( bootclasspathArtifact );
426     } //-- void removeBootclasspathArtifact( BootclasspathArtifact )
427 
428     /**
429      * Method removeDocletArtifact.
430      * 
431      * @param docletArtifact a docletArtifact object.
432      */
433     public void removeDocletArtifact( DocletArtifact docletArtifact )
434     {
435         getDocletArtifacts().remove( docletArtifact );
436     } //-- void removeDocletArtifact( DocletArtifact )
437 
438     /**
439      * Method removeExcludePackageName.
440      * 
441      * @param string a string object.
442      */
443     public void removeExcludePackageName( String string )
444     {
445         getExcludePackageNames().remove( string );
446     } //-- void removeExcludePackageName( String )
447 
448     /**
449      * Method removeGroup.
450      * 
451      * @param group a group object.
452      */
453     public void removeGroup( Group group )
454     {
455         getGroups().remove( group );
456     } //-- void removeGroup( Group )
457 
458     /**
459      * Method removeLink.
460      * 
461      * @param string a string object.
462      */
463     public void removeLink( String string )
464     {
465         getLinks().remove( string );
466     } //-- void removeLink( String )
467 
468     /**
469      * Method removeOfflineLink.
470      * 
471      * @param offlineLink a offlineLink object.
472      */
473     public void removeOfflineLink( OfflineLink offlineLink )
474     {
475         getOfflineLinks().remove( offlineLink );
476     } //-- void removeOfflineLink( OfflineLink )
477 
478     /**
479      * Method removeResourcesArtifact.
480      * 
481      * @param resourcesArtifact a resourcesArtifact object.
482      */
483     public void removeResourcesArtifact( ResourcesArtifact resourcesArtifact )
484     {
485         getResourcesArtifacts().remove( resourcesArtifact );
486     } //-- void removeResourcesArtifact( ResourcesArtifact )
487 
488     /**
489      * Method removeTag.
490      * 
491      * @param tag a tag object.
492      */
493     public void removeTag( Tag tag )
494     {
495         getTags().remove( tag );
496     } //-- void removeTag( Tag )
497 
498     /**
499      * Method removeTaglet.
500      * 
501      * @param taglet a taglet object.
502      */
503     public void removeTaglet( Taglet taglet )
504     {
505         getTaglets().remove( taglet );
506     } //-- void removeTaglet( Taglet )
507 
508     /**
509      * Method removeTagletArtifact.
510      * 
511      * @param tagletArtifact a tagletArtifact object.
512      */
513     public void removeTagletArtifact( TagletArtifact tagletArtifact )
514     {
515         getTagletArtifacts().remove( tagletArtifact );
516     } //-- void removeTagletArtifact( TagletArtifact )
517 
518     /**
519      * Set a list of BootclasspathArtifact parameters.
520      * 
521      * @param bootclasspathArtifacts a bootclasspathArtifacts object
522      */
523     public void setBootclasspathArtifacts( java.util.List<BootclasspathArtifact> bootclasspathArtifacts )
524     {
525         this.bootclasspathArtifacts = bootclasspathArtifacts;
526     } //-- void setBootclasspathArtifacts( java.util.List )
527 
528     /**
529      * Set enables deep copying of the '&#42;&#42;/doc-files'
530      * directories and the specific 'resources' directory.
531      * 
532      * @param docfilesSubdirsUsed a docfilesSubdirsUsed object.
533      */
534     public void setDocfilesSubdirsUsed( boolean docfilesSubdirsUsed )
535     {
536         this.docfilesSubdirsUsed = docfilesSubdirsUsed;
537     } //-- void setDocfilesSubdirsUsed( boolean )
538 
539     /**
540      * Set a list of DocletArtifact parameters.
541      * 
542      * @param docletArtifacts a docletArtifacts object.
543      */
544     public void setDocletArtifacts( java.util.List<DocletArtifact> docletArtifacts )
545     {
546         this.docletArtifacts = docletArtifacts;
547     } //-- void setDocletArtifacts( java.util.List )
548 
549     /**
550      * Set list of subpackage patterns to exclude from javadoc
551      * generation.
552      * 
553      * @param excludePackageNames a excludePackageNames object.
554      */
555     public void setExcludePackageNames( java.util.List<String> excludePackageNames )
556     {
557         this.excludePackageNames = excludePackageNames;
558     } //-- void setExcludePackageNames( java.util.List )
559 
560     /**
561      * Set list of exclusion patterns separated by ':' for deep
562      * copying of the '&#42;&#42;/doc-files' directories.
563      * 
564      * @param excludedDocfilesSubdirs a excludedDocfilesSubdirs
565      * object.
566      */
567     public void setExcludedDocfilesSubdirs( String excludedDocfilesSubdirs )
568     {
569         this.excludedDocfilesSubdirs = excludedDocfilesSubdirs;
570     } //-- void setExcludedDocfilesSubdirs( String )
571 
572     /**
573      * Set a list of Group parameters.
574      * 
575      * @param groups a groups object.
576      */
577     public void setGroups( java.util.List<Group> groups )
578     {
579         this.groups = groups;
580     } //-- void setGroups( java.util.List )
581 
582     /**
583      * Set path relative to project basedir where javadoc resources
584      * were located. 
585      *             This is mainly useful in multimodule builds
586      * where the reactor is still populated.
587      * 
588      * @param javadocResourcesDirectory a javadocResourcesDirectory
589      * object.
590      */
591     public void setJavadocResourcesDirectory( String javadocResourcesDirectory )
592     {
593         this.javadocResourcesDirectory = javadocResourcesDirectory;
594     } //-- void setJavadocResourcesDirectory( String )
595 
596     /**
597      * Set list of URLs to javadocs for external classes.
598      * 
599      * @param links a links object.
600      */
601     public void setLinks( java.util.List<String> links )
602     {
603         this.links = links;
604     } //-- void setLinks( java.util.List )
605 
606     /**
607      * Set the modelEncoding field.
608      * 
609      * @param modelEncoding a modelEncoding object.
610      */
611     public void setModelEncoding( String modelEncoding )
612     {
613         this.modelEncoding = modelEncoding;
614     } //-- void setModelEncoding( String )
615 
616     /**
617      * Set a list of OfflineLink parameters.
618      * 
619      * @param offlineLinks a offlineLinks object.
620      */
621     public void setOfflineLinks( java.util.List<OfflineLink> offlineLinks )
622     {
623         this.offlineLinks = offlineLinks;
624     } //-- void setOfflineLinks( java.util.List )
625 
626     /**
627      * Set a list of ResourcesArtifact parameters.
628      * 
629      * @param resourcesArtifacts a resourcesArtifacts object.
630      */
631     public void setResourcesArtifacts( java.util.List<ResourcesArtifact> resourcesArtifacts )
632     {
633         this.resourcesArtifacts = resourcesArtifacts;
634     } //-- void setResourcesArtifacts( java.util.List )
635 
636     /**
637      * Set a list of TagletArtifact parameters.
638      * 
639      * @param tagletArtifacts a tagletArtifacts object.
640      */
641     public void setTagletArtifacts( java.util.List<TagletArtifact> tagletArtifacts )
642     {
643         this.tagletArtifacts = tagletArtifacts;
644     } //-- void setTagletArtifacts( java.util.List )
645 
646     /**
647      * Set a list of Taglet parameters.
648      * 
649      * @param taglets a taglets object.
650      */
651     public void setTaglets( java.util.List<Taglet> taglets )
652     {
653         this.taglets = taglets;
654     } //-- void setTaglets( java.util.List )
655 
656     /**
657      * Set a list of Tag parameters.
658      * 
659      * @param tags a tags object.
660      */
661     public void setTags( java.util.List<Tag> tags )
662     {
663         this.tags = tags;
664     } //-- void setTags( java.util.List )
665 
666 }