Top Description Fields Constructors Methods
org.apache.tools.ant.property

public Class ResolvePropertyMap

extends Object
implements GetProperty
Class Inheritance
All Implemented Interfaces
org.apache.tools.ant.property.GetProperty
Imports
java.util.Collection, .HashSet, .Map, .Set, org.apache.tools.ant.BuildException, .Project

Class to resolve properties in a map. This class is explicitly not threadsafe.
Since
Ant 1.8.0

Field Summary

Modifier and TypeField and Description
private boolean
private Map<String, Object>
private final GetProperty
private final ParseProperties
private String
private boolean
private final Set<String>

Constructor Summary

AccessConstructor and Description
public
ResolvePropertyMap(Project
the current ant project.
project
,
GetProperty
the master property holder (usually PropertyHelper)
master
,
Collection<PropertyExpander>
a collection of expanders (usually from PropertyHelper).
expanders
)

Constructor with a master getproperty and a collection of expanders.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the property value, or null for no match or for name being null.
getProperty
(String
name of the property.
name
)

Implements org.apache.tools.ant.property.GetProperty.getProperty.

Returns the value of a property if it is set.
public void
resolveAllProperties(Map<String, Object>
the map to resolve properties in.
map
)

Deprecated since Ant 1.8.2, use the three-arg method instead.
The action method - resolves all the properties in a map.
public void
resolveAllProperties(Map<String, Object>
the map to resolve properties in.
map
,
String
the prefix the properties defined inside the map will finally receive - may be null.
prefix
)

Deprecated since Ant 1.8.2, use the three-arg method instead.
The action method - resolves all the properties in a map.
public void
resolveAllProperties(Map<String, Object>
the map to resolve properties in.
map
,
String
the prefix the properties defined inside the map will finally receive - may be null.
prefix
,
boolean
- whether the prefix will be applied to properties on the value side of the map as well.
prefixValues
)

The action method - resolves all the properties in a map.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

expandingLHSback to summary
private boolean expandingLHS
mapback to summary
private Map<String, Object> map
masterback to summary
private final GetProperty master
parsePropertiesback to summary
private final ParseProperties parseProperties
prefixback to summary
private String prefix
prefixValuesback to summary
private boolean prefixValues
seenback to summary
private final Set<String> seen

Constructor Detail

ResolvePropertyMapback to summary
public ResolvePropertyMap(Project project, GetProperty master, Collection<PropertyExpander> expanders)

Constructor with a master getproperty and a collection of expanders.

Parameters
project:Project

the current ant project.

master:GetProperty

the master property holder (usually PropertyHelper)

expanders:Collection<PropertyExpander>

a collection of expanders (usually from PropertyHelper).

Method Detail

getPropertyback to summary
public Object getProperty(String name)

Implements org.apache.tools.ant.property.GetProperty.getProperty.

Returns the value of a property if it is set.

Parameters
name:String

name of the property.

Returns:Object

the property value, or null for no match or for name being null.

Annotations
@Override
resolveAllPropertiesback to summary
public void resolveAllProperties(Map<String, Object> map)

Deprecated

since Ant 1.8.2, use the three-arg method instead.

The action method - resolves all the properties in a map.

Parameters
map:Map<String, Object>

the map to resolve properties in.

Annotations
@Deprecated
resolveAllPropertiesback to summary
public void resolveAllProperties(Map<String, Object> map, String prefix)

Deprecated

since Ant 1.8.2, use the three-arg method instead.

The action method - resolves all the properties in a map.

Parameters
map:Map<String, Object>

the map to resolve properties in.

prefix:String

the prefix the properties defined inside the map will finally receive - may be null.

Annotations
@Deprecated
resolveAllPropertiesback to summary
public void resolveAllProperties(Map<String, Object> map, String prefix, boolean prefixValues)

The action method - resolves all the properties in a map.

Parameters
map:Map<String, Object>

the map to resolve properties in.

prefix:String

the prefix the properties defined inside the map will finally receive - may be null.

prefixValues:boolean

- whether the prefix will be applied to properties on the value side of the map as well.