package org.openautonomousconnection.luascript.hosts; import java.util.List; import java.util.Map; /** * Host capability that exposes a DOM-like API. * *

Element identity is the (stable) element id.

*/ public interface DomHost { /** * Returns all element ids known to the renderer (must be stable). * * @return list of element ids */ List getAllElementIds(); /** * Returns all attributes for the given element id. * * @param elementId element id * @return attributes map (attributeName -> attributeValue) */ Map getAttributes(String elementId); /** * Returns the tag name of the element (lowercase recommended), e.g. "script", "button". * * @param elementId element id * @return tag name */ String getTagName(String elementId); /** * Returns the text content of an element (used for inline