File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import de .vill .model .Attribute ;
44import de .vill .model .Feature ;
55import de .vill .model .FeatureModel ;
6- import de .vill .model .FeatureType ;
76import de .vill .model .Group ;
87import de .vill .model .LanguageLevel ;
98import de .vill .model .constraint .Constraint ;
Original file line number Diff line number Diff line change @@ -29,15 +29,15 @@ public static void main(String[] args) throws IOException {
2929 traverseConstraint (ownConstraint .get (0 ));
3030 }
3131
32- //get all constraints of feature model and submodels and attribtues
32+ //get all constraints of feature model and submodels and attributes
3333 List <Constraint > allConstraint = featureModel .getConstraints ();
3434
3535 //get attribute from feature
3636 String featureName = "featureName" ;
3737 String attributeName = "attributeName" ;
3838 Feature feature = featureModel .getFeatureMap ().get (featureName );
3939 if (feature != null ) {
40- Attribute attribute = feature .getAttributes ().get (attributeName );
40+ Attribute <?> attribute = feature .getAttributes ().get (attributeName );
4141 if (attribute != null ) {
4242 Object value = attribute .getValue ();
4343 System .out .println ("Attribute " + attributeName + " of feature " + featureName + " is: " + value .toString ());
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public String getFeatureName() {
4848 return this .featureName ;
4949 }
5050
51- public Attribute getAttribute () {
51+ public Attribute <?> getAttribute () {
5252 if (this .feature == null ) {
5353 return null ;
5454 }
Original file line number Diff line number Diff line change 11package de .vill .model .expression ;
22
33import de .vill .util .Constants ;
4- import java .util .Arrays ;
54import java .util .Collections ;
65import java .util .List ;
76
Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .BeforeEach ;
44import org .junit .jupiter .api .Test ;
55
6- import de .vill .model .Group ;
76import de .vill .model .Group .GroupType ;
87
98import java .util .LinkedList ;
You can’t perform that action at this time.
0 commit comments