org.openoffice.ide.eclipse.core.office
Class TypesGetter

java.lang.Object
  extended by org.openoffice.ide.eclipse.core.office.TypesGetter

public class TypesGetter
extends java.lang.Object

Facade class loading all the methods using an OpenOffice.org instance.

Author:
cedricbosdo

Constructor Summary
TypesGetter()
           
 
Method Summary
 IOOo getOOo()
           
 java.util.Map<java.lang.String,java.util.List<InternalUnoType>> getTypes(java.lang.String pRoot, int pMask)
          Get the UNO types from an office instance.
 void setLocalRegs(java.util.List<java.lang.String> pLocalRegs)
           
 void setOOo(IOOo pOOo)
          Set the OOo instance to use for the different operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypesGetter

public TypesGetter()
Method Detail

setOOo

public void setOOo(IOOo pOOo)
Set the OOo instance to use for the different operations.

Parameters:
pOOo - the OpenOffice.org instance to set.

getOOo

public IOOo getOOo()
Returns:
the OpenOffice.org to use for the different operations.

setLocalRegs

public void setLocalRegs(java.util.List<java.lang.String> pLocalRegs)
Parameters:
pLocalRegs - the local registries to search

getTypes

public java.util.Map<java.lang.String,java.util.List<InternalUnoType>> getTypes(java.lang.String pRoot,
                                                                                int pMask)
Get the UNO types from an office instance.

Parameters:
pRoot - the root registry key where to look for the types. If the value is null the whole registry will be searched
pMask - the bit-ORed types to search. The types are defined in the IUnoFactoryConstants class.
Returns:
the list of types available in the office