Package berlin.yuna.configmetadata.logic
Class MetaDataGenerator
- java.lang.Object
-
- berlin.yuna.configmetadata.logic.MetaDataGenerator
-
- Direct Known Subclasses:
AutoConfigurationClass
,ConfigurationMetadata
public abstract class MetaDataGenerator extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Path
GENERAL_META_DATA_PATH
static String
TYPE_AUTO_CONFIG
static String
TYPE_CONFIG_META_DATA
-
Constructor Summary
Constructors Constructor Description MetaDataGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Path
write(String metaDataType, String content)
Generates metadataPath
write(Path outputPath, String content)
Generates metadata in unix format
-
-
-
Field Detail
-
GENERAL_META_DATA_PATH
public static final Path GENERAL_META_DATA_PATH
-
TYPE_CONFIG_META_DATA
public static final String TYPE_CONFIG_META_DATA
- See Also:
- Constant Field Values
-
TYPE_AUTO_CONFIG
public static final String TYPE_AUTO_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
write
public Path write(String metaDataType, String content) throws IOException
Generates metadata- Parameters:
content
- file content to writemetaDataType
- type of meta data- Returns:
- written metadata path
- Throws:
IOException
- when the file could not be written
-
write
public Path write(Path outputPath, String content) throws IOException
Generates metadata in unix format- Parameters:
content
- file content to writeoutputPath
- custom path to write meta data file- Returns:
- written metadata path
- Throws:
IOException
- when the file could not be written
-
-