| 
 | OOoRunner test harness | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
util
Class  dbg
java.lang.Object | +--util.dbg
- public class dbg- extends Object
This class accumulates all kinds of methods for accessing debug information from UNO implementations.
| Constructor Summary | |
| dbg() | |
| Method Summary | |
| static String | getImplID(XInterface xTarget)Get the unique implementation id of a UNO object. | 
| static Type[] | getInterfaceTypes(XInterface xTarget)Returns all interface types of an implementation as a type array. | 
| static void | getSuppServices(Object aObject)Print the supported services of a UNO object. | 
| static boolean | implementsInterface(XInterface xTarget,
                    String ifcName)Returns true if a specified target implements the interface with the given name. | 
| static void | printArray(String[] entries)Prints a string array to standard out. | 
| static void | printInterfaceInfo(Type aType)Prints information about an interface type. | 
| static void | printInterfaces(XInterface xTarget)Prints information about the supported interfaces of an implementation to standard out. | 
| static void | printInterfaces(XInterface xTarget,
                boolean extendedInfo)Prints information about the supported interfaces of an implementation to standard out. | 
| static void | printPropertiesNames(XPropertySet ps)Print the names of all properties inside this property set | 
| static void | printPropertyInfo(XPropertySet PS,
                  String name)Print all information about the property namefrom
 the property setPSto standard out. | 
| static void | printPropertyInfo(XPropertySet PS,
                  String name,
                  PrintWriter out)Print all information about the property namefrom
 the property setPSto a print writer. | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
dbg
public dbg()
| Method Detail | 
printInterfaces
public static void printInterfaces(XInterface xTarget)
- Prints information about the supported interfaces of an implementation
 to standard out.- Parameters:
- xTarget- The implementation which should be analysed.
- See Also:
- XInterface
 
printInterfaces
public static void printInterfaces(XInterface xTarget, boolean extendedInfo)
- Prints information about the supported interfaces of an implementation
 to standard out. Extended information can be printed.- Parameters:
- xTarget- The implementation which should be analysed.- extendedInfo- Should extended information be printed?
- See Also:
- XInterface
 
getInterfaceTypes
public static Type[] getInterfaceTypes(XInterface xTarget)
- Returns all interface types of an implementation as a type array.- Parameters:
- xTarget- The implementation which should be analyzed.
- Returns:
- An array with all interface types; null if there are none.
- See Also:
- XInterface
 
implementsInterface
public static boolean implementsInterface(XInterface xTarget, String ifcName)
- Returns true if a specified target implements the interface with the 
 given name. Note that the comparison is not case sensitive.- Parameters:
- xTarget- The implementation which should be analysed.- ifcName- The name of the interface that is tested. The name can be full qualified, such as 'com.sun.star.io.XInputStream', or only consist of the interface name, such as 'XText'.
- Returns:
- True, if xTarget implements the interface named ifcType
- See Also:
- XInterface
 
printInterfaceInfo
public static void printInterfaceInfo(Type aType)
- Prints information about an interface type.- Parameters:
- aType- The type of the given interface.
- See Also:
- Type
 
printArray
public static void printArray(String[] entries)
- Prints a string array to standard out.- Parameters:
- entries- : The array to be printed.
 
printPropertyInfo
public static void printPropertyInfo(XPropertySet PS, String name)
- Print all information about the property namefrom the property setPSto standard out.- Parameters:
- PS- The property set which should contain a property called- name.- name- The name of the property.
- See Also:
- XPropertySet
 
printPropertyInfo
public static void printPropertyInfo(XPropertySet PS, String name, PrintWriter out)
- Print all information about the property namefrom the property setPSto a print writer.- Parameters:
- PS- The property set which should contain a property called- name.- name- The name of the property.- out- The print writer which is used as output.
- See Also:
- XPropertySet
 
printPropertiesNames
public static void printPropertiesNames(XPropertySet ps)
- Print the names of all properties inside this property set- Parameters:
- ps- The property set which is printed.
- See Also:
- XPropertySet
 
getSuppServices
public static void getSuppServices(Object aObject)
- Print the supported services of a UNO object.- Parameters:
- aObject- A UNO object.
 
getImplID
public static String getImplID(XInterface xTarget)
- Get the unique implementation id of a UNO object.- Parameters:
- xTarget- An implementation of a UNO object.
- Returns:
- The implementation id.
 
| 
 | OOoRunner test harness | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

