ModelPeer.java
846 Bytes
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa;
import com.adobe.xfa.Element;
import com.adobe.xfa.Model;
import com.adobe.xfa.Node;
import com.adobe.xfa.XFA;
import org.xml.sax.Attributes;
public class ModelPeer
extends Element {
public ModelPeer(Element parent, Node prevSibling, String uri, String localName, String qName, Attributes attributes, Element xfaPeer) {
super(parent, prevSibling, uri, localName, qName, attributes, XFA.INVALID_ELEMENT, "");
this.setModel(xfaPeer.getModel());
this.setDocument(xfaPeer.getOwnerDocument());
this.setXfaPeer(xfaPeer);
}
@Override
public Node getFirstXMLChild() {
if (this.getXfaPeer() instanceof Model.DualDomModel) {
return this.mFirstXMLChild;
}
return this.getXfaPeer().getFirstXMLChild();
}
}