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.plugin.doap.options;
25  
26  /**
27   * Extension DOAP vocabulary.
28   * 
29   * @version $Revision$ $Date$
30   */
31  @SuppressWarnings( "all" )
32  public class ExtOptions
33      implements java.io.Serializable
34  {
35  
36        //--------------------------/
37       //- Class/Member Variables -/
38      //--------------------------/
39  
40      /**
41       * The extension xmlns prefix.
42       */
43      private String xmlnsPrefix;
44  
45      /**
46       * The URI of the extension xmlns namespace.
47       */
48      private String xmlnsNamespaceURI;
49  
50      /**
51       * Field extensions.
52       */
53      private java.util.Map<Object, String> extensions;
54  
55  
56        //-----------/
57       //- Methods -/
58      //-----------/
59  
60      /**
61       * Method addExtension.
62       * 
63       * @param key a key object.
64       * @param value a value object.
65       */
66      public void addExtension( Object key, String value )
67      {
68          getExtensions().put( key, value );
69      } //-- void addExtension( Object, String )
70  
71      /**
72       * Method equals.
73       * 
74       * @param other a other object.
75       * @return boolean
76       */
77      public boolean equals( Object other )
78      {
79          if ( this == other )
80          {
81              return true;
82          }
83  
84          if ( !( other instanceof ExtOptions ) )
85          {
86              return false;
87          }
88  
89          ExtOptions that = (ExtOptions) other;
90          boolean result = true;
91  
92          result = result && ( getExtensions() == null ? that.getExtensions() == null : getExtensions().equals( that.getExtensions() ) );
93  
94          return result;
95      } //-- boolean equals( Object )
96  
97      /**
98       * Method getExtensions.
99       * 
100      * @return Map
101      */
102     public java.util.Map<Object, String> getExtensions()
103     {
104         if ( this.extensions == null )
105         {
106             this.extensions = new java.util.HashMap<Object, String>();
107         }
108 
109         return this.extensions;
110     } //-- java.util.Map<Object, String> getExtensions()
111 
112     /**
113      * Get the URI of the extension xmlns namespace.
114      * 
115      * @return String
116      */
117     public String getXmlnsNamespaceURI()
118     {
119         return this.xmlnsNamespaceURI;
120     } //-- String getXmlnsNamespaceURI()
121 
122     /**
123      * Get the extension xmlns prefix.
124      * 
125      * @return String
126      */
127     public String getXmlnsPrefix()
128     {
129         return this.xmlnsPrefix;
130     } //-- String getXmlnsPrefix()
131 
132     /**
133      * Method hashCode.
134      * 
135      * @return int
136      */
137     public int hashCode()
138     {
139         int result = 17;
140 
141         result = 37 * result + ( extensions != null ? extensions.hashCode() : 0 );
142 
143         return result;
144     } //-- int hashCode()
145 
146     /**
147      * Set extra vocabulary as key/value.
148      * 
149      * @param extensions a extensions object.
150      */
151     public void setExtensions( java.util.Map extensions )
152     {
153         this.extensions = extensions;
154     } //-- void setExtensions( java.util.Map )
155 
156     /**
157      * Set the URI of the extension xmlns namespace.
158      * 
159      * @param xmlnsNamespaceURI a xmlnsNamespaceURI object.
160      */
161     public void setXmlnsNamespaceURI( String xmlnsNamespaceURI )
162     {
163         this.xmlnsNamespaceURI = xmlnsNamespaceURI;
164     } //-- void setXmlnsNamespaceURI( String )
165 
166     /**
167      * Set the extension xmlns prefix.
168      * 
169      * @param xmlnsPrefix a xmlnsPrefix object.
170      */
171     public void setXmlnsPrefix( String xmlnsPrefix )
172     {
173         this.xmlnsPrefix = xmlnsPrefix;
174     } //-- void setXmlnsPrefix( String )
175 
176     /**
177      * Method toString.
178      * 
179      * @return String
180      */
181     public java.lang.String toString()
182     {
183         StringBuilder buf = new StringBuilder( 128 );
184 
185         buf.append( "extensions = '" );
186         buf.append( getExtensions() );
187         buf.append( "'" );
188 
189         return buf.toString();
190     } //-- java.lang.String toString()
191 
192 }