public class UnlocalizedFeature extends Feature
FeatureValues and along with its ClassAttributeAssignmentModel if any.assignment, code, name| Constructor and Description |
|---|
UnlocalizedFeature(ClassAttributeAssignmentModel assignment,
FeatureValue... values)
Instantiates a new unlocalized typed feature.
|
UnlocalizedFeature(ClassAttributeAssignmentModel assignment,
java.util.List<FeatureValue> values)
Instantiates a new unlocalized typed feature.
|
UnlocalizedFeature(java.lang.String code,
FeatureValue... values)
Instantiates a new unlocalized untyped feature.
|
UnlocalizedFeature(java.lang.String code,
java.util.List<FeatureValue> values)
Instantiates a new unlocalized untyped feature.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(FeatureValue fvalue)
Add to this feature a
FeatureValue |
void |
addValue(int index,
FeatureValue fvalue)
Inserts the
FeatureValueat the specified index position in this list (optional operation). |
FeatureValue |
getValue()
Convenience method to return a single value.
|
java.util.List<FeatureValue> |
getValues()
Returns the list of feature values.
|
void |
removeAllValues()
Remove all containing
FeatureValues from the current feature. |
boolean |
removeValue(FeatureValue fvalue)
Removes the first occurrence of the given
FeatureValue from the feature, if it is present (optional
operation). |
void |
setValues(java.util.List<FeatureValue> fvalues)
Clears always all
FeatureValue of this Feature and add the given List with FeatureValues to this Feature. |
getClassAttributeAssignment, getCode, getName, toStringpublic UnlocalizedFeature(ClassAttributeAssignmentModel assignment, java.util.List<FeatureValue> values)
assignment - the assignmentvalues - the valuespublic UnlocalizedFeature(ClassAttributeAssignmentModel assignment, FeatureValue... values)
assignment - the assignmentvalues - the valuespublic UnlocalizedFeature(java.lang.String code,
java.util.List<FeatureValue> values)
code - the codevalues - the valuespublic UnlocalizedFeature(java.lang.String code,
FeatureValue... values)
code - the codevalues - the valuespublic java.util.List<FeatureValue> getValues()
Featurepublic FeatureValue getValue()
Featurepublic void addValue(FeatureValue fvalue)
FeatureFeatureValuepublic void addValue(int index,
FeatureValue fvalue)
FeatureFeatureValueat the specified index position in this list (optional operation). Shifts the
element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).public boolean removeValue(FeatureValue fvalue)
FeatureFeatureValue from the feature, if it is present (optional
operation). If this UnlocalizedFeature does not contain this FeatureValue, it is unchanged. More
formally, removes the element with the lowest index i such that
(o==null ? get(i)==null : o.equals(get(i))) (if such an element exists). Returns
true if the feature contained the specified feature value.removeValue in class Featurefvalue - the FeatureValue to be removedpublic void removeAllValues()
FeatureFeatureValues from the current feature.removeAllValues in class Featurepublic void setValues(java.util.List<FeatureValue> fvalues)
FeatureFeatureValue of this Feature and add the given List with FeatureValues to this Feature.
If the parameter is null the internal FeatureValue List will only be cleared (same behaviour as
Feature.removeAllValues()Copyright © 2018 SAP SE. All Rights Reserved.