Ejemplo n.º 1
0
 public SetOperation CreateSetOperation(SetOperatorEnumeration operation)
 {
     switch (operation)
     {
         case SetOperatorEnumeration.COMPLEMENT:
             return new ComplementSetOperation();
         case SetOperatorEnumeration.INTERSECTION:
             return new IntersectionSetOperation();
         case SetOperatorEnumeration.UNION:
             return new UnionSetOperation();
         default:
             throw new NotImplementedException(string.Format("There is no implementation for this OVAL entity operation: '{0}'",operation.ToString()));
     }
 }
Ejemplo n.º 2
0
        public SetOperation CreateSetOperation(SetOperatorEnumeration operation)
        {
            switch (operation)
            {
            case SetOperatorEnumeration.COMPLEMENT:
                return(new ComplementSetOperation());

            case SetOperatorEnumeration.INTERSECTION:
                return(new IntersectionSetOperation());

            case SetOperatorEnumeration.UNION:
                return(new UnionSetOperation());

            default:
                throw new NotImplementedException(string.Format("There is no implementation for this OVAL entity operation: '{0}'", operation.ToString()));
            }
        }
Ejemplo n.º 3
0
 private SetOperation GetOperation(SetOperatorEnumeration setOperator)
 {
     return(new SetOperationFactory().CreateSetOperation(setOperator));
 }
Ejemplo n.º 4
0
 private SetOperation GetOperation(SetOperatorEnumeration setOperator)
 {
     return new SetOperationFactory().CreateSetOperation(setOperator);
 }
Ejemplo n.º 5
0
 public set() {
     this.set_operatorField = SetOperatorEnumeration.UNION;
 }