use of org.alien4cloud.tosca.model.definitions.constraints.LessOrEqualConstraint in project yorc-a4c-plugin by ystia.
the class AbstractLocationConfigurer method printProperties.
private void printProperties(Map<String, List<IMatchPropertyConstraint>> props) {
for (String kprop : props.keySet()) {
List<IMatchPropertyConstraint> lc = props.get(kprop);
for (IMatchPropertyConstraint mpc : lc) {
if (mpc instanceof LessOrEqualConstraint) {
LessOrEqualConstraint cons = (LessOrEqualConstraint) mpc;
log.debug(" " + kprop + " <= " + cons.getLessOrEqual());
} else if (mpc instanceof EqualConstraint) {
EqualConstraint cons = (EqualConstraint) mpc;
log.debug(" " + kprop + " == " + cons.getEqual());
} else if (mpc instanceof GreaterOrEqualConstraint) {
GreaterOrEqualConstraint cons = (GreaterOrEqualConstraint) mpc;
log.debug(" " + kprop + " >= " + cons.getGreaterOrEqual());
} else if (mpc instanceof GreaterThanConstraint) {
GreaterThanConstraint cons = (GreaterThanConstraint) mpc;
log.debug(" " + kprop + " > " + cons.getGreaterThan());
} else if (mpc instanceof LessThanConstraint) {
LessThanConstraint cons = (LessThanConstraint) mpc;
log.debug(" " + kprop + " < " + cons.getLessThan());
} else {
log.debug(" " + kprop + " " + mpc.toString());
}
}
}
}
Aggregations