Element Class

Definition

Line 44 of System.Dom/Element.cm

Inheritance

Constructors & Destructor

public suppress Element(Element&&)
public suppress Element(const Element&)
public explicit Element(const String<uchar>& name_)
public Element(const String<uchar>& name_, Map<String<uchar>, Attr*, Less<String<uchar>>>&& attributeMap_)
public ~Element()

Member Functions

public override void Accept(Visitor& visitor)
public void AddAttribute(UniquePtr<Attr>&& attr)
public override UniquePtr<Node> CloneNode(bool deep)
public String<uchar> GetAttribute(const String<uchar>& attrName) const
public NodeList GetElementsByTagName(const String<uchar>& tagName)
public override bool HasAttributes() const
public bool HasMultilineContent()
public void RemoveAttribute(const String<uchar>& attrName)
public void SetAttribute(const String<uchar>& attrName, const String<uchar>& attrValue)
public const String<uchar>& TagName() const
public override void WalkAttribute(NodeOp& nodeOp)
public override void Write(CodeFormatter& formatter)
public void WriteAttributes(CodeFormatter& formatter)
public suppress Element& operator=(Element&&)
public suppress Element& operator=(const Element&)

Member Variables

private Map<String<uchar>, Attr*, Less<String<uchar>>> attributeMap

Constructor& Destructor Details

Element Constructor

public suppress Element(Element&&)

Definition
Line 47 of System.Dom/Element.cm


Element Constructor

public suppress Element(const Element&)

Definition
Line 46 of System.Dom/Element.cm


Element Constructor

public explicit Element(const String<uchar>& name_)

Definition
Line 48 of System.Dom/Element.cm


Element Constructor

public Element(const String<uchar>& name_, Map<String<uchar>, Attr*, Less<String<uchar>>>&& attributeMap_)

Definition
Line 52 of System.Dom/Element.cm


~Element Destructor

public ~Element()

Definition
Line 56 of System.Dom/Element.cm


Member Function Details

Accept Member Function

public override void Accept(Visitor& visitor)

Definition
Line 209 of System.Dom/Element.cm


AddAttribute Member Function

public void AddAttribute(UniquePtr<Attr>&& attr)

Definition
Line 97 of System.Dom/Element.cm


CloneNode Member Function

public override UniquePtr<Node> CloneNode(bool deep)

Definition
Line 123 of System.Dom/Element.cm


GetAttribute Member Function

public String<uchar> GetAttribute(const String<uchar>& attrName)

Definition
Line 88 of System.Dom/Element.cm


GetElementsByTagName Member Function

public NodeList GetElementsByTagName(const String<uchar>& tagName)

Definition
Line 116 of System.Dom/Element.cm


HasAttributes Member Function

public override bool HasAttributes()

Definition
Line 142 of System.Dom/Element.cm


HasMultilineContent Member Function

public bool HasMultilineContent()

Definition
Line 77 of System.Dom/Element.cm


RemoveAttribute Member Function

public void RemoveAttribute(const String<uchar>& attrName)

Definition
Line 107 of System.Dom/Element.cm


SetAttribute Member Function

public void SetAttribute(const String<uchar>& attrName, const String<uchar>& attrValue)

Definition
Line 102 of System.Dom/Element.cm


TagName Member Function

public const String<uchar>& TagName()

Definition
Line 65 of System.Dom/Element.cm


WalkAttribute Member Function

public override void WalkAttribute(NodeOp& nodeOp)

Definition
Line 201 of System.Dom/Element.cm


Write Member Function

public override void Write(CodeFormatter& formatter)

Definition
Line 146 of System.Dom/Element.cm


WriteAttributes Member Function

public void WriteAttributes(CodeFormatter& formatter)

Definition
Line 69 of System.Dom/Element.cm


operator= Member Function

public suppress Element& operator=(Element&&)

Definition
Line 64 of System.Dom/Element.cm


operator= Member Function

public suppress Element& operator=(const Element&)

Definition
Line 63 of System.Dom/Element.cm