woensdag 27 januari 2010

SennMagic 3.1 = 3.0 fixed + extras!

I fixed the compile-issue with SennMagic 3.0 and as an apology, I added some new methods that I was saving for a future release.

GeneralUtils.canBeBoolean(String):boolean
GeneralUtils.canBeByte(String):boolean
GeneralUtils.canBeDouble(String):boolean
GeneralUtils.canBeFloat(String):boolean
GeneralUtils.canBeInteger(String):boolean
GeneralUtils.canBeLong(String):boolean
GeneralUtils.canBeShort(String):boolean


These methods check if a String vaue can be converted to the respective type.
It saves you the trouble of having to catch NumberFormatException everytime you want to convert a String to something.

I also added

StringUtils.isValid(String):boolean

Which is a pretty simple and straightforward check. I use it all the time to check my string values.
It checks if a String value is not null and the length is > 0.

So, SennMagic 3.1 is available for download!

Only one place: http://sourceforge.net/projects/sennmagic

maandag 25 januari 2010

Bug in SennMagic 3.0

Hi,

I just noticed that SennMagic 3.0 is compiled to 1.6.
I have no idea why my Ant build decided to build it in 6 all of a sudden...

I will fix this tonight when I get back from work, so expect a small update soon!

My apologies,

Bart

vrijdag 22 januari 2010

SennMagic 3.0!

Hi everybody,

I know it has been a while since I last updated SennMagic, but that's because I decided to wait till I had enough new material.

So here it is, the new version, and yes it's another MAJOR release.

There's been some serious changes since 2.0 so I decided to bump it up to 3.0 instead of 2.1 or whatever.

So, what's new...
  1. I changed the classnames to reflect their purpose better:
    • LogMagic => SimpleLogger
    • FileMagic => FileUtils
    • TextMagic => StringUtils
    • UtilMagic => GeneralUtils
  2. I added DFCUtils, which contains some handy methods for DFC actions (more info below)
  3. I added ignoreCase support to StringUtils.getOccurrencesCount(...)
  4. I decided to split the jar, source and javadoc into 3 packages
    1. package: senn-magic-3.0.jar
    2. source: senn-magic-3.0-src.zip
    3. docs: senn-magic-3.0-javadoc.zip
  5. Last but no least, I refactored some methods and reformatted the code + javadoc


So what is DFCUtils...?

I've been busy doing alot of development on Documentum projects.
Documentum is an enterprise content management platform by EMC² (www.emc.com).

To access the Documentum content and metadata from Java, DFC is used.
DFC, or Documentum Foundation Classes, is an extensive API that allows you to do almost anything in Documentum.

DFCUtils is a helper class that contains methods to create sessions and execute DQL (Documentum Query Language).
So it saves me (and hopefully some other people too) some time.


So that's it, check out the new version at: http://sourceforge.net/projects/sennmagic

Cheers,
Bart