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())); } }
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())); } }
private SetOperation GetOperation(SetOperatorEnumeration setOperator) { return(new SetOperationFactory().CreateSetOperation(setOperator)); }
private SetOperation GetOperation(SetOperatorEnumeration setOperator) { return new SetOperationFactory().CreateSetOperation(setOperator); }
public set() { this.set_operatorField = SetOperatorEnumeration.UNION; }