public class FeatureList extends java.lang.Object implements java.lang.Iterable<Feature>
FeatureContainer| Constructor and Description |
|---|
FeatureList(Feature... features)
Initializes this object with variable array of features.
|
FeatureList(java.util.List<Feature> features)
Initializes this object with a list of features.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<ClassAttributeAssignmentModel> |
getClassAttributeAssignments() |
java.util.Set<ClassificationClassModel> |
getClassificationClasses() |
Feature |
getFeatureByAssignment(ClassAttributeAssignmentModel assignment)
Gets the feature by assignment.
|
Feature |
getFeatureByCode(java.lang.String code)
Returns the (typed) feature assigned to the attribute with the given code, or null if there's no such feature.
|
Feature |
getFeatureByName(java.lang.String name)
Returns the feature with the given name of null if there's no such feature.
|
java.util.List<Feature> |
getFeatures()
Returns the list of features.
|
boolean |
hasUntypedFeatures() |
boolean |
isEmpty() |
java.util.Iterator<Feature> |
iterator() |
public FeatureList(java.util.List<Feature> features)
features - the list of featuresjava.lang.IllegalArgumentException - if the list is nullpublic FeatureList(Feature... features)
features - the list of featuresjava.lang.IllegalArgumentException - if the list is nullpublic java.util.List<Feature> getFeatures()
public boolean isEmpty()
true if this feature list contains no features at all.public Feature getFeatureByName(java.lang.String name)
name - the of the feature to look upjava.lang.IllegalArgumentException - if the name is nullpublic Feature getFeatureByAssignment(ClassAttributeAssignmentModel assignment)
assignment - the assignmentpublic Feature getFeatureByCode(java.lang.String code)
code - the code of the attribute the feature is assigned tojava.lang.IllegalArgumentException - if the code is nullpublic java.util.Iterator<Feature> iterator()
iterator in interface java.lang.Iterable<Feature>public java.util.Set<ClassificationClassModel> getClassificationClasses()
HashSet with ClassificationClassModels.public java.util.Set<ClassAttributeAssignmentModel> getClassAttributeAssignments()
HashSet with ClassAttributeAssignmentModels.public boolean hasUntypedFeatures()
true if this feature list contains any untyped feature.Copyright © 2018 SAP SE. All Rights Reserved.