Class JDomProperties
java.lang.Object
java.util.Dictionary<Object,Object>
java.util.Hashtable<Object,Object>
java.util.Properties
org.apache.maven.shared.release.transform.jdom2.JDomProperties
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
JDOM2 implementation of poms PROPERTIES element
Only few methods are properly implemented as the underlying data structure of
Hashtable is never populated.- Since:
- 3.0
- Author:
- Robert Scholte
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class java.util.Properties
defaults -
Constructor Summary
ConstructorsConstructorDescriptionJDomProperties(org.jdom2.Element properties) Constructor for JDomProperties. -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) getProperty(String key) getProperty(String key, String defaultValue) voidlist(PrintStream out) voidlist(PrintWriter out) voidload(InputStream inStream) voidvoidEnumeration<?> voidsave(OutputStream out, String comments) voidstore(OutputStream out, String comments) voidvoidstoreToXML(OutputStream os, String comment) voidstoreToXML(OutputStream os, String comment, String encoding) Methods inherited from class java.util.Properties
setPropertyMethods inherited from class java.util.Hashtable
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
-
Constructor Details
-
JDomProperties
public JDomProperties(org.jdom2.Element properties) Constructor for JDomProperties.
- Parameters:
properties- aElementobject
-
-
Method Details
-
put
-
load
- Overrides:
loadin classProperties- Throws:
IOException
-
load
- Overrides:
loadin classProperties- Throws:
IOException
-
save
- Overrides:
savein classProperties
-
store
- Overrides:
storein classProperties- Throws:
IOException
-
store
- Overrides:
storein classProperties- Throws:
IOException
-
loadFromXML
- Overrides:
loadFromXMLin classProperties- Throws:
IOExceptionInvalidPropertiesFormatException
-
storeToXML
- Overrides:
storeToXMLin classProperties- Throws:
IOException
-
storeToXML
- Overrides:
storeToXMLin classProperties- Throws:
IOException
-
getProperty
- Overrides:
getPropertyin classProperties
-
containsKey
- Specified by:
containsKeyin interfaceMap<Object,Object> - Overrides:
containsKeyin classHashtable<Object,Object>
-
getProperty
- Overrides:
getPropertyin classProperties
-
propertyNames
- Overrides:
propertyNamesin classProperties
-
stringPropertyNames
- Overrides:
stringPropertyNamesin classProperties
-
list
- Overrides:
listin classProperties
-
list
- Overrides:
listin classProperties
-