forked from metaschema-framework/metaschema-java
-
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.
More code cleanup and refactoring (metaschema-framework#245)
* Added missing Javadocs. Adjusted many existing Javadocs to provide more details. * Refactored data type and atomic item implementations to move casting operations to the atomic item implementations. This creates a cleaner isolation between the type adapters and Metapath items. * Refactored names of temporal implementation classes. * Removed some unused constants. * Improved date and dateTime adapter unit testing to check for ambiguity and resulting time value. * Reformatted some code. * Performed some light refactoring to remove unused code and to improve overall code readability to make maintenance easier. * Added asserts to ensure HTML to Mardown conversion is tested more completely. * Significantly improved data and date/time parsing test vectors. * Replaced Paths.get() with Paths.get(System.getProperty(user.dir)) to be more explict. Improved value creation methods in date and date/time item classes. Added many Javadocs. * Refactored the result type used in MetapathExpression to avoid the need for a case statement. This should result in cleaner code and better performance overall. * Removed commented out code. * Updated some inconsistent log4j configurations to be consistent with other configurations. * Updated dependencies through parent POM.
- Loading branch information
1 parent
47a13f2
commit be910a9
Showing
181 changed files
with
3,437 additions
and
1,375 deletions.
There are no files selected for viewing
57 changes: 57 additions & 0 deletions
57
...r/src/main/java-templates/gov/nist/secauto/metaschema/cli/processor/ProcessorVersion.java
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
|
||
|
||
package gov.nist.secauto.metaschema.cli.processor; | ||
|
||
import gov.nist.secauto.metaschema.core.util.IVersionInfo; | ||
|
||
/** | ||
* Provides version information for this library. | ||
* <p> | ||
* This class exposes build-time metadata including version numbers, build | ||
* timestamps, and Git repository information. | ||
*/ | ||
public class ProcessorVersion implements IVersionInfo { | ||
|
||
private static final String NAME = "${project.name}"; | ||
private static final String VERSION = "${project.version}"; | ||
private static final String BUILD_TIMESTAMP = "${timestamp}"; | ||
private static final String COMMIT = "@git.commit.id.abbrev@"; | ||
private static final String BRANCH = "@git.branch@"; | ||
private static final String CLOSEST_TAG = "@git.closest.tag.name@"; | ||
private static final String ORIGIN = "@git.remote.origin.url@"; | ||
|
||
@Override | ||
public String getName() { | ||
return NAME; | ||
} | ||
|
||
@Override | ||
public String getVersion() { | ||
return VERSION; | ||
} | ||
|
||
@Override | ||
public String getBuildTimestamp() { | ||
return BUILD_TIMESTAMP; | ||
} | ||
|
||
@Override | ||
public String getGitOriginUrl() { | ||
return ORIGIN; | ||
} | ||
|
||
@Override | ||
public String getGitCommit() { | ||
return COMMIT; | ||
} | ||
|
||
@Override | ||
public String getGitBranch() { | ||
return BRANCH; | ||
} | ||
|
||
@Override | ||
public String getGitClosestTag() { | ||
return CLOSEST_TAG; | ||
} | ||
} |
40 changes: 0 additions & 40 deletions
40
cli-processor/src/main/java-templates/gov/nist/secauto/metaschema/cli/processor/Version.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.