Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 1169

Re : How to define boolean attributes in my extension

$
0
0
There is no built-in automatic conversion from String to Boolean or boolean - although there are utility methods to help with that. 

I haven't tried this, so I am not 100% sure, but the most likely thing is that you should change the signature of setBaseType so that it takes a String, and then use the Boolean.parseBoolean(String) method to parse the string 'true' into the booloean value true.

  1.  public void setBaseType(String value) {
  2.         this.isBaseType = Boolean.parseBoolean(value);
  3.     }


Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

Viewing all articles
Browse latest Browse all 1169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>