Package io.github.microcks.util
Class SchemaMap
- java.lang.Object
-
- io.github.microcks.util.SchemaMap
-
public class SchemaMap extends Object
This is a lightweight structure representing a Schema registry snapshot dedicated for being used by message validators.- Author:
- laurent
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSchemaEntry(String schemaPath)
Get schema entry string content.boolean
hasSchemaEntry(String schemaPath)
Check if we've got an entry for this schema path.void
putSchemaEntry(String schemaPath, String content)
Put a new schema entry in map.
-
-
-
Method Detail
-
putSchemaEntry
public void putSchemaEntry(String schemaPath, String content)
Put a new schema entry in map.- Parameters:
schemaPath
- The path of this new entry.content
- The string representation of schema content
-
hasSchemaEntry
public boolean hasSchemaEntry(String schemaPath)
Check if we've got an entry for this schema path.- Parameters:
schemaPath
- The path of searched entry.- Returns:
- True if we've got a corresponding entry, false otherwise.
-
-