Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Service Bus
11g Release 1 (11.1.1.6.3)

E15033-08


com.bea.wli.config.customization
Class ReferenceCustomization

java.lang.Object
  extended by com.bea.wli.config.customization.Customization
      extended by com.bea.wli.config.customization.ReferenceCustomization

All Implemented Interfaces:
java.io.Serializable

public class ReferenceCustomization
extends Customization

Customization for mapping references found in resources to other references.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           

 

Constructor Summary
ReferenceCustomization(java.util.Set<Ref> targets, java.lang.String description, java.util.Map<Ref,Ref> mapping)
          Creates a customization for changing/mapping references embedded in a set of resources

 

Method Summary
 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.
 org.apache.xmlbeans.XmlObject toXML()
          Returns an xml representation for this customization

 

Methods inherited from class com.bea.wli.config.customization.Customization
fromXML, fromXML, getDescription, toXML

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

Constructor Detail

ReferenceCustomization

public ReferenceCustomization(java.util.Set<Ref> targets,
                              java.lang.String description,
                              java.util.Map<Ref,Ref> mapping)
Creates a customization for changing/mapping references embedded in a set of resources
Parameters:
targets - resources to consider. A null value indicates all resources. A project or folder resource indicates all resources in that project / folder.
description - the user given description for this customization
mapping - mapping from old references to be modified to their new values

Method Detail

getTargets

public java.util.Set<Ref> getTargets()
Description copied from class: Customization
Returns the references to resources, folders or projects which the customizations will be applied to.
Specified by:
getTargets in class Customization
Returns:

getMapping

public java.util.Map<Ref,Ref> getMapping()
Returns the reference mapping to be applied.
Returns:

clone

public Customization clone(java.util.Set<Ref> filter)
Description copied from class: Customization
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. This operation essentially applies the customization to a smaller set of references. The target references is filtered so that one of the following happens: