Class CREnvironmentVariable
java.lang.Object
com.thoughtworks.go.plugin.configrepo.contract.CRBase
com.thoughtworks.go.plugin.configrepo.contract.CREnvironmentVariable
- All Implemented Interfaces:
Locatable
public class CREnvironmentVariable extends CRBase
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CREnvironmentVariable()CREnvironmentVariable(java.lang.String name)CREnvironmentVariable(java.lang.String key, java.lang.String value)CREnvironmentVariable(java.lang.String name, java.lang.String value, java.lang.String encryptedValue) -
Method Summary
Modifier and Type Method Description voidgetErrors(ErrorCollection errors, java.lang.String parentLocation)java.lang.StringgetLocation(java.lang.String parent)booleanhasEncryptedValue()booleanhasValue()java.lang.StringtoString()java.lang.StringvalidateNameUniqueness(java.util.HashSet<java.lang.String> keys)Methods inherited from class com.thoughtworks.go.plugin.configrepo.contract.CRBase
getErrors, getLocation, setLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
CREnvironmentVariable
public CREnvironmentVariable() -
CREnvironmentVariable
public CREnvironmentVariable(java.lang.String name) -
CREnvironmentVariable
public CREnvironmentVariable(java.lang.String key, java.lang.String value) -
CREnvironmentVariable
public CREnvironmentVariable(java.lang.String name, java.lang.String value, java.lang.String encryptedValue)
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
validateNameUniqueness
public java.lang.String validateNameUniqueness(java.util.HashSet<java.lang.String> keys) -
getErrors
-
getLocation
public java.lang.String getLocation(java.lang.String parent) -
hasEncryptedValue
public boolean hasEncryptedValue() -
hasValue
public boolean hasValue()
-