(MutableTypeConstraint) and );
}
container.addConstraint( and );
}
} else if ( constraint instanceof OrDescr ) {
OrConstraint or = new OrConstraint();
for ( Iterator it = ((OrDescr) constraint).getDescrs().iterator(); it.hasNext(); ) {
this.buildConstraint( context,
pattern,
it.next(),
or );
}
if ( container == null ) {
pattern.addConstraint( or );
} else {
if ( or.getType().equals( Constraint.ConstraintType.UNKNOWN ) ) {
this.setConstraintType( pattern,
(MutableTypeConstraint) or );
}
container.addConstraint( or );
}