title: Removing SWIG Generated Getter/Setters from Structure Java Class
body: <p>I'm using a javacode typemap to add some additional functions in place of the SWIG generated ones.  I would like to remove the SWIG generated default getter and setter for the <code>unsigned char mac[6];</code> (<code>public short[] getMac()</code> and <code>public void setMac(short[] value)</code>) of the <code>details_t_</code> structure.  I've tried to do using a <code>%ignore details_t_::setMac;</code> directive, but it doesn't work. Any suggestions as an appropriate technique to do this?</p>
  
  <pre><code>%module Test
  %typemap(javacode) struct details_t_ %{
      public String getMacAddress() {
          return Test.getMacAddressAsString(this); //another API in Test.java
      }
  
  %};
  
  %rename (Details) details_t_;
  typedef struct details_t_ {
      uint16_t                      code;
      char                          *name;
      sockaddr                      *saddr;
      uint32_t                      saddr_len;
      uint8_t                       flag;
      ios_boolean                   is_child;
      unsigned char                 mac[6];
  } details_t;
  </code></pre>