Package com.sun.star.registry

Examples of com.sun.star.registry.RegistryValueType


      if (key1.getValueType() != key2.getValueType()) return false ;
    } catch (InvalidRegistryException e) {
      return false ;
    }
   
    RegistryValueType type ;
    try {
      type = key1.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        if (!key1.getAsciiValue().equals(key2.getAsciiValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        if (!key1.getStringValue().equals(key2.getStringValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        if (key1.getLongValue() != key2.getLongValue())
          return false ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        byte[] bin1 = key1.getBinaryValue() ;
        byte[] bin2 = key2.getBinaryValue() ;
        if (bin1.length != bin2.length)
          return false ;
        for (int i = 0; i < bin1.length; i++)
          if (bin1[i] != bin2[i]) return false ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        String[] list1 = key1.getAsciiListValue() ;
        String[] list2 = key2.getAsciiListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        String[] list1 = key1.getStringListValue() ;
        String[] list2 = key2.getStringListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        int[] list1 = key1.getLongListValue() ;
        int[] list2 = key2.getLongListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
View Full Code Here


    if (parentKey.getKeyType(keyName) == RegistryKeyType.LINK) {
      out.println("(link to " + parentKey.getLinkTarget(keyName) + ")") ;
      return ;
    }
   
    RegistryValueType type ;
    try {
      type = key.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        out.println("[ASCII] = '" + key.getAsciiValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        out.println("[STRING] = '" + key.getStringValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        out.println("[LONG] = " + key.getLongValue()) ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        out.print("[BINARY] = {") ;
        byte[] bin = key.getBinaryValue() ;
        for (int i = 0; i < bin.length; i++)
          out.print("" + bin[i] + ",") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        out.print("[ASCIILIST] = {") ;
        String[] list = key.getAsciiListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        out.print("[STRINGLIST] = {") ;
        String[] list = key.getStringListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        out.print("[LONGLIST] = {") ;
        int[] list = key.getLongListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("" + list[i] + ",") ;
        out.println("}") ;
View Full Code Here

      if (key1.getValueType() != key2.getValueType()) return false ;
    } catch (InvalidRegistryException e) {
      return false ;
    }
   
    RegistryValueType type ;
    try {
      type = key1.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        if (!key1.getAsciiValue().equals(key2.getAsciiValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        if (!key1.getStringValue().equals(key2.getStringValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        if (key1.getLongValue() != key2.getLongValue())
          return false ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        byte[] bin1 = key1.getBinaryValue() ;
        byte[] bin2 = key2.getBinaryValue() ;
        if (bin1.length != bin2.length)
          return false ;
        for (int i = 0; i < bin1.length; i++)
          if (bin1[i] != bin2[i]) return false ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        String[] list1 = key1.getAsciiListValue() ;
        String[] list2 = key2.getAsciiListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        String[] list1 = key1.getStringListValue() ;
        String[] list2 = key2.getStringListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        int[] list1 = key1.getLongListValue() ;
        int[] list2 = key2.getLongListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
View Full Code Here

    if (parentKey.getKeyType(keyName) == RegistryKeyType.LINK) {
      out.println("(link to " + parentKey.getLinkTarget(keyName) + ")") ;
      return ;
    }
   
    RegistryValueType type ;
    try {
      type = key.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        out.println("[ASCII] = '" + key.getAsciiValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        out.println("[STRING] = '" + key.getStringValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        out.println("[LONG] = " + key.getLongValue()) ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        out.print("[BINARY] = {") ;
        byte[] bin = key.getBinaryValue() ;
        for (int i = 0; i < bin.length; i++)
          out.print("" + bin[i] + ",") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        out.print("[ASCIILIST] = {") ;
        String[] list = key.getAsciiListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        out.print("[STRINGLIST] = {") ;
        String[] list = key.getStringListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        out.print("[LONGLIST] = {") ;
        int[] list = key.getLongListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("" + list[i] + ",") ;
        out.println("}") ;
View Full Code Here

      if (key1.getValueType() != key2.getValueType()) return false ;
    } catch (InvalidRegistryException e) {
      return false ;
    }
   
    RegistryValueType type ;
    try {
      type = key1.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        if (!key1.getAsciiValue().equals(key2.getAsciiValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        if (!key1.getStringValue().equals(key2.getStringValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        if (key1.getLongValue() != key2.getLongValue())
          return false ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        byte[] bin1 = key1.getBinaryValue() ;
        byte[] bin2 = key2.getBinaryValue() ;
        if (bin1.length != bin2.length)
          return false ;
        for (int i = 0; i < bin1.length; i++)
          if (bin1[i] != bin2[i]) return false ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        String[] list1 = key1.getAsciiListValue() ;
        String[] list2 = key2.getAsciiListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        String[] list1 = key1.getStringListValue() ;
        String[] list2 = key2.getStringListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        int[] list1 = key1.getLongListValue() ;
        int[] list2 = key2.getLongListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
View Full Code Here

    if (parentKey.getKeyType(keyName) == RegistryKeyType.LINK) {
      out.println("(link to " + parentKey.getLinkTarget(keyName) + ")") ;
      return ;
    }
   
    RegistryValueType type ;
    try {
      type = key.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        out.println("[ASCII] = '" + key.getAsciiValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        out.println("[STRING] = '" + key.getStringValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        out.println("[LONG] = " + key.getLongValue()) ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        out.print("[BINARY] = {") ;
        byte[] bin = key.getBinaryValue() ;
        for (int i = 0; i < bin.length; i++)
          out.print("" + bin[i] + ",") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        out.print("[ASCIILIST] = {") ;
        String[] list = key.getAsciiListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        out.print("[STRINGLIST] = {") ;
        String[] list = key.getStringListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        out.print("[LONGLIST] = {") ;
        int[] list = key.getLongListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("" + list[i] + ",") ;
        out.println("}") ;
View Full Code Here

      if (key1.getValueType() != key2.getValueType()) return false ;
    } catch (InvalidRegistryException e) {
      return false ;
    }
   
    RegistryValueType type ;
    try {
      type = key1.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        if (!key1.getAsciiValue().equals(key2.getAsciiValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        if (!key1.getStringValue().equals(key2.getStringValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        if (key1.getLongValue() != key2.getLongValue())
          return false ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        byte[] bin1 = key1.getBinaryValue() ;
        byte[] bin2 = key2.getBinaryValue() ;
        if (bin1.length != bin2.length)
          return false ;
        for (int i = 0; i < bin1.length; i++)
          if (bin1[i] != bin2[i]) return false ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        String[] list1 = key1.getAsciiListValue() ;
        String[] list2 = key2.getAsciiListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        String[] list1 = key1.getStringListValue() ;
        String[] list2 = key2.getStringListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        int[] list1 = key1.getLongListValue() ;
        int[] list2 = key2.getLongListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
View Full Code Here

    if (parentKey.getKeyType(keyName) == RegistryKeyType.LINK) {
      out.println("(link to " + parentKey.getLinkTarget(keyName) + ")") ;
      return ;
    }
   
    RegistryValueType type ;
    try {
      type = key.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        out.println("[ASCII] = '" + key.getAsciiValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        out.println("[STRING] = '" + key.getStringValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        out.println("[LONG] = " + key.getLongValue()) ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        out.print("[BINARY] = {") ;
        byte[] bin = key.getBinaryValue() ;
        for (int i = 0; i < bin.length; i++)
          out.print("" + bin[i] + ",") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        out.print("[ASCIILIST] = {") ;
        String[] list = key.getAsciiListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        out.print("[STRINGLIST] = {") ;
        String[] list = key.getStringListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        out.print("[LONGLIST] = {") ;
        int[] list = key.getLongListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("" + list[i] + ",") ;
        out.println("}") ;
View Full Code Here

      if (key1.getValueType() != key2.getValueType()) return false ;
    } catch (InvalidRegistryException e) {
      return false ;
    }
   
    RegistryValueType type ;
    try {
      type = key1.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        if (!key1.getAsciiValue().equals(key2.getAsciiValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        if (!key1.getStringValue().equals(key2.getStringValue()))
          return false ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        if (key1.getLongValue() != key2.getLongValue())
          return false ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        byte[] bin1 = key1.getBinaryValue() ;
        byte[] bin2 = key2.getBinaryValue() ;
        if (bin1.length != bin2.length)
          return false ;
        for (int i = 0; i < bin1.length; i++)
          if (bin1[i] != bin2[i]) return false ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        String[] list1 = key1.getAsciiListValue() ;
        String[] list2 = key2.getAsciiListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        String[] list1 = key1.getStringListValue() ;
        String[] list2 = key2.getStringListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
          if (!list1[i].equals(list2[i])) return false ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        int[] list1 = key1.getLongListValue() ;
        int[] list2 = key2.getLongListValue() ;
        if (list1.length != list2.length)
          return false ;
        for (int i = 0; i < list1.length; i++)
View Full Code Here

    if (parentKey.getKeyType(keyName) == RegistryKeyType.LINK) {
      out.println("(link to " + parentKey.getLinkTarget(keyName) + ")") ;
      return ;
    }
   
    RegistryValueType type ;
    try {
      type = key.getValueType() ;
   
      if (type.equals(RegistryValueType.ASCII)) {
        out.println("[ASCII] = '" + key.getAsciiValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.STRING)) {
        out.println("[STRING] = '" + key.getStringValue() + "'") ;
      } else
      if (type.equals(RegistryValueType.LONG)) {
        out.println("[LONG] = " + key.getLongValue()) ;
      } else                                                       
      if (type.equals(RegistryValueType.BINARY)) {
        out.print("[BINARY] = {") ;
        byte[] bin = key.getBinaryValue() ;
        for (int i = 0; i < bin.length; i++)
          out.print("" + bin[i] + ",") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.ASCIILIST)) {
        out.print("[ASCIILIST] = {") ;
        String[] list = key.getAsciiListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.STRINGLIST)) {
        out.print("[STRINGLIST] = {") ;
        String[] list = key.getStringListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("'" + list[i] + "',") ;
        out.println("}") ;
      } else
      if (type.equals(RegistryValueType.LONGLIST)) {
        out.print("[LONGLIST] = {") ;
        int[] list = key.getLongListValue() ;
        for (int i = 0; i < list.length; i++)
          out.print("" + list[i] + ",") ;
        out.println("}") ;
View Full Code Here

TOP

Related Classes of com.sun.star.registry.RegistryValueType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.