Beispiel #1
0
 public boolean test() throws LRException {
   try {
     if (value.isNumeric()) return value.getNumericValue() == value2.getNumericValue();
     String v1 = value.getStringValue().trim();
     String v2 = value2.getStringValue().trim();
     return v1.equals(v2);
   } catch (NullPointerException e) {
     return false;
   }
 }
Beispiel #2
0
 public long getNumericValue() throws LRException {
   try {
     return Long.parseLong(value.getStringValue(), 16);
   } catch (NumberFormatException e) {
     return 0;
   }
 }
Beispiel #3
0
 public long getNumericValue() throws LRException {
   return value1.getNumericValue() ^ value2.getNumericValue();
 }
Beispiel #4
0
 /**
  * ************************************************************************* Implement the
  * LHValueHolder interface.
  */
 public void setValue(LVSpec value) throws LRException {
   setData(new Long(value.getNumericValue()));
 }
Beispiel #5
0
 public String getStringValue() throws LRException {
   long n = value.getNumericValue();
   return toHex16((int) (n >> 16)) + toHex16((int) (n & 0x0000ffff));
 }