Index: src/orca/default.py
===================================================================
--- src/orca/default.py	(revision 3070)
+++ src/orca/default.py	(working copy)
@@ -4134,7 +4134,39 @@
         Bookmark.goToPrevBookmark """ 
         bookmarks = self.getBookmarks()
         bookmarks.goToPrevBookmark(inputEvent)
-           
+
+    def getInterface(self, obj, interface):
+        """Given a interface type, returns the interface if implemented.
+
+        Arguments:
+        - obj: an accessible object
+        - interface: a string representing the interface (e.g. Text,
+        Component, Value, etc.)
+        """
+        
+        try:
+            iface = obj.queryInterface("IDL:Accessibility/%s:1.0" % \
+                                       interface)
+        except:
+            iface = None
+
+        return iface
+
+    def hasState(self, obj, state):
+        """Given a state, returns whether or not the specified state
+        is contained in the accessible's stateSet.
+
+        Arguments:
+        - obj: an accessible object
+        - state: the pyatspi state (e.g. pyatspi.STATE_CHECKED)
+        """
+
+        hasIt = False
+        if obj:
+            hasIt = obj.getState().contains(state)
+            
+        return hasIt
+
 ########################################################################
 #                                                                      #
 # DEBUG support.                                                       #
