Class: ApkXml::XmlElement

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



78
79
80
# File 'lib/apktools/apkxml.rb', line 78

def attributes
  @attributes
end

#class_idxObject

Returns the value of attribute class_idx

Returns:

  • (Object)

    the current value of class_idx



78
79
80
# File 'lib/apktools/apkxml.rb', line 78

def class_idx
  @class_idx
end

#headerObject

Returns the value of attribute header

Returns:

  • (Object)

    the current value of header



78
79
80
# File 'lib/apktools/apkxml.rb', line 78

def header
  @header
end

#id_idxObject

Returns the value of attribute id_idx

Returns:

  • (Object)

    the current value of id_idx



78
79
80
# File 'lib/apktools/apkxml.rb', line 78

def id_idx
  @id_idx
end

#is_rootObject

Returns the value of attribute is_root

Returns:

  • (Object)

    the current value of is_root



78
79
80
# File 'lib/apktools/apkxml.rb', line 78

def is_root
  @is_root
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



78
79
80
# File 'lib/apktools/apkxml.rb', line 78

def name
  @name
end

#namespaceObject

Returns the value of attribute namespace

Returns:

  • (Object)

    the current value of namespace



78
79
80
# File 'lib/apktools/apkxml.rb', line 78

def namespace
  @namespace
end

#style_idxObject

Returns the value of attribute style_idx

Returns:

  • (Object)

    the current value of style_idx



78
79
80
# File 'lib/apktools/apkxml.rb', line 78

def style_idx
  @style_idx
end