public class DfPropFile extends Object
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
_checkDuplicateEntry |
protected boolean |
_returnsNullIfNotFound |
protected boolean |
_skipLineSeparator |
| コンストラクタと説明 |
|---|
DfPropFile() |
protected boolean _returnsNullIfNotFound
protected boolean _skipLineSeparator
protected boolean _checkDuplicateEntry
public Map<String,Object> readMap(String dfpropPath, String envType)
map:{
; key1 = string-value1
; key2 = list:{element1 ; element2 }
; key3 = map:{key1 = value1 ; key2 = value2 }
; ... = ...
}
And resolve property file, switched and extended file, for environment. for example: [Switch Style] dbflute_exampledb |-dfprop | |-maihama | | |-exampleMap.dfprop // env | |-exampleMap.dfprop // main if maihama, env if default, main [Inherit Style] dbflute_exampledb |-dfprop | |-maihama | | |-exampleMap+.dfprop // env+ | |-exampleMap.dfprop // main if maihama, main and env+ if default, main only [All Stars] dbflute_exampledb |-dfprop | |-maihama | | |-exampleMap.dfprop // env | | |-exampleMap+.dfprop // env+ | |-exampleMap.dfprop // main | |-exampleMap+.dfprop // main+ if maihama, env and env+ if default, main and main+
dfpropPath - The path of DBFlute property file. (NotNull)envType - The environment type of DBFlute. (NullAllowed: if null, no environment file)protected Map<String,Object> actuallyReadMap(String path) throws FileNotFoundException, IOException
protected void throwDfPropDuplicateEntryException(String path, MapListStringDuplicateEntryException e)
public Map<String,String> readMapAsStringValue(String dfpropPath, String envType)
e.g.
map:{
; key1 = string-value1
; key2 = string-value2
; ... = ...
}
And resolve property file for environment.
(see the readMap(String, String))
dfpropPath - The path of DBFlute property file. (NotNull)envType - The environment type of DBFlute. (NullAllowed: if null, no environment file)protected Map<String,String> actuallyReadMapAsStringValue(String path) throws FileNotFoundException, IOException
public Map<String,List<String>> readMapAsStringListValue(String dfpropPath, String envType)
e.g.
map:{
; key1 = list:{string-element1 ; string-element2 ; ...}
; key2 = list:{string-element1 ; string-element2 ; ...}
; ... = list:{...}
}
And resolve property file for environment.
(see the readMap(String, String))
dfpropPath - The path of DBFlute property file. (NotNull)envType - The environment type of DBFlute. (NullAllowed: if null, no environment file)protected Map<String,List<String>> actuallyReadMapAsStringListValue(String path) throws FileNotFoundException, IOException
public Map<String,Map<String,String>> readMapAsStringMapValue(String dfpropPath, String envType)
e.g.
map:{
; key1 = map:{string-key1 = string-value1 ; string-key2 = string-value2 }
; key2 = map:{string-key1 = string-value1 ; string-key2 = string-value2 }
; ... = map:{...}
}
And resolve property file for environment.
(see the readMap(String, String))
dfpropPath - The path of DBFlute property file. (NotNull)envType - The environment type of DBFlute. (NullAllowed: if null, no environment file)protected Map<String,Map<String,String>> actuallyReadMapAsStringMapValue(String path) throws FileNotFoundException, IOException
public List<Object> readList(String dfpropPath, String envType)
list:{
; element1
; list:{element2-1 ; element2-2 }
; map:{key3-1 = value3-1 ; key3-2 = value3-2 }
; ... = ...
}
dfpropPath - The path of DBFlute property file. (NotNull)envType - The environment type of DBFlute. (NullAllowed: if null, no environment file)protected List<Object> actuallyReadList(String path) throws FileNotFoundException, IOException
public String readString(String dfpropPath, String envType)
dfpropPath - The path of DBFlute property file. (NotNull)envType - The environment type of DBFlute. (NullAllowed: if null, no environment file)protected String actuallyReadString(String path) throws FileNotFoundException, IOException
protected <ELEMENT> Map<String,ELEMENT> doReadMap(String dfpropPath, String envType, DfPropReadingMapHandler<ELEMENT> handler)
protected <ELEMENT> Map<String,ELEMENT> callReadingMapChecked(DfPropReadingMapHandler<ELEMENT> handler, String path)
protected <ELEMENT> boolean resolveOutsidePropInheritMap(DfPropReadingMapHandler<ELEMENT> handler, String path, Map<String,ELEMENT> map)
protected <ELEMENT> List<ELEMENT> doReadList(String dfpropPath, String envType, DfPropReadingListHandler<ELEMENT> handler)
protected <ELEMENT> List<ELEMENT> callReadingListChecked(DfPropReadingListHandler<ELEMENT> handler, String path)
protected String doReadString(String dfpropPath, String envType, DfPropReadingStringHandler handler)
protected String callReadingStringChecked(DfPropReadingStringHandler handler, String envPath)
protected String getInheritAllowedExt()
protected InputStream createInputStream(String path) throws FileNotFoundException
protected void throwDfPropFileReadFailureException(String path, IOException e)
protected MapListFile createMapListFilePlain()
protected MapListFile createMapListFileStructural()
protected MapListFile newMapListFile()
protected void assertDfpropPath(String dfpropPath)
public DfPropFile returnsNullIfNotFound()
public DfPropFile skipLineSeparator()
public DfPropFile checkDuplicateEntry()
Copyright © 2014–2015 The DBFlute Project. All rights reserved.