<commit_before>/**
 * Copyright (c) 2010-2014, openHAB.org and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.openhab.binding.zwave.internal.config;

import java.util.HashMap;
import java.util.Map;

/**
 * Defines the configuration record. Used to pass configuration information from
 * a binding in openHAB to a GUI via the REST interface
 * 
 * @author <NAME>
 * @since 1.4.0
 * 
 */
public class OpenHABConfigurationRecord {
	public String domain;
	public String name;
	public String label;
	public String description;
	public boolean optional;
	public boolean readonly;
	public TYPE type;
	public STATE state;
	public String value;
	public Integer minimum;
	public Integer maximum;
	public Map<String, String> valuelist;
	public Map<String, String> actionlist;

	enum TYPE {
		LIST, FREELIST, MULTILIST, STRING, GROUP, DECIMAL, HEXADECIMAL, BINARY, BYTE, SHORT, LONG
	}
	
	enum STATE {
		OK, WARNING, ERROR, INITIALIZING, PENDING
	}
	
	/**
	 * Default constructor
	 */
	OpenHABConfigurationRecord() {
	}

	/**
	 * Constructor for a record.
	 * 
	 * @param domain
	 *            Domain in which this record sits. The domain allows the system
	 *            to identify a record in a multitierd array. If the domain
	 *            terminates in a / it is assumed to have children
	 * @param name
	 *            The name is the identifier that the system uses to uniquely
	 *            identify the record within the domain. It is not shown to the<commit_msg>Add CONSTANT to data types.<commit_after>/**
 * Copyright (c) 2010-2014, openHAB.org and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.openhab.binding.zwave.internal.config;

import java.util.HashMap;
import java.util.Map;

/**
 * Defines the configuration record. Used to pass configuration information from
 * a binding in openHAB to a GUI via the REST interface
 * 
 * @author <NAME>
 * @since 1.4.0
 * 
 */
public class OpenHABConfigurationRecord {
	public String domain;
	public String name;
	public String label;
	public String description;
	public boolean optional;
	public boolean readonly;
	public TYPE type;
	public STATE state;
	public String value;
	public Integer minimum;
	public Integer maximum;
	public Map<String, String> valuelist;
	public Map<String, String> actionlist;

	enum TYPE {
		LIST, FREELIST, MULTILIST, CONSTANT, STRING, GROUP, DECIMAL, HEXADECIMAL, BINARY, BYTE, SHORT, LONG
	}
	
	enum STATE {
		OK, WARNING, ERROR, INITIALIZING, PENDING
	}
	
	/**
	 * Default constructor
	 */
	OpenHABConfigurationRecord() {
	}

	/**
	 * Constructor for a record.
	 * 
	 * @param domain
	 *            Domain in which this record sits. The domain allows the system
	 *            to identify a record in a multitierd array. If the domain
	 *            terminates in a / it is assumed to have children
	 * @param name
	 *            The name is the identifier that the system uses to uniquely
	 *            identify the record within the domain. It is not shown to the
{'fraction_non_alphanumeric': 0.07651559741024132, 'fraction_numerical': 0.008828722778104767, 'mean_word_length': 3.254067584480601, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6749952', 'n_tokens_mistral': 1043, 'n_tokens_neox': 960, 'n_words': 398}