Class TemplateReferenceExtractor.ColumnReferenceOrConstantValue
java.lang.Object
com.i2group.disco.infostore.importer.TemplateReferenceExtractor.ColumnReferenceOrConstantValue
- Enclosing class:
- TemplateReferenceExtractor
A descriptor of whether a string in a template is a constant value (in which case it requires
no further processing), or a reference to a value in a column (in which case it should be
substituted for the value).
In any instance, one of getColumnName()
and getValue()
returns a value,
while the other returns null.
- Since:
- 9.0
-
Method Summary
Modifier and TypeMethodDescriptionGets aString
that contains the column reference, or null if thisTemplateReferenceExtractor.ColumnReferenceOrConstantValue
is a constant value.getValue()
Gets aString
that contains the constant value, or null if thisTemplateReferenceExtractor.ColumnReferenceOrConstantValue
is a column reference.boolean
Indicates whether thisTemplateReferenceExtractor.ColumnReferenceOrConstantValue
is a column reference or a constant value.
-
Method Details
-
getColumnName
Gets aString
that contains the column reference, or null if thisTemplateReferenceExtractor.ColumnReferenceOrConstantValue
is a constant value.- Returns:
- See above.
-
getValue
Gets aString
that contains the constant value, or null if thisTemplateReferenceExtractor.ColumnReferenceOrConstantValue
is a column reference.- Returns:
- See above.
-
isConstantValue
public boolean isConstantValue()Indicates whether thisTemplateReferenceExtractor.ColumnReferenceOrConstantValue
is a column reference or a constant value.- Returns:
true
if thisTemplateReferenceExtractor.ColumnReferenceOrConstantValue
is a constant value;false
otherwise.
-