コード例 #1
0
        public IActivityBuilder Get(ActivityType activityType)
        {
            var jdbcQueryBuilderUtils = new JdbcQueryBuilderUtils();
            var xslBuilder = new XslBuilder(new XpathBuilder());
            var jdbcQueryActivityBuilder = new JdbcQueryActivityBuilder(new DataAccessBuilder(jdbcQueryBuilderUtils), new DataAccessServiceBuilder(jdbcQueryBuilderUtils), new DataAccessInterfacesCommonBuilder(), xslBuilder);
            if (activityType == ActivityType.jdbcQueryActivityType || activityType == ActivityType.jdbcCallActivityType || activityType == ActivityType.jdbcUpdateActivityType)
            {
                return jdbcQueryActivityBuilder;
            }
            if (activityType == ActivityType.assignActivityType)
            {
                return new AssignActivityBuilder(xslBuilder);
            }

            if (activityType == ActivityType.xmlParseActivityType)
            {
                return new XmlParseActivityBuilder(xslBuilder, new XmlParserHelperBuilder());
            }

            if (activityType == ActivityType.mapperActivityType)
            {
                return new MapperActivityBuilder(xslBuilder);
            }

            if (activityType == ActivityType.nullActivityType)
            {
                return new NullActivityBuilder(xslBuilder);
            }

            if (activityType == ActivityType.javaActivityType)
            {
                return new JavaActivityBuilder(xslBuilder);
            }

            if (activityType == ActivityType.writeToLogActivityType)
            {
                return new WriteToLogActivityBuilder(xslBuilder);
            }

            if (activityType == ActivityType.generateErrorActivity)
            {
                return new GenerateErrorActivityBuilder(xslBuilder);
            }

            if (activityType == ActivityType.groupActivityType)
            {
                return new GroupActivityBuilder(xslBuilder);
            }

            return new DefaultActivityBuilder(xslBuilder);
        }
コード例 #2
0
ファイル: XslBuilderTest.cs プロジェクト: swoog/EaiConverter
 public void SetUp()
 {
     xslBuilder = new XslBuilder (new XpathBuilder());
 }
コード例 #3
0
 public JavaActivityBuilder(XslBuilder xslBuilder)
 {
     this.xslBuilder = xslBuilder;
 }
コード例 #4
0
 public GenerateErrorActivityBuilder(XslBuilder xslBuilder)
 {
     this.xslBuilder = xslBuilder;
 }
コード例 #5
0
 public CallProcessActivityBuilder(XslBuilder xslBuilder)
 {
     this.xslBuilder = xslBuilder;
 }
コード例 #6
0
 public WriteToLogActivityBuilder(XslBuilder xslBuilder)
 {
     this.xslBuilder = xslBuilder;
 }
コード例 #7
0
 public AssignActivityBuilder(XslBuilder xslBuilder)
 {
     this.xslBuilder = xslBuilder;
 }
コード例 #8
0
 public GroupActivityBuilder(XslBuilder xslBuilder)
 {
     this.xslBuilder = xslBuilder;
     this.coreProcessBuilder = new CoreProcessBuilder();
 }
コード例 #9
0
 public MapperActivityBuilder(XslBuilder xslBuilder)
 {
     this.xslBuilder = xslBuilder;
 }
コード例 #10
0
 public DefaultActivityBuilder(XslBuilder xslbuilder)
 {
 }
コード例 #11
0
 public NullActivityBuilder(XslBuilder xslbuilder)
 {
 }