Package io.jenkins.plugins.casc.model
Class Scalar
java.lang.Object
io.jenkins.plugins.casc.model.Scalar
- All Implemented Interfaces:
- CNode,- CharSequence,- Cloneable
- Author:
- Nicolas De Loof
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface io.jenkins.plugins.casc.model.CNodeCNode.Type
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionasScalar()charcharAt(int index) chars()clone()encrypted(boolean encrypted) Indicates that the data is encrypted and hence safe to be exported.Indicate the source (file, line number) this specific configuration node comes from.getType()getValue()Gets value of the scalar for export.booleanisMasked()Check whether the scalar value should be masked in the output.booleanIndicates if the field should be included when describing even if emptybooleanisRaw()booleanintlength()sensitive(boolean sensitive) Sets the sensitive flag.voidsetPrintableWhenEmpty(boolean print) subSequence(int start, int end) toString()Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequenceisEmptyMethods inherited from interface io.jenkins.plugins.casc.model.CNodeasMapping, asSequence
- 
Constructor Details- 
Scalar
- 
Scalar
- 
Scalar
- 
Scalar
- 
Scalar
 
- 
- 
Method Details- 
getType
- 
getFormat
- 
isRawpublic boolean isRaw()
- 
asScalar
- 
getValueGets value of the scalar for export.- Returns:
- Value of the scalar if not isMasked(),SECRET_VALUE_STRINGotherwise. Encrypted sensitive data will be returned as is.
 
- 
isMaskedpublic boolean isMasked()Check whether the scalar value should be masked in the output.- Returns:
- trueif the value is masked
- Since:
- 1.25
 
- 
sensitiveSets the sensitive flag. It indicates that the scalar represents a sensitive argument (secret or other restricted data).- Parameters:
- sensitive- value to set
- Returns:
- Object instance
- Since:
- 1.25
 
- 
encryptedIndicates that the data is encrypted and hence safe to be exported.- Parameters:
- encrypted- Value to set
- Returns:
- Object instance
- Since:
- 1.25
 
- 
isSensitiveDatapublic boolean isSensitiveData()- Specified by:
- isSensitiveDatain interface- CNode
 
- 
toString- Specified by:
- toStringin interface- CharSequence
- Overrides:
- toStringin class- Object
 
- 
chars- Specified by:
- charsin interface- CharSequence
 
- 
codePoints- Specified by:
- codePointsin interface- CharSequence
 
- 
lengthpublic int length()- Specified by:
- lengthin interface- CharSequence
 
- 
charAtpublic char charAt(int index) - Specified by:
- charAtin interface- CharSequence
 
- 
subSequence- Specified by:
- subSequencein interface- CharSequence
 
- 
getSourceDescription copied from interface:CNodeIndicate the source (file, line number) this specific configuration node comes from. This is used to offer relevant diagnostic messages
- 
isPrintableWhenEmptypublic boolean isPrintableWhenEmpty()Description copied from interface:CNodeIndicates if the field should be included when describing even if empty- Specified by:
- isPrintableWhenEmptyin interface- CNode
- Returns:
- false by default
 
- 
setPrintableWhenEmptypublic void setPrintableWhenEmpty(boolean print) 
- 
clone
 
-