private VariablesTypeVariableLocal_variable GetLocalVariableForRegexCaptureFunctionWithObjectComponent(string refValue, string itemFieldValue)
 {
     ObjectComponentType objectComponent = new ObjectComponentType() { object_ref = refValue, item_field = itemFieldValue };
     RegexCaptureFunctionType regexCaptureFunctionType = new RegexCaptureFunctionType() { pattern = ".", Item = objectComponent };
     VariablesTypeVariableLocal_variable localVariable = new VariablesTypeVariableLocal_variable() { Item = regexCaptureFunctionType };
     return localVariable;
 }
Esempio n. 2
0
        private LocalVariableComponent CreateRegexCaptureFunctionComponent(object component, VariableType localVariable)
        {
            RegexCaptureFunctionType      regexCaptureFunctionType      = (RegexCaptureFunctionType)component;
            RegexCaptureFunctionComponent regexCaptureFunctionComponent = new RegexCaptureFunctionComponent(regexCaptureFunctionType);
            LocalVariableComponent        variableComponent             = this.InstantiateTheCorrectTypeOfComponent(regexCaptureFunctionType.Item, localVariable);

            regexCaptureFunctionComponent.AddComponent(variableComponent);
            return(regexCaptureFunctionComponent);
        }
Esempio n. 3
0
        public void Should_be_possible_to_instantiate_an_RegexCaptureFunctionComponent()
        {
            var function = new RegexCaptureFunctionType()
            {
                Item = new LiteralComponentType()
            };
            var localVariable = new VariablesTypeVariableLocal_variable()
            {
                Item = function
            };

            var factory           = new LocalVariableComponentsFactory(null, null);
            var variableComponent = factory.GetLocalVariableComponent(localVariable);

            Assert.IsInstanceOfType(variableComponent, typeof(RegexCaptureFunctionComponent));
            Assert.IsTrue(((RegexCaptureFunctionComponent)variableComponent).QuantityOfComponents() == 1, "the quantity of component is not expected");
        }
Esempio n. 4
0
        private VariablesTypeVariableLocal_variable GetLocalVariableForRegexCaptureFunctionWithObjectComponent(string refValue, string itemFieldValue)
        {
            ObjectComponentType objectComponent = new ObjectComponentType()
            {
                object_ref = refValue, item_field = itemFieldValue
            };
            RegexCaptureFunctionType regexCaptureFunctionType = new RegexCaptureFunctionType()
            {
                pattern = ".", Item = objectComponent
            };
            VariablesTypeVariableLocal_variable localVariable = new VariablesTypeVariableLocal_variable()
            {
                Item = regexCaptureFunctionType
            };

            return(localVariable);
        }
Esempio n. 5
0
 public RegexCaptureFunctionComponent(RegexCaptureFunctionType component)
 {
     this.component = component;
 }
 public RegexCaptureFunctionComponent(RegexCaptureFunctionType component)
 {
     this.component = component;
 }
Esempio n. 7
0
 public OvalRegexCaptureBuilder(OvalLocalVariableBuilder lovalVariableBuilder)
 {
     this.regexCaptureFunction = new RegexCaptureFunctionType();
     this.variableBuilder      = lovalVariableBuilder;
 }