/** @param ownerDocument */ public ElementImpl(DocumentImpl ownerDocument, String tagName, OMFactory factory) { super(ownerDocument, factory); this.localName = tagName; this.attributes = new AttributeMap(this); this.done = true; }
public ElementImpl(DocumentImpl ownerDocument, String tagName, NamespaceImpl ns, OMXMLParserWrapper builder, OMFactory factory) { super(ownerDocument, factory); this.localName = tagName; this.namespace = ns; this.builder = builder; this.declareNamespace(ns); this.attributes = new AttributeMap(this); }
public ElementImpl(String tagName, NamespaceImpl ns, OMXMLParserWrapper builder, OMFactory factory) { this(factory); this.localName = tagName; this.namespace = ns; this.builder = builder; if (ns != null) { this.declareNamespace(ns); } this.attributes = new AttributeMap(this); }
/** * Creates a new element with the namespace. * * @param ownerDocument * @param tagName * @param ns */ public ElementImpl(DocumentImpl ownerDocument, String tagName, NamespaceImpl ns, OMFactory factory) { super(ownerDocument, factory); this.localName = tagName; this.namespace = ns; this.declareNamespace(ns); this.attributes = new AttributeMap(this); this.done = true; }
/** * BORROWED from Xerces impl. Cloning a NamedNodeMap is a DEEP OPERATION; it always clones all * the nodes contained in the map. */ public NamedNodeMapImpl cloneMap(NodeImpl ownerNode) { AttributeMap newmap = new AttributeMap((ParentNode) ownerNode); newmap.hasDefaults(hasDefaults()); newmap.cloneContent(this); return newmap; } // cloneMap():AttributeMap
AttributeMap attributeMap = new AttributeMap(this);
this.attributes = new AttributeMap(this);
this.attributes = new AttributeMap(this);
this.attributes = new AttributeMap(this);