/** * {@inheritDoc} */ @Override public String getNodeName() { return getName(); }
/** * {@inheritDoc} */ @Override public String getNodeName() { return getName(); }
/** * {@inheritDoc} */ @Override public String getNodeName() { return getName(); }
/** * {@inheritDoc} */ @Override public String getNodeName() { return getName(); }
/** * {@inheritDoc} */ @Override public String getNodeName() { return getName(); }
/** * Gets the attributes of the element in the form of a {@link org.xml.sax.Attributes}. * @param element the element to read the attributes from * @return the attributes */ protected AttributesImpl readAttributes(final HtmlElement element) { final AttributesImpl attributes = new AttributesImpl(); for (final DomAttr entry : element.getAttributesMap().values()) { final String name = entry.getName(); final String value = entry.getValue(); attributes.addAttribute(null, name, name, null, value); } return attributes; }
/** * Gets the attributes of the element in the form of a {@link org.xml.sax.Attributes}. * @param element the element to read the attributes from * @return the attributes */ protected AttributesImpl readAttributes(final HtmlElement element) { final AttributesImpl attributes = new AttributesImpl(); for (final DomAttr entry : element.getAttributesMap().values()) { final String name = entry.getName(); final String value = entry.getValue(); attributes.addAttribute(null, name, name, null, value); } return attributes; }
/** * Gets the attributes of the element in the form of a {@link org.xml.sax.Attributes}. * @param element the element to read the attributes from * @return the attributes */ protected AttributesImpl readAttributes(final HtmlElement element) { final AttributesImpl attributes = new AttributesImpl(); for (final DomAttr entry : element.getAttributesMap().values()) { final String name = entry.getName(); final String value = entry.getValue(); attributes.addAttribute(null, name, name, null, value); } return attributes; }
/** * Gets the attributes of the element in the form of a {@link org.xml.sax.Attributes}. * @param element the element to read the attributes from * @return the attributes */ protected AttributesImpl readAttributes(final HtmlElement element) { final AttributesImpl attributes = new AttributesImpl(); for (final DomAttr entry : element.getAttributesMap().values()) { final String name = entry.getName(); final String value = entry.getValue(); attributes.addAttribute(null, name, name, null, value); } return attributes; }
/** * {@inheritDoc} */ @Override public String getCanonicalXPath() { return getParentNode().getCanonicalXPath() + "/@" + getName(); }
/** * Returns the attribute name. * @return the attribute name */ @JsxGetter public String getName() { return getDomNodeOrDie().getName(); }
/** * Returns the name of the attribute. * @return the name of the attribute */ @JsxGetter public String getName() { return getDomNodeOrDie().getName(); }
/** * {@inheritDoc} */ @Override public String getCanonicalXPath() { return getParentNode().getCanonicalXPath() + "/@" + getName(); }
/** * Returns the name of the attribute. * @return the name of the attribute */ @JsxGetter public String getName() { return getDomNodeOrDie().getName(); }
/** * Returns the attribute name. * @return the attribute name */ @JsxGetter public String getName() { return getDomNodeOrDie().getName(); }
/** * Retrieves an attribute node by name. * @param name the name of the attribute to retrieve * @return the XMLAttr node with the specified name or <code>null</code> if there is no such attribute */ public Object jsxFunction_getAttributeNode(final String name) { final Map<String, DomAttr> attributes = getDomNodeOrDie().getAttributesMap(); for (final DomAttr attr : attributes.values()) { if (attr.getName().equals(name)) { return attr.getScriptObject(); } } return null; }
/** * Retrieves an attribute node by name. * @param name the name of the attribute to retrieve * @return the XMLAttr node with the specified name or <code>null</code> if there is no such attribute */ public Object jsxFunction_getAttributeNode(final String name) { final Map<String, DomAttr> attributes = getDomNodeOrDie().getAttributesMap(); for (final DomAttr attr : attributes.values()) { if (attr.getName().equals(name)) { return attr.getScriptObject(); } } return null; }
/** * Retrieves an attribute node by name. * @param name the name of the attribute to retrieve * @return the XMLAttr node with the specified name or <code>null</code> if there is no such attribute */ public Object jsxFunction_getAttributeNode(final String name) { final Map<String, DomAttr> attributes = getDomNodeOrDie().getAttributesMap(); for (final DomAttr attr : attributes.values()) { if (attr.getName().equals(name)) { return attr.getScriptObject(); } } return null; }
/** * Retrieves an attribute node by name. * @param name the name of the attribute to retrieve * @return the XMLAttr node with the specified name or {@code null} if there is no such attribute */ @JsxFunction public Object getAttributeNode(final String name) { final Map<String, DomAttr> attributes = getDomNodeOrDie().getAttributesMap(); for (final DomAttr attr : attributes.values()) { if (attr.getName().equals(name)) { return attr.getScriptableObject(); } } return null; }
/** * {@inheritDoc} */ @Override public void setTextContent(final String textContent) { final boolean mappedElement = HtmlPage.isMappedElement(getOwnerDocument(), getName()); if (mappedElement) { ((HtmlPage) getPage()).removeMappedElement((HtmlElement) getOwnerElement()); } setValue(textContent); if (mappedElement) { ((HtmlPage) getPage()).addMappedElement(getOwnerElement()); } } }