Package org.apache.sis.feature
Class StringJoinOperation.Result
- All Implemented Interfaces:
Serializable
- Enclosing class:
- StringJoinOperation
The attributes that contains the result of concatenating the string representation of other attributes.
Value is calculated each time it is accessed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AbstractFeature
The feature specified to theStringJoinOperation.apply(AbstractFeature, ParameterValueGroup)
method.private static final long
For cross-version compatibility.Fields inherited from class org.apache.sis.feature.AbstractAttribute
type
-
Constructor Summary
ConstructorsConstructorDescriptionResult
(AbstractFeature feature) Creates a new attribute for the given feature. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Creates a string which is the concatenation of attribute values of all properties specified to theStringJoinOperation
constructor.void
Given a concatenated string as produced bygetValue()
, separates the components around the separator and forward the values to the original attributes.Methods inherited from class org.apache.sis.feature.AbstractAttribute
characteristics, characteristicsReadOnly, clone, create, create, getName, getType, getValues, quality, setValues, toString
Methods inherited from class org.apache.sis.feature.Field
isDeprecated, isSingleton
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
feature
The feature specified to theStringJoinOperation.apply(AbstractFeature, ParameterValueGroup)
method.
-
-
Constructor Details
-
Result
Result(AbstractFeature feature) Creates a new attribute for the given feature.
-
-
Method Details
-
getValue
Creates a string which is the concatenation of attribute values of all properties specified to theStringJoinOperation
constructor.- Specified by:
getValue
in classAbstractAttribute<String>
- Returns:
- the concatenated string.
- Throws:
UnconvertibleObjectException
- if one of the attribute values is not of the expected type.- See Also:
-
setValue
Given a concatenated string as produced bygetValue()
, separates the components around the separator and forward the values to the original attributes. If one of the values cannot be parsed, then this method does not store any property value ("all or nothing" behavior).- Specified by:
setValue
in classAbstractAttribute<String>
- Parameters:
value
- the concatenated string.- Throws:
IllegalArgumentException
- if one of the attribute values cannot be parsed to the expected type.- See Also:
-