LCOptionsXFAInterpreterImpl.java 28.3 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.forms.common.service.FormDataProviderRegistry
 *  com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$
 *  com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun
 *  com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$data
 *  com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$resolvedTemplate
 *  com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$template
 *  com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$userXCI
 *  org.apache.felix.scr.annotations.Component
 *  org.apache.felix.scr.annotations.Reference
 *  org.apache.felix.scr.annotations.Service
 *  scala.Function0
 *  scala.Option
 *  scala.Predef
 *  scala.Predef$
 *  scala.ScalaObject
 *  scala.Some
 *  scala.collection.immutable.StringOps
 *  scala.collection.mutable.ArrayOps
 *  scala.reflect.ScalaSignature
 *  scala.runtime.AbstractFunction0
 *  scala.runtime.BoxesRunTime
 */
package com.adobe.forms.service.impl;

import com.adobe.forms.common.service.FormDataProviderRegistry;
import com.adobe.forms.logging.PerfLogger$;
import com.adobe.forms.model.XFAData;
import com.adobe.forms.model.XFATemplate;
import com.adobe.forms.option.LCFormsOptions;
import com.adobe.forms.rm.Resource;
import com.adobe.forms.service.impl.LCOptionsXFAInterpreter;
import com.adobe.forms.service.impl.LCOptionsXFAInterpreter$;
import com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl;
import com.adobe.forms.transformer.XFADomTransformer;
import com.adobe.forms.xtg.TemplateResolver;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;
import scala.Function0;
import scala.Option;
import scala.Predef;
import scala.ScalaObject;
import scala.Some;
import scala.collection.immutable.StringOps;
import scala.collection.mutable.ArrayOps;
import scala.reflect.ScalaSignature;
import scala.runtime.AbstractFunction0;
import scala.runtime.BoxesRunTime;

@Component(immediate=1)
@Service(value={LCOptionsXFAInterpreter.class})
@ScalaSignature(bytes="\u0006\u0001\u0005-c\u0001B\u0001\u0003\u00015\u00111\u0004T\"PaRLwN\\:Y\r\u0006Ke\u000e^3saJ,G/\u001a:J[Bd'BA\u0002\u0005\u0003\u0011IW\u000e\u001d7\u000b\u0005\u00151\u0011aB:feZL7-\u001a\u0006\u0003\u000f!\tQAZ8s[NT!!\u0003\u0006\u0002\u000b\u0005$wNY3\u000b\u0003-\t1aY8n\u0007\u0001\u0019B\u0001\u0001\b\u00175A\u0011q\u0002F\u0007\u0002!)\u0011\u0011CE\u0001\u0005Y\u0006twMC\u0001\u0014\u0003\u0011Q\u0017M^1\n\u0005U\u0001\"AB(cU\u0016\u001cG\u000f\u0005\u0002\u001815\t!!\u0003\u0002\u001a\u0005\t9BjQ(qi&|gn\u001d-G\u0003&sG/\u001a:qe\u0016$XM\u001d\t\u00037yi\u0011\u0001\b\u0006\u0002;\u0005)1oY1mC&\u0011q\u0004\b\u0002\f'\u000e\fG.Y(cU\u0016\u001cG\u000fC\u0003\"\u0001\u0011\u0005!%\u0001\u0004=S:LGO\u0010\u000b\u0002GA\u0011q\u0003\u0001\u0005\bK\u0001\u0001\r\u0011\"\u0001'\u0003AAh-\u0019#p[R\u0013\u0018M\u001c4pe6,'/F\u0001(!\tA3&D\u0001*\u0015\tQc!A\u0006ue\u0006t7OZ8s[\u0016\u0014\u0018B\u0001\u0017*\u0005EAf)\u0011#p[R\u0013\u0018M\\:g_JlWM\u001d\u0005\b]\u0001\u0001\r\u0011\"\u00010\u0003QAh-\u0019#p[R\u0013\u0018M\u001c4pe6,'o\u0018\u0013fcR\u0011\u0001g\r\t\u00037EJ!A\r\u000f\u0003\tUs\u0017\u000e\u001e\u0005\bi5\n\t\u00111\u0001(\u0003\rAH%\r\u0005\u0007m\u0001\u0001\u000b\u0015B\u0014\u0002#a4\u0017\rR8n)J\fgNZ8s[\u0016\u0014\b\u0005\u000b\u00026qA\u0011\u0011\bR\u0007\u0002u)\u00111\bP\u0001\fC:tw\u000e^1uS>t7O\u0003\u0002>}\u0005\u00191o\u0019:\u000b\u0005}\u0002\u0015!\u00024fY&D(BA!C\u0003\u0019\t\u0007/Y2iK*\t1)A\u0002pe\u001eL!!\u0012\u001e\u0003\u0013I+g-\u001a:f]\u000e,\u0007bB$\u0001\u0001\u0004%\t\u0001S\u0001\u0011i\u0016l\u0007\u000f\\1uKJ+7o\u001c7wKJ,\u0012!\u0013\t\u0003\u00156k\u0011a\u0013\u0006\u0003\u0019\u001a\t1\u0001\u001f;h\u0013\tq5J\u0001\tUK6\u0004H.\u0019;f%\u0016\u001cx\u000e\u001c<fe\"9\u0001\u000b\u0001a\u0001\n\u0003\t\u0016\u0001\u0006;f[Bd\u0017\r^3SKN|GN^3s?\u0012*\u0017\u000f\u0006\u00021%\"9AgTA\u0001\u0002\u0004I\u0005B\u0002+\u0001A\u0003&\u0011*A\tuK6\u0004H.\u0019;f%\u0016\u001cx\u000e\u001c<fe\u0002B#a\u0015\u001d\t\u000f]\u0003\u0001\u0019!C\u00011\u0006Abm\u001c:n\t\u0006$\u0018\r\u0015:pm&$WM\u001d*fO&\u001cHO]=\u0016\u0003e\u0003\"A\u00170\u000e\u0003mS!!\u0002/\u000b\u0005u3\u0011AB2p[6|g.\u0003\u0002`7\nAbi\u001c:n\t\u0006$\u0018\r\u0015:pm&$WM\u001d*fO&\u001cHO]=\t\u000f\u0005\u0004\u0001\u0019!C\u0001E\u0006abm\u001c:n\t\u0006$\u0018\r\u0015:pm&$WM\u001d*fO&\u001cHO]=`I\u0015\fHC\u0001\u0019d\u0011\u001d!\u0004-!AA\u0002eCa!\u001a\u0001!B\u0013I\u0016!\u00074pe6$\u0015\r^1Qe>4\u0018\u000eZ3s%\u0016<\u0017n\u001d;ss\u0002B#\u0001\u001a\u001d\t\u000b!\u0004A\u0011A5\u0002\u0011Q,W\u000e\u001d7bi\u0016$\"A\u001b9\u0011\u0005-tW\"\u00017\u000b\u000554\u0011!B7pI\u0016d\u0017BA8m\u0005-Af)\u0011+f[Bd\u0017\r^3\t\u000bE<\u0007\u0019\u0001:\u0002\u000f=\u0004H/[8ogB\u00111O^\u0007\u0002i*\u0011QOB\u0001\u0007_B$\u0018n\u001c8\n\u0005]$(A\u0004'D\r>\u0014Xn](qi&|gn\u001d\u0005\u0006s\u0002!\tA_\u0001\u0005I\u0006$\u0018\r\u0006\u0002|}B\u00111\u000e`\u0005\u0003{2\u0014q\u0001\u0017$B\t\u0006$\u0018\rC\u0003rq\u0002\u0007!\u000fC\u0004\u0002\u0002\u0001!\t!a\u0001\u0002\u000fU\u001cXM\u001d-D\u0013R!\u0011QAA\t!\u0011\t9!!\u0004\u000e\u0005\u0005%!bAA\u0006\r\u0005\u0011!/\\\u0005\u0005\u0003\u001f\tIA\u0001\u0005SKN|WO]2f\u0011\u0015\tx\u00101\u0001s\u0011\u001d\t)\u0002\u0001C\u0001\u0003/\t\u0001C]3t_24X\r\u001a+f[Bd\u0017\r^3\u0015\u0007)\fI\u0002\u0003\u0004r\u0003'\u0001\rA\u001d\u0005\b\u0003;\u0001A\u0011AA\u0010\u00039I7/\u00138uKJlW\rZ5bi\u0016$B!!\t\u0002(A\u00191$a\t\n\u0007\u0005\u0015BDA\u0004C_>dW-\u00198\t\rE\fY\u00021\u0001s\u0011\u001d\tY\u0003\u0001C\u0001\u0003[\ta\"^:f%\u0016tG-\u001a:DC\u000eDW\r\u0006\u0003\u0002\"\u0005=\u0002BB9\u0002*\u0001\u0007!\u000fK\u0004\u0001\u0003g\tI$a\u000f\u0011\u0007e\n)$C\u0002\u00028i\u0012qaU3sm&\u001cW-A\u0003wC2,X\r\f\u0002\u0002>\r\na\u0003K\u0004\u0001\u0003\u0003\n9%!\u0013\u0011\u0007e\n\u0019%C\u0002\u0002Fi\u0012\u0011bQ8na>tWM\u001c;\u0002\u0013%lW.\u001a3jCR,\u0017$A\u0001")
public class LCOptionsXFAInterpreterImpl
implements LCOptionsXFAInterpreter,
ScalaObject {
    @Reference
    private XFADomTransformer xfaDomTranformer = null;
    @Reference
    private TemplateResolver templateResolver = null;
    @Reference
    private FormDataProviderRegistry formDataProviderRegistry = null;

    public XFADomTransformer xfaDomTranformer() {
        return this.xfaDomTranformer;
    }

    public void xfaDomTranformer_$eq(XFADomTransformer xFADomTransformer) {
        this.xfaDomTranformer = xFADomTransformer;
    }

    public TemplateResolver templateResolver() {
        return this.templateResolver;
    }

    public void templateResolver_$eq(TemplateResolver templateResolver) {
        this.templateResolver = templateResolver;
    }

    public FormDataProviderRegistry formDataProviderRegistry() {
        return this.formDataProviderRegistry;
    }

    public void formDataProviderRegistry_$eq(FormDataProviderRegistry formDataProviderRegistry) {
        this.formDataProviderRegistry = formDataProviderRegistry;
    }

    public XFATemplate template(LCFormsOptions options$1) {
        return (XFATemplate)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
            public static final long serialVersionUID;

            public static {
                long l = .anonfun.template.serialVersionUID = 0;
            }

            public final String apply() {
                return "LCOptionsXFAInterpreterImpl.template";
            }
        }, new scala.Serializable(this, options$1){
            public static final long serialVersionUID;
            public final LCFormsOptions options$1;

            public static {
                long l = .anonfun.template.serialVersionUID = 0;
            }

            /*
             * Enabled force condition propagation
             * Lifted jumps to return sites
             */
            public final XFATemplate apply() {
                XFATemplate template2;
                XFATemplate xFATemplate;
                com.adobe.forms.option.TemplateObj templateObj = this.options$1.getTemplateObj();
                com.adobe.forms.option.TemplateObj templateObj2 = templateObj;
                if (templateObj2 == null) {
                    Option<String> option = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getTemplate());
                    if (option instanceof Some) {
                        String string;
                        Some some = (Some)option;
                        String templateName$1 = string = (String)some.x();
                        xFATemplate = (XFATemplate)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
                            public static final long serialVersionUID;

                            public static {
                                long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$template$2$$anonfun$1.serialVersionUID = 0;
                            }

                            public final String apply() {
                                return "LCOptionsXFAInterpreterImpl.templateName";
                            }
                        }, new scala.Serializable(this, templateName$1){
                            public static final long serialVersionUID;
                            private final .anonfun.template $outer;
                            private final String templateName$1;

                            public static {
                                long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$template$2$$anonfun$2.serialVersionUID = 0;
                            }

                            public final XFATemplate apply() {
                                Option<String> contentRoot = LCOptionsXFAInterpreter$.MODULE$.optionize(this.$outer.options$1.getContentRoot());
                                return com.adobe.forms.model.XFATemplate$.MODULE$.apply(com.adobe.forms.rm.Resource$.MODULE$.apply(this.templateName$1, contentRoot, com.adobe.forms.rm.Resource$.MODULE$.apply$default$3()), LCOptionsXFAInterpreter$.MODULE$.lcFormOptions2FormContext(this.$outer.options$1));
                            }
                        });
                    } else {
                        String string;
                        String templateString$1;
                        Some some;
                        Option<String> option2 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$1.getTemplateBytes());
                        xFATemplate = option2 instanceof Some && this.gd1$1(templateString$1 = (string = (String)(some = (Some)option2).x())) ? (XFATemplate)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
                            public static final long serialVersionUID;

                            public static {
                                long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$template$2$$anonfun$3.serialVersionUID = 0;
                            }

                            public final String apply() {
                                return "LCOptionsXFAInterpreterImpl.templateBytes";
                            }
                        }, new scala.Serializable(this, templateString$1){
                            public static final long serialVersionUID;
                            private final .anonfun.template $outer;
                            private final String templateString$1;

                            public static {
                                long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$template$2$$anonfun$4.serialVersionUID = 0;
                            }

                            public final XFATemplate apply() {
                                return com.adobe.forms.model.XFATemplate$.MODULE$.apply(com.adobe.forms.rm.Resource$.MODULE$.apply(this.templateString$1.getBytes(com.adobe.forms.model.ParameterStr$.MODULE$.Utf8()), com.adobe.forms.rm.Resource$.MODULE$.apply$default$2(), com.adobe.forms.rm.Resource$.MODULE$.apply$default$3()), LCOptionsXFAInterpreter$.MODULE$.lcFormOptions2FormContext(this.$outer.options$1));
                            }
                        }) : com.adobe.forms.model.XFATemplate$.MODULE$.apply();
                    }
                } else {
                    com.adobe.forms.option.TemplateObj to$1 = templateObj2;
                    xFATemplate = (XFATemplate)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
                        public static final long serialVersionUID;

                        public static {
                            long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$template$2$$anonfun$5.serialVersionUID = 0;
                        }

                        public final String apply() {
                            return "LCOptionsXFAInterpreterImpl.templateObj";
                        }
                    }, new scala.Serializable(this, to$1){
                        public static final long serialVersionUID;
                        private final .anonfun.template $outer;
                        private final com.adobe.forms.option.TemplateObj to$1;

                        public static {
                            long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$template$2$$anonfun$6.serialVersionUID = 0;
                        }

                        public final XFATemplate apply() {
                            this.$outer.options$1.setTemplate(this.to$1.toString());
                            return com.adobe.forms.model.XFATemplate$.MODULE$.apply(this.to$1);
                        }
                    });
                }
                XFATemplate xFATemplate2 = template2 = xFATemplate;
                XFATemplate xFATemplate3 = com.adobe.forms.model.XFATemplate$.MODULE$.apply();
                if (xFATemplate2 == null) {
                    if (xFATemplate3 == null) throw com.adobe.forms.service.impl.InvalidTemplateError$.MODULE$.apply();
                    return template2;
                } else {
                    if (!xFATemplate2.equals(xFATemplate3)) return template2;
                    throw com.adobe.forms.service.impl.InvalidTemplateError$.MODULE$.apply();
                }
            }

            private final boolean gd1$1(String string) {
                return !string.isEmpty();
            }
        });
    }

    public XFAData data(LCFormsOptions options$2) {
        return (XFAData)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
            public static final long serialVersionUID;

            public static {
                long l = .anonfun.data.serialVersionUID = 0;
            }

            public final String apply() {
                return "LCOptionsXFAInterpreterImpl.data";
            }
        }, new scala.Serializable(this, options$2){
            public static final long serialVersionUID;
            private final LCOptionsXFAInterpreterImpl $outer;
            public final LCFormsOptions options$2;

            public static {
                long l = .anonfun.data.serialVersionUID = 0;
            }

            public final XFAData apply() {
                Resource resource;
                XFAData xFAData;
                Option<String> option = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$2.getData());
                if (option instanceof Some) {
                    String string;
                    Some some = (Some)option;
                    String dataString$1 = string = (String)some.x();
                    resource = (Resource)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
                        public static final long serialVersionUID;

                        public static {
                            long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$data$2$$anonfun$7.serialVersionUID = 0;
                        }

                        public final String apply() {
                            return "LCOptionsXFAInterpreterImpl.dataBytes";
                        }
                    }, new scala.Serializable(this, dataString$1){
                        public static final long serialVersionUID;
                        private final String dataString$1;

                        public static {
                            long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$data$2$$anonfun$8.serialVersionUID = 0;
                        }

                        public final Resource apply() {
                            return com.adobe.forms.rm.Resource$.MODULE$.apply(this.dataString$1.getBytes(com.adobe.forms.model.ParameterStr$.MODULE$.Utf8()), com.adobe.forms.rm.Resource$.MODULE$.apply$default$2(), com.adobe.forms.rm.Resource$.MODULE$.apply$default$3());
                        }
                    });
                } else {
                    Option<String> option2 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$2.getDataRef());
                    if (option2 instanceof Some) {
                        String string;
                        Some some = (Some)option2;
                        String dataRefPath$1 = string = (String)some.x();
                        resource = (Resource)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
                            public static final long serialVersionUID;

                            public static {
                                long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$data$2$$anonfun$9.serialVersionUID = 0;
                            }

                            public final String apply() {
                                return "LCOptionsXFAInterpreterImpl.dataRef";
                            }
                        }, new scala.Serializable(this, dataRefPath$1){
                            public static final long serialVersionUID;
                            private final .anonfun.data $outer;
                            private final String dataRefPath$1;

                            public static {
                                long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$data$2$$anonfun$10.serialVersionUID = 0;
                            }

                            public final com.adobe.forms.rm.impl.ServiceResource apply() {
                                com.adobe.forms.rm.impl.ServiceResource r = new com.adobe.forms.rm.impl.ServiceResource(this.dataRefPath$1, (Option<String>)scala.None$.MODULE$, (scala.collection.immutable.Map<String, Object>)((scala.collection.immutable.Map)Predef..MODULE$.Map().apply((scala.collection.Seq)scala.collection.immutable.Nil$.MODULE$)).$plus(Predef..MODULE$.any2ArrowAssoc((Object)"userData").$minus$greater((Object)new Some((Object)this.$outer.com$adobe$forms$service$impl$LCOptionsXFAInterpreterImpl$$anonfun$$$outer().formDataProviderRegistry()))));
                                this.$outer.options$2.setData(r.sourceAsString(com.adobe.forms.model.ParameterStr$.MODULE$.Utf8()));
                                return r;
                            }
                        });
                    } else {
                        resource = (Resource)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
                            public static final long serialVersionUID;

                            public static {
                                long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$data$2$$anonfun$11.serialVersionUID = 0;
                            }

                            public final String apply() {
                                return "LCOptionsXFAInterpreterImpl.noData";
                            }
                        }, new scala.Serializable(this){
                            public static final long serialVersionUID;

                            public static {
                                long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$data$2$$anonfun$12.serialVersionUID = 0;
                            }

                            public final Resource apply() {
                                return com.adobe.forms.rm.Resource$.MODULE$.apply();
                            }
                        });
                    }
                }
                Resource data2 = resource;
                Option<String> option3 = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$2.getFormDom());
                if (option3 instanceof Some) {
                    String string;
                    Some some = (Some)option3;
                    String formString = string = (String)some.x();
                    String formdom = this.$outer.xfaDomTranformer().toFormXMLString(formString, LCOptionsXFAInterpreter$.MODULE$.lcFormOptions2FormContext(this.options$2));
                    xFAData = new XFAData(com.adobe.forms.rm.Resource$.MODULE$.apply(new XFAData(data2, formdom.getBytes(com.adobe.forms.model.ParameterStr$.MODULE$.Utf8())).asModel(), com.adobe.forms.rm.Resource$.MODULE$.apply$default$2(), com.adobe.forms.rm.Resource$.MODULE$.apply$default$3()), com.adobe.forms.model.XFAData$.MODULE$.apply$default$2());
                } else {
                    xFAData = new XFAData(data2, com.adobe.forms.model.XFAData$.MODULE$.apply$default$2());
                }
                return xFAData;
            }

            public LCOptionsXFAInterpreterImpl com$adobe$forms$service$impl$LCOptionsXFAInterpreterImpl$$anonfun$$$outer() {
                return this.$outer;
            }
        });
    }

    public Resource userXCI(LCFormsOptions options$3) {
        return (Resource)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
            public static final long serialVersionUID;

            public static {
                long l = .anonfun.userXCI.serialVersionUID = 0;
            }

            public final String apply() {
                return "LCOptionsXFAInterpreterImpl.userXCI";
            }
        }, new scala.Serializable(this, options$3){
            public static final long serialVersionUID;
            private final LCFormsOptions options$3;

            public static {
                long l = .anonfun.userXCI.serialVersionUID = 0;
            }

            public final Resource apply() {
                Resource resource;
                Option<String> option = LCOptionsXFAInterpreter$.MODULE$.optionize(this.options$3.getXciBytes());
                if (option instanceof Some) {
                    String string;
                    Some some = (Some)option;
                    String xciString$1 = string = (String)some.x();
                    resource = (Resource)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
                        public static final long serialVersionUID;

                        public static {
                            long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$userXCI$2$$anonfun$apply$1.serialVersionUID = 0;
                        }

                        public final String apply() {
                            return "LCOptionsXFAInterpreterImpl.xciBytes";
                        }
                    }, new scala.Serializable(this, xciString$1){
                        public static final long serialVersionUID;
                        private final String xciString$1;

                        public static {
                            long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$userXCI$2$$anonfun$apply$2.serialVersionUID = 0;
                        }

                        public final Resource apply() {
                            return com.adobe.forms.rm.Resource$.MODULE$.apply(this.xciString$1.getBytes(com.adobe.forms.model.ParameterStr$.MODULE$.Utf8()), com.adobe.forms.rm.Resource$.MODULE$.apply$default$2(), com.adobe.forms.rm.Resource$.MODULE$.apply$default$3());
                        }
                    });
                } else {
                    resource = (Resource)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
                        public static final long serialVersionUID;

                        public static {
                            long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$userXCI$2$$anonfun$apply$3.serialVersionUID = 0;
                        }

                        public final String apply() {
                            return "LCOptionsXFAInterpreterImpl.noXCI";
                        }
                    }, new scala.Serializable(this){
                        public static final long serialVersionUID;

                        public static {
                            long l = com.adobe.forms.service.impl.LCOptionsXFAInterpreterImpl$$anonfun$userXCI$2$$anonfun$apply$4.serialVersionUID = 0;
                        }

                        public final Resource apply() {
                            return com.adobe.forms.rm.Resource$.MODULE$.apply();
                        }
                    });
                }
                return resource;
            }
        });
    }

    public XFATemplate resolvedTemplate(LCFormsOptions options$4) {
        return (XFATemplate)PerfLogger$.MODULE$.measure((Function0<Object>)new scala.Serializable(this){
            public static final long serialVersionUID;

            public static {
                long l = .anonfun.resolvedTemplate.serialVersionUID = 0;
            }

            public final String apply() {
                return "LCOptionsXFAInterpreterImpl.resolvedTemplate";
            }
        }, new scala.Serializable(this, options$4){
            public static final long serialVersionUID;
            private final LCOptionsXFAInterpreterImpl $outer;
            private final LCFormsOptions options$4;

            public static {
                long l = .anonfun.resolvedTemplate.serialVersionUID = 0;
            }

            public final XFATemplate apply() {
                XFATemplate resolvedTemplate2 = this.$outer.templateResolver().resolveTemplate(this.$outer.template(this.options$4), LCOptionsXFAInterpreter$.MODULE$.lcFormOptions2FormContext(this.options$4));
                if (resolvedTemplate2.size() <= 0) {
                    throw com.adobe.forms.service.impl.InvalidTemplateError$.MODULE$.apply();
                }
                return resolvedTemplate2;
            }
        });
    }

    public boolean isIntermediate(LCFormsOptions options) {
        String tty;
        String string;
        Some some;
        Option<String> option = LCOptionsXFAInterpreter$.MODULE$.optionize(options.getRenderType());
        return option instanceof Some ? (this.gd2$1(tty = (string = (String)(some = (Some)option).x())) ? Predef..MODULE$.refArrayOps((Object[])tty.split(".")).drop(1).equals("intermediate") : false) : false;
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public boolean useRenderCache(LCFormsOptions options) {
        String string = options.getUseRenderCache();
        if ("false" != null) {
            if (!"false".equals(string)) return true;
            return false;
        }
        if (string == null) return false;
        return true;
    }

    private final boolean gd2$1(String string) {
        return Predef..MODULE$.augmentString(string).contains((Object)BoxesRunTime.boxToCharacter((char)'.'));
    }

    protected void bindXfaDomTranformer(XFADomTransformer xFADomTransformer) {
        this.xfaDomTranformer = xFADomTransformer;
    }

    protected void unbindXfaDomTranformer(XFADomTransformer xFADomTransformer) {
        if (this.xfaDomTranformer == xFADomTransformer) {
            this.xfaDomTranformer = null;
        }
    }

    protected void bindTemplateResolver(TemplateResolver templateResolver) {
        this.templateResolver = templateResolver;
    }

    protected void unbindTemplateResolver(TemplateResolver templateResolver) {
        if (this.templateResolver == templateResolver) {
            this.templateResolver = null;
        }
    }

    protected void bindFormDataProviderRegistry(FormDataProviderRegistry formDataProviderRegistry) {
        this.formDataProviderRegistry = formDataProviderRegistry;
    }

    protected void unbindFormDataProviderRegistry(FormDataProviderRegistry formDataProviderRegistry) {
        if (this.formDataProviderRegistry == formDataProviderRegistry) {
            this.formDataProviderRegistry = null;
        }
    }
}