Package org.apache.maven.plugins.invoker
Class CompositeMap
java.lang.Object
org.apache.maven.plugins.invoker.CompositeMap
A map-like source to interpolate expressions.
- Since:
- 1.1
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
Flag indicating to escape XML special characters.private org.apache.maven.project.MavenProject
The Maven project from which to extract interpolated values, nevernull
.The set of additional properties from which to extract interpolated values, nevernull
. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CompositeMap
(org.apache.maven.project.MavenProject mavenProject, Map<String, Object> properties, boolean escapeXml) Creates a new interpolation source backed by the specified Maven project and some user-specified properties. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
isEmpty()
keySet()
void
int
size()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
mavenProject
private org.apache.maven.project.MavenProject mavenProjectThe Maven project from which to extract interpolated values, nevernull
. -
properties
The set of additional properties from which to extract interpolated values, nevernull
. -
escapeXml
private final boolean escapeXmlFlag indicating to escape XML special characters.
-
-
Constructor Details
-
CompositeMap
protected CompositeMap(org.apache.maven.project.MavenProject mavenProject, Map<String, Object> properties, boolean escapeXml) Creates a new interpolation source backed by the specified Maven project and some user-specified properties.- Parameters:
mavenProject
- The Maven project from which to extract interpolated values, must not benull
.properties
- The set of additional properties from which to extract interpolated values, may benull
.escapeXml
-true
, to escape any XML special characters;false
, to not perform any escaping.
-
-
Method Details
-
clear
public void clear() -
containsKey
- Specified by:
containsKey
in interfaceMap<String,
Object> - See Also:
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
Object> - See Also:
-
entrySet
-
get
-
isEmpty
public boolean isEmpty() -
keySet
-
put
-
putAll
-
remove
-
size
public int size() -
values
-