Skip navigation links
oracle.adfinternal.share.props
Class ADFPropsSettingsCallback
java.lang.Object
oracle.adfinternal.share.props.ADFPropsSettingsCallback
- All Implemented Interfaces:
- ADFSettingsCallback
-
public class ADFPropsSettingsCallback
- extends java.lang.Object
- implements ADFSettingsCallback
This class is for internal use only.
Field Summary |
protected static java.lang.String |
CLASS
|
static java.lang.String |
CONFIG_SETTINGS
|
protected static java.lang.String |
DEFVAL
|
protected static java.lang.String |
NAME
|
protected static java.lang.String |
PROP
|
protected static java.lang.String |
PROPMETADATA
|
protected static java.lang.String |
PROPS
|
protected static java.lang.String |
VALPROV
|
static java.lang.String |
XMLNS
|
Method Summary |
static java.util.Map<java.lang.String,java.lang.String> |
getDefaultPropValMap(java.util.Map storedResult)
|
protected static java.util.Map |
getInternalMap(java.util.Map storedResult, java.lang.String mapKey)
|
protected static ConfigPropertyMetadata |
getMetaData(java.util.Map storedResult, java.lang.Object key)
|
protected static java.util.Map<java.lang.String,java.lang.String> |
getNameValMap(java.util.Map storedResult, java.lang.String mapKey)
|
static java.util.Map<java.lang.String,ConfigPropertyMetadata> |
getPropMetaData(java.util.Map storedResult)
|
static java.lang.String |
getValueProvider(java.util.Map storedResult)
|
java.util.Map |
parseADFSettings(org.w3c.dom.Element domFragment, java.util.Map storedResult, ADFConfigParsingContext currentCtx)
storedResult is [key,valuue] = [String,Map<String, Map<String, String>>] The key for the adf-settings.xml of this parser is RESULT_KEY. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLNS
public static final java.lang.String XMLNS
-
- See Also:
- Constant Field Values
CONFIG_SETTINGS
public static final java.lang.String CONFIG_SETTINGS
-
- See Also:
- Constant Field Values
VALPROV
protected static final java.lang.String VALPROV
-
- See Also:
- Constant Field Values
CLASS
protected static final java.lang.String CLASS
-
- See Also:
- Constant Field Values
PROPS
protected static final java.lang.String PROPS
-
- See Also:
- Constant Field Values
PROP
protected static final java.lang.String PROP
-
- See Also:
- Constant Field Values
DEFVAL
protected static final java.lang.String DEFVAL
-
- See Also:
- Constant Field Values
NAME
protected static final java.lang.String NAME
-
- See Also:
- Constant Field Values
PROPMETADATA
protected static final java.lang.String PROPMETADATA
-
- See Also:
- Constant Field Values
ADFPropsSettingsCallback
public ADFPropsSettingsCallback()
parseADFSettings
public java.util.Map parseADFSettings(org.w3c.dom.Element domFragment,
java.util.Map storedResult,
ADFConfigParsingContext currentCtx)
- storedResult is [key,valuue] = [String,Map<String, Map<String, String>>] The key for the adf-settings.xml of this parser is RESULT_KEY. The method getResultMap(...) returns the Map<String, Map<String, String>> for RESULT_KEY. Now within the Map<String, Map<String, String>>, there are two maps. The first map contains the name of the valueProvider class and it is keyed off of VALPRO_KEY. The second map contains the names and default values of the properties. It is keyed off of PROP_MAP_KEY. The method getNameValMap(key) can return the inner Map<String,String> from storedResult by first getting the Map<String, Map<String, String>> that corresponds to RESULT_KEY by calling getResultMap() and then from that returning the Map<String,String> corresponding to the parameter "key".
-
- Specified by:
parseADFSettings
in interface ADFSettingsCallback
-
- Parameters:
domFragment
- The dom element currently being parsed.
storedResult
- The cached parsed results thus far for the registered namespace
currentCtx
- the current context available at the time of parsing. This can store useful information like the file identifier, ServletContext. This can also be used to store information that may need to be added in future.
- Returns:
- component returns the Map, which will be cached for that component and this will be the new storedResult
getNameValMap
protected static java.util.Map<java.lang.String,java.lang.String> getNameValMap(java.util.Map storedResult,
java.lang.String mapKey)
-
- Parameters:
storedResult
- the main map that corresponds to properties file
mapKey
- key of the internal map
- Returns:
getInternalMap
protected static java.util.Map getInternalMap(java.util.Map storedResult,
java.lang.String mapKey)
getPropMetaData
public static java.util.Map<java.lang.String,ConfigPropertyMetadata> getPropMetaData(java.util.Map storedResult)
getMetaData
protected static ConfigPropertyMetadata getMetaData(java.util.Map storedResult,
java.lang.Object key)
getValueProvider
public static java.lang.String getValueProvider(java.util.Map storedResult)
getDefaultPropValMap
public static java.util.Map<java.lang.String,java.lang.String> getDefaultPropValMap(java.util.Map storedResult)
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.