public class ReferenceCustomization extends Customization
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
ReferenceCustomization(java.util.Set<Ref> targets, java.lang.String description, java.util.Map<Ref,Ref> mapping)
Deprecated.
Use ReferenceCustomization(String, Set<Ref>, Map<Ref, Ref>) instead
|
ReferenceCustomization(java.lang.String description, java.util.Set<Ref> targets, java.util.Map<Ref,Ref> mapping)
Creates a customization for changing/mapping references embedded in a set of resources
|
| 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.
|
java.util.Map<Ref,Ref> |
getMapping()
Returns the reference mapping to be applied.
|
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
@Deprecated public ReferenceCustomization(java.util.Set<Ref> targets, java.lang.String description, java.util.Map<Ref,Ref> mapping)
public ReferenceCustomization(java.lang.String description,
java.util.Set<Ref> targets,
java.util.Map<Ref,Ref> mapping)
description - the user given description for this customizationtargets - resources to consider. A null value indicates all resources. A project or folder resource indicates all resources in that project / folder.mapping - mapping from old references to be modified to their new valuespublic java.util.Set<Ref> getTargets()
CustomizationgetTargets in class Customizationpublic java.util.Map<Ref,Ref> getMapping()
public 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.
public CustomizationType toXML()
throws XmlException
CustomizationtoXML in class CustomizationXmlException