if (cf==null) {
cf = constraintModel.getCFRelation(feature , cc , false);
}
sCustomization.add(super.convertCustomization(cv.getFinalCustomizationById(feature.getID()) , cf));
}
Customization lValue = Customization.Undecided;
if (cc.getSourceType().getName().equals(CompositeConstraintPortType.Single.getName())) {
if (super.getCustomizationCount(sCustomization , Customization.Undecided)>0) {
lValue = Customization.Undecided;
} else if (super.getCustomizationCount(sCustomization , Customization.Selected)==1) {
lValue = Customization.Selected;
} else {
lValue = Customization.Unselected;
}
} else if (cc.getSourceType().getName().equals(CompositeConstraintPortType.All.getName())) {
if (super.getCustomizationCount(sCustomization , Customization.Undecided)>0) {
lValue = Customization.Undecided;
} else if (super.getCustomizationCount(sCustomization , Customization.Unselected)==0) {
lValue = Customization.Selected;
} else {
lValue = Customization.Unselected;
}
} else /*if (gc.getType().getName().equals(GroupConstraintType.SingleGroup))*/ {
if (super.getCustomizationCount(sCustomization , Customization.Selected)>0) {
lValue = Customization.Selected;
} else if (super.getCustomizationCount(sCustomization , Customization.Undecided)>0) {
lValue = Customization.Undecided;
} else {
lValue = Customization.Unselected;
}
}
sCustomization = new ArrayList<Customization>();
for (Iterator<Feature> itFeature=cc.getSinkFeatureSet().iterator() ; itFeature.hasNext() ; ) {
Feature feature = itFeature.next();
CFRelation cf = constraintModel.getCFRelation(feature , cc , true);
if (cf==null) {
cf = constraintModel.getCFRelation(feature , cc , false);
}
sCustomization.add(super.convertCustomization(cv.getFinalCustomizationById(feature.getID()) , cf));
}
Customization rValue = Customization.Undecided;
if (cc.getSinkType().getName().equals(CompositeConstraintPortType.Single.getName())) {
if (super.getCustomizationCount(sCustomization , Customization.Undecided)>0) {
rValue = Customization.Undecided;
} else if (super.getCustomizationCount(sCustomization , Customization.Selected)==1) {
rValue = Customization.Selected;