-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ + ] Put readme content [ * ] Improve build process to publish artifacts.
- Loading branch information
Showing
4 changed files
with
181 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
# string-value | ||
Wrapper for an optional string value | ||
# String value module | ||
## Overview | ||
Part of Zkejid's Constructor Framework. Serves as a wrapper around string values provided through any container: command line property, configuration property, etc. Includes semantics of "empty value" and "omitted value". Sometimes it is hard to say if the value of string parameter is actually an empty string, or the value is unspecified due to any reason. Sometimes both of these situationsshould be processed similarly, bot in other cases actions should be different. This module helps to process the value in strict and obvious way. | ||
|
||
## Usage | ||
## API | ||
To use the API as the publisher of the value you should request ```StringValueFactory.class``` interface in your ```ConstructorPart``` implementation: | ||
``` | ||
@Override | ||
public Set<Class<?>> getInterfacesNecessary() { | ||
return Set.of(StringValueFactory.class); | ||
} | ||
``` | ||
For a given value to publish you should call ```make(String, InputValueType)``` method of the factory. ```String``` value contains the value to pass, ```InputValueType``` contains type of raw value obtained from the source. | ||
|
||
To use the API as the receiver of value you may just use ```StringValue``` object. | ||
|
||
## Constructor Module | ||
String Value is the module of [Constructor Framework](https://github.com/zkejidsconstructor). | ||
You can simply place artifacts of this module on the path of application to use its API. | ||
|
||
## Versioning | ||
Artifact versions of the CliArguments Module follow the | ||
[Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html) specification. | ||
|
||
## License | ||
The module is provided under MIT License Copyright (c) 2020 Zkejid. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters