summaryrefslogtreecommitdiff
path: root/tools/aapt/XMLNode.h
diff options
context:
space:
mode:
author Jean-Baptiste Queru <jbq@google.com> 2009-07-21 11:16:54 -0700
committer Jean-Baptiste Queru <jbq@google.com> 2009-07-21 11:16:54 -0700
commitcf4550c3198d6b3d92cdc52707fe70d7cc0caa9f (patch)
tree6510f35ad004f1a4640b48264c290926e8596d7a /tools/aapt/XMLNode.h
parent4cf03d381b2dff908857fceff0bec445f8d44f36 (diff)
donut snapshot
Diffstat (limited to 'tools/aapt/XMLNode.h')
-rw-r--r--tools/aapt/XMLNode.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/aapt/XMLNode.h b/tools/aapt/XMLNode.h
index 86548a22c858..a9bea4312ecc 100644
--- a/tools/aapt/XMLNode.h
+++ b/tools/aapt/XMLNode.h
@@ -68,6 +68,8 @@ public:
const String16& getElementName() const;
const Vector<sp<XMLNode> >& getChildren() const;
+ const String8& getFilename() const;
+
struct attribute_entry {
attribute_entry() : index(~(uint32_t)0), nameResId(0)
{
@@ -91,6 +93,8 @@ public:
const Vector<attribute_entry>& getAttributes() const;
+ const attribute_entry* getAttribute(const String16& ns, const String16& name) const;
+
const String16& getCData() const;
const String16& getComment() const;
@@ -98,8 +102,14 @@ public:
int32_t getStartLineNumber() const;
int32_t getEndLineNumber() const;
+ sp<XMLNode> searchElement(const String16& tagNamespace, const String16& tagName);
+
+ sp<XMLNode> getChildElement(const String16& tagNamespace, const String16& tagName);
+
status_t addChild(const sp<XMLNode>& child);
+ status_t insertChildAt(const sp<XMLNode>& child, size_t index);
+
status_t addAttribute(const String16& ns, const String16& name,
const String16& value);