Class ReadOrModifyXML
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.actions.ReadOrModifyXML
-
- All Implemented Interfaces:
OSHostable
,Referenceable
public final class ReadOrModifyXML extends Action implements OSHostable
Reads / Modifies a tag / attribute in an XML file
-
-
Constructor Summary
Constructors Constructor Description ReadOrModifyXML()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getActionOperationMode()
Set the action operation mode to 1 for reading XML files and to 2 for Replacing XML files, defaults to 1java.lang.String
getAttributeName()
The attribute name to be read / modifiedboolean
getCreateBackup()
Whether to create backup while modifyingjava.lang.String
getExistingFilePath()
The path for the existing fileshort
getFileAccessMode()
Set the file access mode to 8 for the accessing an installed file, or to 9 for an existing file, defaults to 9java.lang.String
getFindOcc_attributeValue()
The text value of the attribute of the tag to search and locate occurencejava.lang.String
getFindOcc_tagValue()
The text value of the tag to search and locate occurenceshort
getFindOccurenceMode()
Set the find occurence mode to 12 for the finding occurence of a tag and set it to 13 for finding occurence of a tag with specific attribute.short
getProcessMode()
Set the processing mode to 5 for the entire tag, or to 6 for an attribute, defaults to 5java.lang.String
getStringToReplace()
The String replacement to be used for modificationjava.lang.String
getTagName()
The tag name to be read / modified.FileAction
getTargetAction()
The reference of the installed file actionjava.lang.String
getVarToStoreReadValue()
The IA variable to set the read value tovoid
setActionOperationMode(short ActionOperationMode)
Set the action operation mode to 1 for reading XML files and to 2 for Replacing XML files, defaults to 1void
setAttributeName(java.lang.String AttributeName)
The attribute name to be read / modifiedvoid
setCreateBackup(boolean CreateBackup)
Whether to create backup while modifyingvoid
setExistingFilePath(java.lang.String ExistingFilePath)
The path for the existing filevoid
setFileAccessMode(short FileAccessMode)
Set the file access mode to 8 for the accessing an installed file, or to 9 for an existing file, defaults to 9void
setFindOcc_attributeValue(java.lang.String FindOcc_attributeValue)
The text value of the attribute of the tag to search and locate occurencevoid
setFindOcc_tagValue(java.lang.String FindOcc_tagValue)
The text value of the tag to search and locate occurencevoid
setFindOccurenceMode(short FindOccurenceMode)
Set the find occurence mode to 12 for the finding occurence of a tag and set it to 13 for finding occurence of a tag with specific attribute.void
setProcessMode(short ProcessMode)
Set the processing mode to 5 for the entire tag, or to 6 for an attribute, defaults to 5void
setStringToReplace(java.lang.String StringToReplace)
The String replacement to be used for modificationvoid
setTagName(java.lang.String TagName)
The tag name to be read / modified.void
setTargetAction(FileAction TargetAction)
The reference of the installed file actionvoid
setVarToStoreReadValue(java.lang.String VarToStoreReadValue)
The IA variable to set the read value to-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
getActionOperationMode
public short getActionOperationMode()
Set the action operation mode to 1 for reading XML files and to 2 for Replacing XML files, defaults to 1
-
setActionOperationMode
public void setActionOperationMode(short ActionOperationMode)
Set the action operation mode to 1 for reading XML files and to 2 for Replacing XML files, defaults to 1
-
getProcessMode
public short getProcessMode()
Set the processing mode to 5 for the entire tag, or to 6 for an attribute, defaults to 5
-
setProcessMode
public void setProcessMode(short ProcessMode)
Set the processing mode to 5 for the entire tag, or to 6 for an attribute, defaults to 5
-
getTagName
public java.lang.String getTagName()
The tag name to be read / modified. tag name is of type tagname{occurence}
-
setTagName
public void setTagName(java.lang.String TagName)
The tag name to be read / modified. tag name is of type tagname{occurence}
-
getAttributeName
public java.lang.String getAttributeName()
The attribute name to be read / modified
-
setAttributeName
public void setAttributeName(java.lang.String AttributeName)
The attribute name to be read / modified
-
getCreateBackup
public boolean getCreateBackup()
Whether to create backup while modifying
-
setCreateBackup
public void setCreateBackup(boolean CreateBackup)
Whether to create backup while modifying
-
getVarToStoreReadValue
public java.lang.String getVarToStoreReadValue()
The IA variable to set the read value to
-
setVarToStoreReadValue
public void setVarToStoreReadValue(java.lang.String VarToStoreReadValue)
The IA variable to set the read value to
-
getStringToReplace
public java.lang.String getStringToReplace()
The String replacement to be used for modification
-
setStringToReplace
public void setStringToReplace(java.lang.String StringToReplace)
The String replacement to be used for modification
-
getFileAccessMode
public short getFileAccessMode()
Set the file access mode to 8 for the accessing an installed file, or to 9 for an existing file, defaults to 9
-
setFileAccessMode
public void setFileAccessMode(short FileAccessMode)
Set the file access mode to 8 for the accessing an installed file, or to 9 for an existing file, defaults to 9
-
getExistingFilePath
public java.lang.String getExistingFilePath()
The path for the existing file
-
setExistingFilePath
public void setExistingFilePath(java.lang.String ExistingFilePath)
The path for the existing file
-
getTargetAction
public FileAction getTargetAction()
The reference of the installed file action
-
setTargetAction
public void setTargetAction(FileAction TargetAction)
The reference of the installed file action
-
getFindOccurenceMode
public short getFindOccurenceMode()
Set the find occurence mode to 12 for the finding occurence of a tag and set it to 13 for finding occurence of a tag with specific attribute. Defaults to 12
-
setFindOccurenceMode
public void setFindOccurenceMode(short FindOccurenceMode)
Set the find occurence mode to 12 for the finding occurence of a tag and set it to 13 for finding occurence of a tag with specific attribute. Defaults to 12
-
getFindOcc_tagValue
public java.lang.String getFindOcc_tagValue()
The text value of the tag to search and locate occurence
-
setFindOcc_tagValue
public void setFindOcc_tagValue(java.lang.String FindOcc_tagValue)
The text value of the tag to search and locate occurence
-
getFindOcc_attributeValue
public java.lang.String getFindOcc_attributeValue()
The text value of the attribute of the tag to search and locate occurence
-
setFindOcc_attributeValue
public void setFindOcc_attributeValue(java.lang.String FindOcc_attributeValue)
The text value of the attribute of the tag to search and locate occurence
-
-