Class Element

java.lang.Object
cruise.umple.compiler.Element
Direct Known Subclasses:
TextContents

public class Element extends Object
  • Constructor Details

  • Method Details

    • setTagName

      public boolean setTagName(String aTagName)
    • setParent

      public boolean setParent(Element aParent)
    • addAttribute

      public boolean addAttribute(AttributeElement aAttribute)
    • removeAttribute

      public boolean removeAttribute(AttributeElement aAttribute)
    • getTagName

      public String getTagName()
    • getParent

      public Element getParent()
    • getAttribute

      public AttributeElement getAttribute(int index)
    • getAttributes

      public AttributeElement[] getAttributes()
    • numberOfAttributes

      public int numberOfAttributes()
    • hasAttributes

      public boolean hasAttributes()
    • indexOfAttribute

      public int indexOfAttribute(AttributeElement aAttribute)
    • getChild

      public Element getChild(int index)
    • getChildren

      public List<Element> getChildren()
    • numberOfChildren

      public int numberOfChildren()
    • hasChildren

      public boolean hasChildren()
    • indexOfChild

      public int indexOfChild(Element aChild)
    • getElement

      public Element getElement()
    • hasElement

      public boolean hasElement()
    • minimumNumberOfChildren

      public static int minimumNumberOfChildren()
    • addChild

      public boolean addChild(Element aChild)
    • removeChild

      public boolean removeChild(Element aChild)
    • addChildAt

      public boolean addChildAt(Element aChild, int index)
    • addOrMoveChildAt

      public boolean addOrMoveChildAt(Element aChild, int index)
    • setElement

      public boolean setElement(Element aElement)
    • delete

      public void delete()
    • getAttributeElement

      public AttributeElement getAttributeElement(String name)
    • getAttribute

      public String getAttribute(String name)
    • appendText

      public Element appendText(String... texts)
    • appendTextContents

      public Element appendTextContents(boolean newLine, String... texts)
    • appendText

      public Element appendText(String text)
    • getChildByPath

      public Element getChildByPath(String... path)
    • getChildByPath

      public Element getChildByPath(List<String> attributesObjects, String... path)
    • getChildrenByPath

      public List<Element> getChildrenByPath(List<String> attributesObjects, String... path)
    • getChildrenByPath

      public List<Element> getChildrenByPath(String... path)
    • getChildrenByPath

      public List<Element> getChildrenByPath(List<String> path)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • htmlString

      protected String htmlString()