public class FindAndReplaceCustomization extends Customization
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
FindAndReplaceCustomization(String description, EnvValueQuery query, String replacement)
Constructor for creating a find-and-replace customization
|
Modifier and Type | Method and Description |
---|---|
Customization |
clone(Set<Ref> filter)
Returns a copy of this customization and optionally modifies its target references so that the customization only applies to a reference if it is subsumed by a reference in the filter.
|
EnvValueQuery |
getQuery()
Return the query that indicates which env values to find.
|
String |
getReplacement()
Return the replacement text.
|
Set<Ref> |
getTargets()
Returns the references to resources, folders or projects which the customizations will be applied to.
|
CustomizationType |
toXML()
Returns an xml representation for this customization
|
fromXML, fromXML, fromXML, getDescription, toXML, toXML
public static final long serialVersionUID
public FindAndReplaceCustomization(String description, EnvValueQuery query, String replacement)
description
- the user given description for this customizationquery
- the query that indicates which env values to findreplacement
- the replacement text. This text will be substituted for the env value pattern given in the query.public EnvValueQuery getQuery()
public String getReplacement()
public Set<Ref> getTargets()
Customization
getTargets
in class Customization
public CustomizationType toXML() throws XmlException
Customization
toXML
in class Customization
XmlException
public Customization clone(Set<Ref> filter)
Customization
clone
in class Customization
filter
- if filter is null no narrowing is performed, and the customization is cloned as-is.