Class ReplaceVersionUpgrade
- java.lang.Object
-
- com.sun.enterprise.deployment.node.ReplaceVersionUpgrade
-
- All Implemented Interfaces:
VersionUpgrade
- Direct Known Subclasses:
DataSourceNameVersionUpgrade
public abstract class ReplaceVersionUpgrade extends Object implements VersionUpgrade
This class implements VersionUpgrade and can be used as a convenience class to cause one element name to be replaced by another keeping the value- Version:
- Author:
- Gerald Ingalls
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sun.enterprise.deployment.node.VersionUpgrade
VersionUpgrade.UpgradeType
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,String>matchesprotected StringnewElementNameprotected StringoldElementName
-
Constructor Summary
Constructors Constructor Description ReplaceVersionUpgrade(String oldName, String newName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getMatchXPath()Return the map of xml element to matchStringgetReplacementElementName()Return the replacement element nameStringgetReplacementElementValue()Return the replacement element valueVersionUpgrade.UpgradeTypegetUpgradeType()Return the kind of processing to dovoidinit()InitializebooleanisValid()Return whether the matched items are valid.
-
-
-
Method Detail
-
getUpgradeType
public VersionUpgrade.UpgradeType getUpgradeType()
Return the kind of processing to do- Specified by:
getUpgradeTypein interfaceVersionUpgrade- Returns:
- the kind of processing to do
-
init
public void init()
Initialize- Specified by:
initin interfaceVersionUpgrade
-
getMatchXPath
public Map<String,String> getMatchXPath()
Return the map of xml element to match- Specified by:
getMatchXPathin interfaceVersionUpgrade- Returns:
- the map of xml element to match
-
getReplacementElementName
public String getReplacementElementName()
Return the replacement element name- Specified by:
getReplacementElementNamein interfaceVersionUpgrade- Returns:
- the replacement element name
-
getReplacementElementValue
public String getReplacementElementValue()
Return the replacement element value- Specified by:
getReplacementElementValuein interfaceVersionUpgrade- Returns:
- the replacement element value
-
isValid
public boolean isValid()
Return whether the matched items are valid.- Specified by:
isValidin interfaceVersionUpgrade- Returns:
- whether the matched items are valid.
-
-