Class TypesGetter


  • public class TypesGetter
    extends java.lang.Object
    Facade class loading all the methods using a LibreOffice instance.
    • Constructor Summary

      Constructors 
      Constructor Description
      TypesGetter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 LibreOffice 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 LibreOffice instance to use for the different operations.
        Parameters:
        pOOo - the LibreOffice instance to set.
      • getOOo

        public IOOo getOOo()
        Returns:
        the LibreOffice 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