public class FindAndReplaceCustomization extends Customization
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
FindAndReplaceCustomization(java.lang.String description, EnvValueQuery query, java.lang.String replacement)
Constructor for creating a find-and-replace customization
|
| Modifier and Type | Method and Description |
|---|---|
Customization |
clone(java.util.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.
|
java.lang.String |
getReplacement()
Return the replacement text.
|
java.util.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, toXMLpublic static final long serialVersionUID
public FindAndReplaceCustomization(java.lang.String description,
EnvValueQuery query,
java.lang.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 java.lang.String getReplacement()
public java.util.Set<Ref> getTargets()
CustomizationgetTargets in class Customization
public CustomizationType toXML()
throws XmlException
CustomizationtoXML in class CustomizationXmlExceptionpublic Customization clone(java.util.Set<Ref> filter)
Customizationclone in class Customizationfilter - if filter is null no narrowing is performed, and the customization is cloned as-is.