Package org.fugerit.java.core.cfg.xml
Class PropertyHolder
- java.lang.Object
-
- org.fugerit.java.core.cfg.xml.BasicIdConfigType
-
- org.fugerit.java.core.cfg.xml.PropertyHolder
-
- All Implemented Interfaces:
Serializable
,IdConfigType
,KeyObject<String>
,KeyString
public class PropertyHolder extends BasicIdConfigType
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
MODE_CL
static String
MODE_CLASS_LOADER
static String
MODE_FILE
static String
MODE_MULTI
When this mode is used, you must define in PATH reference to other holders in the same catalog, semicolon separated.static String
UNSAFE_FALSE
static String
UNSAFE_TRUE
static String
UNSAFE_WARN
-
Constructor Summary
Constructors Constructor Description PropertyHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<Object,Object>>
entrySet()
String
getDescription()
String
getEncoding()
Properties
getInnerProps()
String
getMode()
String
getPath()
String
getProperty(String key)
String
getProperty(String key, String defaultValue)
String
getUnsafe()
String
getUnsafeMessage()
String
getXml()
void
init()
void
init(PropertyCatalog catalog, String catalogId)
boolean
isEmpty()
Enumeration<Object>
keys()
Set<Object>
keySet()
void
setDescription(String description)
void
setEncoding(String encoding)
void
setMode(String mode)
void
setPath(String path)
void
setUnsafe(String unsafe)
void
setUnsafeMessage(String unsafeMessage)
void
setXml(String xml)
String
toString()
-
Methods inherited from class org.fugerit.java.core.cfg.xml.BasicIdConfigType
getId, getKey, setId
-
-
-
-
Field Detail
-
UNSAFE_TRUE
public static final String UNSAFE_TRUE
- See Also:
- Constant Field Values
-
UNSAFE_FALSE
public static final String UNSAFE_FALSE
- See Also:
- Constant Field Values
-
UNSAFE_WARN
public static final String UNSAFE_WARN
- See Also:
- Constant Field Values
-
MODE_CLASS_LOADER
public static final String MODE_CLASS_LOADER
- See Also:
- Constant Field Values
-
MODE_CL
public static final String MODE_CL
- See Also:
- Constant Field Values
-
MODE_FILE
public static final String MODE_FILE
- See Also:
- Constant Field Values
-
MODE_MULTI
public static final String MODE_MULTI
When this mode is used, you must define in PATH reference to other holders in the same catalog, semicolon separated. For instace if props-01 and props-02 are two holder in the same catalog : path="props01;props-02"- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
getMode
public String getMode()
-
setMode
public void setMode(String mode)
-
getXml
public String getXml()
-
setXml
public void setXml(String xml)
-
getEncoding
public String getEncoding()
-
setEncoding
public void setEncoding(String encoding)
-
init
public void init(PropertyCatalog catalog, String catalogId) throws IOException
- Throws:
IOException
-
init
public void init() throws IOException
- Throws:
IOException
-
isEmpty
public boolean isEmpty()
-
containsValue
public boolean containsValue(Object value)
-
containsKey
public boolean containsKey(Object key)
-
keys
public Enumeration<Object> keys()
-
getInnerProps
public Properties getInnerProps()
-
toString
public String toString()
- Overrides:
toString
in classBasicIdConfigType
-
getUnsafe
public String getUnsafe()
-
setUnsafe
public void setUnsafe(String unsafe)
-
getUnsafeMessage
public String getUnsafeMessage()
-
setUnsafeMessage
public void setUnsafeMessage(String unsafeMessage)
-
-