View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 1.8.1,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.plugin.doap.options;
7   
8   /**
9    * Extension DOAP vocabulary.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class ExtOptions
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * The extension xmlns prefix.
24       */
25      private String xmlnsPrefix;
26  
27      /**
28       * The URI of the extension xmlns namespace.
29       */
30      private String xmlnsNamespaceURI;
31  
32      /**
33       * Field extensions.
34       */
35      private java.util.Map<Object, String> extensions;
36  
37  
38        //-----------/
39       //- Methods -/
40      //-----------/
41  
42      /**
43       * Method addExtension.
44       * 
45       * @param key
46       * @param value
47       */
48      public void addExtension( Object key, String value )
49      {
50          getExtensions().put( key, value );
51      } //-- void addExtension( Object, String )
52  
53      /**
54       * Method equals.
55       * 
56       * @param other
57       * @return boolean
58       */
59      public boolean equals( Object other )
60      {
61          if ( this == other )
62          {
63              return true;
64          }
65  
66          if ( !( other instanceof ExtOptions ) )
67          {
68              return false;
69          }
70  
71          ExtOptions that = (ExtOptions) other;
72          boolean result = true;
73  
74          result = result && ( getExtensions() == null ? that.getExtensions() == null : getExtensions().equals( that.getExtensions() ) );
75  
76          return result;
77      } //-- boolean equals( Object )
78  
79      /**
80       * Method getExtensions.
81       * 
82       * @return Map
83       */
84      public java.util.Map<Object, String> getExtensions()
85      {
86          if ( this.extensions == null )
87          {
88              this.extensions = new java.util.HashMap<Object, String>();
89          }
90  
91          return this.extensions;
92      } //-- java.util.Map<Object, String> getExtensions()
93  
94      /**
95       * Get the URI of the extension xmlns namespace.
96       * 
97       * @return String
98       */
99      public String getXmlnsNamespaceURI()
100     {
101         return this.xmlnsNamespaceURI;
102     } //-- String getXmlnsNamespaceURI()
103 
104     /**
105      * Get the extension xmlns prefix.
106      * 
107      * @return String
108      */
109     public String getXmlnsPrefix()
110     {
111         return this.xmlnsPrefix;
112     } //-- String getXmlnsPrefix()
113 
114     /**
115      * Method hashCode.
116      * 
117      * @return int
118      */
119     public int hashCode()
120     {
121         int result = 17;
122 
123         result = 37 * result + ( extensions != null ? extensions.hashCode() : 0 );
124 
125         return result;
126     } //-- int hashCode()
127 
128     /**
129      * Set extra vocabulary as key/value.
130      * 
131      * @param extensions
132      */
133     public void setExtensions( java.util.Map extensions )
134     {
135         this.extensions = extensions;
136     } //-- void setExtensions( java.util.Map )
137 
138     /**
139      * Set the URI of the extension xmlns namespace.
140      * 
141      * @param xmlnsNamespaceURI
142      */
143     public void setXmlnsNamespaceURI( String xmlnsNamespaceURI )
144     {
145         this.xmlnsNamespaceURI = xmlnsNamespaceURI;
146     } //-- void setXmlnsNamespaceURI( String )
147 
148     /**
149      * Set the extension xmlns prefix.
150      * 
151      * @param xmlnsPrefix
152      */
153     public void setXmlnsPrefix( String xmlnsPrefix )
154     {
155         this.xmlnsPrefix = xmlnsPrefix;
156     } //-- void setXmlnsPrefix( String )
157 
158     /**
159      * Method toString.
160      * 
161      * @return String
162      */
163     public java.lang.String toString()
164     {
165         StringBuilder buf = new StringBuilder( 128 );
166 
167         buf.append( "extensions = '" );
168         buf.append( getExtensions() );
169         buf.append( "'" );
170 
171         return buf.toString();
172     } //-- java.lang.String toString()
173 
174 }