2016/02/07 - Apache Onami has been retired.

For more information, please explore the Attic.

Apache Onami Converters - System

The System module contains generic system java converters implementations.

Users that want to use the System module, have to add the following dependency in the pom.xml:

<dependency>
  <groupId>org.apache.onami.converters</groupId>
  <artifactId>org.apache.onami.converters.system</artifactId>
  <version>1.0.1-SNAPSHOT</version>
  <scope>compile</scope>
</dependency>

The Converters

BitSetConverter

Is the converter that converts a java.lang.String representation to a java.util.BitSet.

String representation is typically a CSV String mixed o chars and numbers, i.e:

a, 123, ~

in the example, a is taken in consideration as a char, 123 as an int, ~ as a char.

Note non numerical fragments with length great than 1 are not allowed!!!

CharsetConverter

Is the converter that converts a java.lang.String representation to a java.nio.charset.Charset.

FileConverter

Is the converter that converts a java.lang.String representation to a java.io.File

PatternConverter

Is the converter that converts a java.lang.String representation to a java.util.regex.Pattern

PropertiesConverter

Is the converter that converts a java.lang.String representation to a java.util.Properties

Note Input string has to match with the pattern key1=value1\nkey2=value2... encoded using the ISO-8859-1 charset, according to java.util.Properties recommendation.

UUIDConverter

Is the converter that converts a java.lang.String representation to a java.util.UUID.