WYMIWYG Commons Core

A set of utility classes and dependencies

License

License

GroupId

GroupId

org.wymiwyg
ArtifactId

ArtifactId

wymiwyg-commons-core
Last Version

Last Version

0.8
Release Date

Release Date

Type

Type

bundle
Description

Description

WYMIWYG Commons Core
A set of utility classes and dependencies
Project URL

Project URL

https://github.com/retog/wymiwyg-commons-core/
Source Code Management

Source Code Management

https://github.com/retog/wymiwyg-commons-core/

Download wymiwyg-commons-core

Dependencies

compile (4)

Group / Artifact Type Version
commons-logging : commons-logging-api jar 1.1
javax.activation : activation jar 1.1.1
com.ibm.icu : icu4j jar 53.1
org.slf4j : slf4j-api jar 1.7.7

test (1)

Group / Artifact Type Version
junit : junit jar 4.4

Project Modules

There are no modules declared in this project.

WYMIWYG Commons Core

Some utility classes. For example:

ArgumentHandler

Allows to handle command line arguments by annotating an interface, e.g.

import org.wymiwyg.commons.util.arguments.CommandLine;

public interface MyAppArgs {
    
    @CommandLine (
        longName ="token",
        shortName = "T", 
        required = true,
        description = "The API-Token to access Service"
    )
    public String token();

    @CommandLine (
        longName ="supressExtensions",
        shortName = "S",
        required = false,
        defaultValue = "true",
        description = "Supress the file extensions"
    )
}

And getting an instance implementing that interface with:

import org.wymiwyg.commons.util.arguments.ArgumentHandler;

[...]

public static void main(String[] args) throws Exception {
    MyAppArgs arguments = ArgumentHandler.readArguments(MyAppArgs.class, args);
    [...]
}

Versions

Version
0.8
0.7.6
0.7.5