public final class OEnv
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
OEnv.DocException |
| Modifier and Type | Method and Description |
|---|---|
void |
log(java.util.Collection<java.lang.String> strs,
java.lang.String title)
Writes strings to the logger, preceded by a title.
|
void |
log(java.lang.String msg,
boolean isError)
Writes a message line to the logger.
|
OLogger |
logger()
Gets the environment logger.
|
void |
logProps(OPropObj obj,
java.lang.String title)
Writes all properties of an object to the log.
|
static OEnv |
obj()
Obtains the UNO environment singleton object.
|
void |
setLogger(OLogger logger)
Sets the environment logger.
|
boolean |
terminate()
Terminates the environment.
|
com.sun.star.frame.XComponentLoader |
xGetCompLoader()
Gets the XComponentLoader object.
|
com.sun.star.uno.XComponentContext |
xGetContext()
Gets the XComponentContext object.
|
public static OEnv obj() throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic OLogger logger()
public void setLogger(OLogger logger)
logger - the loggerpublic void log(java.lang.String msg,
boolean isError)
msg - the messageisError - whether the message should be prefixed with ***public void log(java.util.Collection<java.lang.String> strs,
java.lang.String title)
strs - the stringstitle - the title for the stringspublic void logProps(OPropObj obj, java.lang.String title) throws com.sun.star.uno.Exception
obj - the object with propertiestitle - the title for the listingcom.sun.star.uno.Exceptionpublic boolean terminate()
public com.sun.star.uno.XComponentContext xGetContext()
public com.sun.star.frame.XComponentLoader xGetCompLoader()