// Path: src/main/java/com/kasirgalabs/etumulator/string/StringUtils.java
// public final class StringUtils {
//     private static final int BIT_WIDTH = 32;
// 
//     private StringUtils() {
//     }
// 
//     public static String toBinaryString(int value) {
//         StringBuilder binaryString = new StringBuilder(32);
//         int missingBits = BIT_WIDTH - Integer.toBinaryString(value).length();
//         for(int i = 0; i < missingBits; i++) {
//             binaryString.append('0');
//         }
//         binaryString.append(Integer.toBinaryString(value));
//         return binaryString.toString();
//     }
// 
//     public static String toHexString(int value) {
//         StringBuilder hexString = new StringBuilder(32);
//         hexString.append("0x");
//         int missingBits = BIT_WIDTH / 4 - Integer.toHexString(value).length();
//         for(int i = 0; i < missingBits; i++) {
//             hexString.append('0');
//         }
//         hexString.append(Integer.toHexString(value));
//         return hexString.toString();
//     }
// 
//     public static String toAsciiString(int value) {
//         return AsciiTable.getAscii((char) value);
//     }
// }


import com.kasirgalabs.etumulator.string.StringUtils;
package com.kasirgalabs.etumulator.navigator;


public class NavigatorRow {
    private static Type type = Type.DECIMAL;
    private final String property;
    private int value;

    public NavigatorRow(String property, int value) {
        this.property = property;
        this.value = value;
    }

    public NavigatorRow(int property, int value) {
        this.property = Integer.toString(property);
        this.value = value;
    }

    public static void setType(Type type) {
        NavigatorRow.type = type;
    }

    public String getProperty() {
        return property;
    }

    public String getValue() {
        switch(type) {
            case DECIMAL:
                return Integer.toString(value);
            case HEX:
// Path: src/main/java/com/kasirgalabs/etumulator/string/StringUtils.java
// public final class StringUtils {
//     private static final int BIT_WIDTH = 32;
// 
//     private StringUtils() {
//     }
// 
//     public static String toBinaryString(int value) {
//         StringBuilder binaryString = new StringBuilder(32);
//         int missingBits = BIT_WIDTH - Integer.toBinaryString(value).length();
//         for(int i = 0; i < missingBits; i++) {
//             binaryString.append('0');
//         }
//         binaryString.append(Integer.toBinaryString(value));
//         return binaryString.toString();
//     }
// 
//     public static String toHexString(int value) {
//         StringBuilder hexString = new StringBuilder(32);
//         hexString.append("0x");
//         int missingBits = BIT_WIDTH / 4 - Integer.toHexString(value).length();
//         for(int i = 0; i < missingBits; i++) {
//             hexString.append('0');
//         }
//         hexString.append(Integer.toHexString(value));
//         return hexString.toString();
//     }
// 
//     public static String toAsciiString(int value) {
//         return AsciiTable.getAscii((char) value);
//     }
// }


// Path: src/main/java/com/kasirgalabs/etumulator/navigator/NavigatorRow.java
import com.kasirgalabs.etumulator.string.StringUtils;

package com.kasirgalabs.etumulator.navigator;


public class NavigatorRow {
    private static Type type = Type.DECIMAL;
    private final String property;
    private int value;

    public NavigatorRow(String property, int value) {
        this.property = property;
        this.value = value;
    }

    public NavigatorRow(int property, int value) {
        this.property = Integer.toString(property);
        this.value = value;
    }

    public static void setType(Type type) {
        NavigatorRow.type = type;
    }

    public String getProperty() {
        return property;
    }

    public String getValue() {
        switch(type) {
            case DECIMAL:
                return Integer.toString(value);
            case HEX:
                return StringUtils.toHexString(value);