public class UnoTypeProvider
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_TYPES |
static java.lang.String |
BASIC_TYPES_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
addInitListener(IInitListener pListener)
Register the given listener.
|
boolean |
contains(java.lang.String pScopedName,
java.lang.String[] pContainers)
Checks whether the list contains the given type name.
|
static UnoTypeProvider |
getInstance() |
TypeProviderState |
getState() |
void |
refreshCache()
Refresh the cache of Uno types.
|
protected void |
removeAllTypes()
Purge the types list.
|
void |
removeInitListener(IInitListener pListener)
Makes the given initialization listener stop listening.
|
void |
setOOoInstance(IOOo pOOoInstance)
Sets the OOo if the new one is different from the old one.
|
void |
setProject(IUnoidlProject pProject)
Set the UNO project for which to get the UNO types.
|
protected java.lang.Object[] |
toArray(java.lang.String[] pContainers)
Initializes the cache if needed and get the cached data.
|
public static final int ALL_TYPES
public static final java.lang.String BASIC_TYPES_KEY
public static UnoTypeProvider getInstance()
UnoTypeProvider singleton instance.public void refreshCache()
public boolean contains(java.lang.String pScopedName,
java.lang.String[] pContainers)
pScopedName - the type name to matchpContainers - the UNO types containers to look in. These have to be either the path to a project RDB file or a
LibreOffice nametrue if the list contains a type with this namepublic void setProject(IUnoidlProject pProject)
types.rdb registry will be used
as external registry for the types query.pProject - the project for which to launch the type querypublic void setOOoInstance(IOOo pOOoInstance)
pOOoInstance - LibreOffice instance to bootstrappublic TypeProviderState getState()
public void addInitListener(IInitListener pListener)
pListener - the listener to addpublic void removeInitListener(IInitListener pListener)
pListener - the listener to removeprotected java.lang.Object[] toArray(java.lang.String[] pContainers)
pContainers - the container from which to get the types.TypesGetterprotected void removeAllTypes()