001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 1.7, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.archiva.model; 007 008/** 009 * 010 * This object is only used for the XML backup / restore 011 * features of Archiva. 012 * This object is not serialized to the Database. 013 * 014 * 015 * @version $Revision$ $Date$ 016 */ 017@SuppressWarnings( "all" ) 018public class ArchivaAll 019 implements java.io.Serializable 020{ 021 022 //--------------------------/ 023 //- Class/Member Variables -/ 024 //--------------------------/ 025 026 /** 027 * Field artifacts. 028 */ 029 private java.util.List<ArchivaArtifactModel> artifacts; 030 031 /** 032 * Field repositoryMetadata. 033 */ 034 private java.util.List<ArchivaRepositoryMetadata> repositoryMetadata; 035 036 /** 037 * Field modelEncoding. 038 */ 039 private String modelEncoding = "UTF-8"; 040 041 042 //-----------/ 043 //- Methods -/ 044 //-----------/ 045 046 /** 047 * Method addArtifact. 048 * 049 * @param archivaArtifactModel 050 */ 051 public void addArtifact( ArchivaArtifactModel archivaArtifactModel ) 052 { 053 getArtifacts().add( archivaArtifactModel ); 054 } //-- void addArtifact( ArchivaArtifactModel ) 055 056 /** 057 * Method addRepositoryMetadata. 058 * 059 * @param archivaRepositoryMetadata 060 */ 061 public void addRepositoryMetadata( ArchivaRepositoryMetadata archivaRepositoryMetadata ) 062 { 063 getRepositoryMetadata().add( archivaRepositoryMetadata ); 064 } //-- void addRepositoryMetadata( ArchivaRepositoryMetadata ) 065 066 /** 067 * Method getArtifacts. 068 * 069 * @return List 070 */ 071 public java.util.List<ArchivaArtifactModel> getArtifacts() 072 { 073 if ( this.artifacts == null ) 074 { 075 this.artifacts = new java.util.ArrayList<ArchivaArtifactModel>(); 076 } 077 078 return this.artifacts; 079 } //-- java.util.List<ArchivaArtifactModel> getArtifacts() 080 081 /** 082 * Get the modelEncoding field. 083 * 084 * @return String 085 */ 086 public String getModelEncoding() 087 { 088 return this.modelEncoding; 089 } //-- String getModelEncoding() 090 091 /** 092 * Method getRepositoryMetadata. 093 * 094 * @return List 095 */ 096 public java.util.List<ArchivaRepositoryMetadata> getRepositoryMetadata() 097 { 098 if ( this.repositoryMetadata == null ) 099 { 100 this.repositoryMetadata = new java.util.ArrayList<ArchivaRepositoryMetadata>(); 101 } 102 103 return this.repositoryMetadata; 104 } //-- java.util.List<ArchivaRepositoryMetadata> getRepositoryMetadata() 105 106 /** 107 * Method removeArtifact. 108 * 109 * @param archivaArtifactModel 110 */ 111 public void removeArtifact( ArchivaArtifactModel archivaArtifactModel ) 112 { 113 getArtifacts().remove( archivaArtifactModel ); 114 } //-- void removeArtifact( ArchivaArtifactModel ) 115 116 /** 117 * Method removeRepositoryMetadata. 118 * 119 * @param archivaRepositoryMetadata 120 */ 121 public void removeRepositoryMetadata( ArchivaRepositoryMetadata archivaRepositoryMetadata ) 122 { 123 getRepositoryMetadata().remove( archivaRepositoryMetadata ); 124 } //-- void removeRepositoryMetadata( ArchivaRepositoryMetadata ) 125 126 /** 127 * Set the artifacts field. 128 * 129 * @param artifacts 130 */ 131 public void setArtifacts( java.util.List<ArchivaArtifactModel> artifacts ) 132 { 133 this.artifacts = artifacts; 134 } //-- void setArtifacts( java.util.List ) 135 136 /** 137 * Set the modelEncoding field. 138 * 139 * @param modelEncoding 140 */ 141 public void setModelEncoding( String modelEncoding ) 142 { 143 this.modelEncoding = modelEncoding; 144 } //-- void setModelEncoding( String ) 145 146 /** 147 * Set the repositoryMetadata field. 148 * 149 * @param repositoryMetadata 150 */ 151 public void setRepositoryMetadata( java.util.List<ArchivaRepositoryMetadata> repositoryMetadata ) 152 { 153 this.repositoryMetadata = repositoryMetadata; 154 } //-- void setRepositoryMetadata( java.util.List ) 155 156 157 private static final long serialVersionUID = 3259707008803111764L; 158 159}