Package io.atlasmap.core
Class AtlasUtil
java.lang.Object
io.atlasmap.core.AtlasUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addAudit
(AtlasSession session, Validation validation) static void
addAudit
(AtlasInternalSession session, Field field, String message, AuditStatus status, String value) static void
addAudit
(AtlasInternalSession session, String docId, String message, AuditStatus status, String value) static void
addAudits
(AtlasInternalSession session, Field field, List<Audit> audits) static void
static int
countCharacters
(String text, char match) static Audit
createAudit
(AuditStatus status, String docId, String docName, String path, String value, String message) static void
deleteDirectory
(File targetDir) Delete specified directory and the contents in it.static void
deleteDirectoryContents
(File targetDir) Delete all contents in the specified directory.static String
escapeForUri
(String source) findClassesForPackage
(String scannedPackage) findClassesFromJar
(URL jarFileUrl) static String
static String
getDocumentNameById
(AtlasInternalSession session, String docId) protected static URL
getResource
(String scannedPath) static String
getUriDataType
(String atlasUri) static String
getUriModule
(String atlasUri) static String
getUriModuleVersion
(String atlasUri) getUriParameters
(String atlasUri) static String
getUriParameterValue
(String atlasUri, String key) getUriPartsAsArray
(String atlasUri) static String
getUriScheme
(String atlasUri) Returns the "scheme" piece of an Atlas uri ie.static boolean
static Properties
loadPropertiesFromURL
(URL url) static boolean
matchUriModule
(String uriA, String uriB) static AuditStatus
toAuditStatus
(ValidationStatus vstatus) static String
unescapeFromUri
(String uri) protected static void
validateUri
(String atlasUri)
-
Field Details
-
SPLIT_LIMIT
public static final int SPLIT_LIMIT- See Also:
-
NEW_LINE_CHARS
- See Also:
-
-
Constructor Details
-
AtlasUtil
public AtlasUtil()
-
-
Method Details
-
loadPropertiesFromURL
- Throws:
Exception
-
isEmpty
-
matchUriModule
-
validateUri
-
getUriPartsAsArray
-
getUriScheme
Returns the "scheme" piece of an Atlas uri ie. atlas:stringseparated:csv?quoteChar=" scheme: atlas module: stringseparated remaining: csv config: quoteChar=" if atlasUri is null, returns null. if empty or no scheme present, returns empty. otherwise, the $scheme is returned- Parameters:
atlasUri
- URI string- Returns:
- URI scheme
-
getUriModule
-
getUriDataType
-
getUriModuleVersion
-
getUriParameterValue
-
getUriParameters
-
countCharacters
-
findClassesForPackage
-
addAudit
public static void addAudit(AtlasInternalSession session, Field field, String message, AuditStatus status, String value) -
addAudit
public static void addAudit(AtlasInternalSession session, String docId, String message, AuditStatus status, String value) -
createAudit
-
addAudit
-
addAudits
-
toAuditStatus
-
getDocumentNameById
-
getResource
-
find
-
findClassesFromJar
-
getChainedMessage
-
escapeForUri
-
unescapeFromUri
-
deleteDirectory
Delete specified directory and the contents in it.- Parameters:
targetDir
-- See Also:
-
deleteDirectoryContents
Delete all contents in the specified directory.- Parameters:
targetDir
-- See Also:
-
copyFile
- Throws:
IOException
-