public class ReferenceCustomization extends Customization
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
ReferenceCustomization(Set<Ref> targets, String description, Map<Ref,Ref> mapping)
Deprecated.
Use ReferenceCustomization(String, Set<Ref>, Map<Ref, Ref>) instead
|
ReferenceCustomization(String description, Set<Ref> targets, 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(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.
|
Map<Ref,Ref> |
getMapping()
Returns the reference mapping to be applied.
|
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
@Deprecated public ReferenceCustomization(Set<Ref> targets, String description, Map<Ref,Ref> mapping)
public ReferenceCustomization(String description, Set<Ref> targets, 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 Set<Ref> getTargets()
Customization
getTargets
in class Customization
public Map<Ref,Ref> getMapping()
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.public CustomizationType toXML() throws XmlException
Customization
toXML
in class Customization
XmlException