litesoft
@ 947
litesoft / trunk / Java / core / Anywhere / src / org / litesoft / configuration / ConfigDataAccessor.java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
// This Source Code is in the Public Domain per: http://unlicense.org package org.litesoft.configuration; public interface ConfigDataAccessor extends ConfigDataAccessorFactory { public enum Level { RUN, USER, MACHINE } /** * @return !null */ public String[] getAllKeys(); /** * @param pKey not null or empty * * @return null if not found or value associated with key */ public String getString( String pKey ); /** * @return !null - source of Config data. */ public String loadedFrom(); /** * @return null if from ResourceAsStream or full directory path where relative config file path was loaded from. */ public String loadedFromDirectory(); /** * All implementations MUST support RUN level, but may not support other levels * * @return an array with at least 1 (RUN) entry */ public Level[] getSetableSupportedLevels(); /** * All implementations MUST support RUN level, but may not support other levels * * @param pLevel null interpreted as RUN * @param pKey not null or empty * @param pValue null means remove * * @throws UnsupportedOperationException if requested level not supported */ public void setKeyValue( Level pLevel, String pKey, String pValue ) throws UnsupportedOperationException; /** * Override (set at the Run Level) all values who's key starts with the pKeyPrefix * * @param pKeyPrefix !null & !empty * @param pValue !null */ public void overrideAllStartingWith( String pKeyPrefix, String pValue ); } |
Commits for litesoft/trunk/Java/core/Anywhere/src/org/litesoft/configuration/ConfigDataAccessor.java
Revision | Author | Commited | Message |
---|---|---|---|
947 Diff | GeorgeS | Fri 06 Jun, 2014 23:36:56 +0000 | Correct Spelling of package! |
475 Diff | GeorgeS | Sat 03 Sep, 2011 13:54:51 +0000 | |
474 Diff | GeorgeS | Fri 02 Sep, 2011 14:29:50 +0000 | Switch to Properties and eliminate some of the Per App shit |
49 Diff | GeorgeS | Mon 12 Apr, 2010 02:59:10 +0000 | License Text |
2 | GeorgeS | Sun 07 Feb, 2010 12:50:58 +0000 |