Class: ApkXml::XmlElement
- Inherits:
-
Struct
- Object
- Struct
- ApkXml::XmlElement
- Defined in:
- lib/apktools/apkxml.rb
Overview
Structure defining an XML element
XmlElement = Struct.new(:header, :namespace, :name, :id_idx, :class_idx, :style_idx, :attributes, :is_root)
-
header
= XmlTreeHeader -
namespace
= Namespace prefix of the element -
name
= Name of the element -
id_idx
= Index of the attribute that represents the “id” in this element, if any -
class_idx
= Index of the attribute that represents the “class” in this element, if any -
style_idx
= Index of the attribute that represents the “style” in this element, if any -
attributes
= Array of XmlAttribute elements -
is_root
= Marks if this is the root element
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#class_idx ⇒ Object
Returns the value of attribute class_idx.
-
#header ⇒ Object
Returns the value of attribute header.
-
#id_idx ⇒ Object
Returns the value of attribute id_idx.
-
#is_root ⇒ Object
Returns the value of attribute is_root.
-
#name ⇒ Object
Returns the value of attribute name.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#style_idx ⇒ Object
Returns the value of attribute style_idx.
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes
78 79 80 |
# File 'lib/apktools/apkxml.rb', line 78 def attributes @attributes end |
#class_idx ⇒ Object
Returns the value of attribute class_idx
78 79 80 |
# File 'lib/apktools/apkxml.rb', line 78 def class_idx @class_idx end |
#header ⇒ Object
Returns the value of attribute header
78 79 80 |
# File 'lib/apktools/apkxml.rb', line 78 def header @header end |
#id_idx ⇒ Object
Returns the value of attribute id_idx
78 79 80 |
# File 'lib/apktools/apkxml.rb', line 78 def id_idx @id_idx end |
#is_root ⇒ Object
Returns the value of attribute is_root
78 79 80 |
# File 'lib/apktools/apkxml.rb', line 78 def is_root @is_root end |
#name ⇒ Object
Returns the value of attribute name
78 79 80 |
# File 'lib/apktools/apkxml.rb', line 78 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace
78 79 80 |
# File 'lib/apktools/apkxml.rb', line 78 def namespace @namespace end |
#style_idx ⇒ Object
Returns the value of attribute style_idx
78 79 80 |
# File 'lib/apktools/apkxml.rb', line 78 def style_idx @style_idx end |