| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ConfigFile |
|
| 1.0;1 |
| 1 | package com.ctrip.framework.apollo; | |
| 2 | ||
| 3 | import com.ctrip.framework.apollo.core.enums.ConfigFileFormat; | |
| 4 | ||
| 5 | /** | |
| 6 | * @author Jason Song(song_s@ctrip.com) | |
| 7 | */ | |
| 8 | public interface ConfigFile { | |
| 9 | /** | |
| 10 | * Get file content of the namespace | |
| 11 | * @return file content, {@code null} if there is no content | |
| 12 | */ | |
| 13 | String getContent(); | |
| 14 | ||
| 15 | /** | |
| 16 | * Whether the config file has any content | |
| 17 | * @return true if it has content, false otherwise. | |
| 18 | */ | |
| 19 | boolean hasContent(); | |
| 20 | ||
| 21 | /** | |
| 22 | * Get the namespace of this config file instance | |
| 23 | * @return the namespace | |
| 24 | */ | |
| 25 | String getNamespace(); | |
| 26 | ||
| 27 | /** | |
| 28 | * Get the file format of this config file instance | |
| 29 | * @return the config file format enum | |
| 30 | */ | |
| 31 | ConfigFileFormat getConfigFileFormat(); | |
| 32 | } |