com.xebialabs.deployit.plugin.python
Class PythonVarsConverter

java.lang.Object
  extended by com.xebialabs.deployit.plugin.remoting.vars.VarsConverter
      extended by com.xebialabs.deployit.plugin.python.PythonVarsConverter

public class PythonVarsConverter
extends com.xebialabs.deployit.plugin.remoting.vars.VarsConverter


Method Summary
 void add(java.lang.String line)
           
protected  void createObjectAndSetObjectProperty(java.lang.String objectName, java.lang.String propertyName)
           
protected  void endCreateObject(java.lang.String varName)
           
static java.lang.String javaToPython(com.xebialabs.overthere.OverthereConnection connection, java.util.Map<java.lang.String,java.lang.Object> pythonVars)
           
static java.lang.String javaToPython(com.xebialabs.overthere.OverthereConnection connection, java.util.Map<java.lang.String,java.lang.Object> pythonVars, boolean uploadArtifactData)
           
protected  void setBooleanProperty(java.lang.String objectName, java.lang.String propertyName, boolean varValue)
           
protected  void setBooleanVariable(java.lang.String varName, boolean varValue)
           
protected  void setCiReferenceProperty(java.lang.String objectName, java.lang.String propertyName, com.xebialabs.deployit.plugin.api.udm.ConfigurationItem varValue)
           
protected  void setCollectionOfCiReferencesProperty(java.lang.String objectName, java.lang.String propertyName, java.util.Collection<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> varValue)
           
protected  void setCollectionOfStringsProperty(java.lang.String objectName, java.lang.String propertyName, java.util.Collection<?> varValue)
           
protected  void setCollectionOfStringsVariable(java.lang.String varName, java.util.Collection<?> varValue)
           
protected  void setEmptyCollectionProperty(java.lang.String objectName, java.lang.String propertyName)
           
protected  void setEmptyMapProperty(java.lang.String objectName, java.lang.String propertyName)
           
protected  void setIntegerProperty(java.lang.String objectName, java.lang.String propertyName, int varValue)
           
protected  void setIntegerVariable(java.lang.String varName, int varValue)
           
protected  void setLongVariable(java.lang.String varName, long varValue)
           
protected  void setMapOfStringToStringReferencesProperty(java.lang.String objectName, java.lang.String propertyName, java.util.Map<java.lang.String,java.lang.String> varValue)
           
protected  void setNullProperty(java.lang.String objectName, java.lang.String propertyName)
           
protected  void setNullVariable(java.lang.String varName)
           
protected  void setPasswordProperty(java.lang.String objectName, java.lang.String propertyName, java.lang.String varValue)
           
protected  void setStringProperty(java.lang.String objectName, java.lang.String propertyName, java.lang.String varValue)
           
protected  void setStringVariable(java.lang.String varName, java.lang.String varValue)
           
protected  void startCreateObject(java.lang.String varName)
           
static java.lang.String toPythonString(java.lang.String str)
           
 
Methods inherited from class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter
convert, generateUniqueVariableName, getConfigurationItemVariableName, getDerivedPropertyName, setUploadArtifactData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

javaToPython

public static java.lang.String javaToPython(com.xebialabs.overthere.OverthereConnection connection,
                                            java.util.Map<java.lang.String,java.lang.Object> pythonVars)

javaToPython

public static java.lang.String javaToPython(com.xebialabs.overthere.OverthereConnection connection,
                                            java.util.Map<java.lang.String,java.lang.Object> pythonVars,
                                            boolean uploadArtifactData)

setNullVariable

protected void setNullVariable(java.lang.String varName)
Specified by:
setNullVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setBooleanVariable

protected void setBooleanVariable(java.lang.String varName,
                                  boolean varValue)
Specified by:
setBooleanVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setIntegerVariable

protected void setIntegerVariable(java.lang.String varName,
                                  int varValue)
Specified by:
setIntegerVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setLongVariable

protected void setLongVariable(java.lang.String varName,
                               long varValue)
Specified by:
setLongVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setStringVariable

protected void setStringVariable(java.lang.String varName,
                                 java.lang.String varValue)
Specified by:
setStringVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setCollectionOfStringsVariable

protected void setCollectionOfStringsVariable(java.lang.String varName,
                                              java.util.Collection<?> varValue)
Specified by:
setCollectionOfStringsVariable in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

startCreateObject

protected void startCreateObject(java.lang.String varName)
Specified by:
startCreateObject in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

endCreateObject

protected void endCreateObject(java.lang.String varName)
Specified by:
endCreateObject in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

add

public void add(java.lang.String line)
Overrides:
add in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setNullProperty

protected void setNullProperty(java.lang.String objectName,
                               java.lang.String propertyName)
Specified by:
setNullProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setEmptyCollectionProperty

protected void setEmptyCollectionProperty(java.lang.String objectName,
                                          java.lang.String propertyName)
Specified by:
setEmptyCollectionProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setEmptyMapProperty

protected void setEmptyMapProperty(java.lang.String objectName,
                                   java.lang.String propertyName)
Specified by:
setEmptyMapProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setBooleanProperty

protected void setBooleanProperty(java.lang.String objectName,
                                  java.lang.String propertyName,
                                  boolean varValue)
Specified by:
setBooleanProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setIntegerProperty

protected void setIntegerProperty(java.lang.String objectName,
                                  java.lang.String propertyName,
                                  int varValue)
Specified by:
setIntegerProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setStringProperty

protected void setStringProperty(java.lang.String objectName,
                                 java.lang.String propertyName,
                                 java.lang.String varValue)
Specified by:
setStringProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setPasswordProperty

protected void setPasswordProperty(java.lang.String objectName,
                                   java.lang.String propertyName,
                                   java.lang.String varValue)
Specified by:
setPasswordProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setCollectionOfStringsProperty

protected void setCollectionOfStringsProperty(java.lang.String objectName,
                                              java.lang.String propertyName,
                                              java.util.Collection<?> varValue)
Specified by:
setCollectionOfStringsProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setCiReferenceProperty

protected void setCiReferenceProperty(java.lang.String objectName,
                                      java.lang.String propertyName,
                                      com.xebialabs.deployit.plugin.api.udm.ConfigurationItem varValue)
Specified by:
setCiReferenceProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setCollectionOfCiReferencesProperty

protected void setCollectionOfCiReferencesProperty(java.lang.String objectName,
                                                   java.lang.String propertyName,
                                                   java.util.Collection<com.xebialabs.deployit.plugin.api.udm.ConfigurationItem> varValue)
Specified by:
setCollectionOfCiReferencesProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

setMapOfStringToStringReferencesProperty

protected void setMapOfStringToStringReferencesProperty(java.lang.String objectName,
                                                        java.lang.String propertyName,
                                                        java.util.Map<java.lang.String,java.lang.String> varValue)
Specified by:
setMapOfStringToStringReferencesProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

createObjectAndSetObjectProperty

protected void createObjectAndSetObjectProperty(java.lang.String objectName,
                                                java.lang.String propertyName)
Specified by:
createObjectAndSetObjectProperty in class com.xebialabs.deployit.plugin.remoting.vars.VarsConverter

toPythonString

public static java.lang.String toPythonString(java.lang.String str)