// Path: src/main/java/org/robotframework/formslibrary/operator/LabelOperator.java
// public class LabelOperator extends AbstractComponentOperator {
// 
// 	/**
// 	 * Initialize a LabelOperator for the given label.
// 	 */
// 	public LabelOperator(Component component) {
// 		super(component);
// 	}
// 
// 	/**
// 	 * Initialize a LabelOperator with a label with the specified name in the
// 	 * current context.
// 	 * 
// 	 * @param identifier
// 	 *            label.
// 	 */
// 	public LabelOperator(String identifier) {
// 		super(new ByNameChooser(identifier, ComponentType.LABEL, ComponentType.JRADIO_BUTTON, ComponentType.JLABEL));
// 	}
// 
// 	/**
// 	 * @return field content.
// 	 */
// 	public String getValue() {
// 		return ObjectUtil.getString(getSource(), "getText()");
// 	}
// 
// 	/**
// 	 * Verify that the field contains the given value.
// 	 */
// 	public void verifyValue(String value) {
// 		if (!TextUtil.matches(getValue(), value)) {
// 			throw new FormsLibraryException("Label value '" + getValue() + "' does not match " + value);
// 		}
// 		Logger.info("Value '" + getValue() + "' matches '" + value + "'.");
// 	}
// 
// }


import org.robotframework.formslibrary.operator.LabelOperator;
import org.robotframework.javalib.annotation.ArgumentNames;
import org.robotframework.javalib.annotation.RobotKeyword;
import org.robotframework.javalib.annotation.RobotKeywords;

package org.robotframework.formslibrary.keyword;


@RobotKeywords
public class LabelKeywords {

	@RobotKeyword("Get label content.\n\n" + "Example:\n" + "| \n" + "| ${textFieldValue}= | Get Field | _username_ | \n")
	@ArgumentNames({ "identifier" })
	public String getLabel(String identifier) {

// Path: src/main/java/org/robotframework/formslibrary/operator/LabelOperator.java
// public class LabelOperator extends AbstractComponentOperator {
// 
// 	/**
// 	 * Initialize a LabelOperator for the given label.
// 	 */
// 	public LabelOperator(Component component) {
// 		super(component);
// 	}
// 
// 	/**
// 	 * Initialize a LabelOperator with a label with the specified name in the
// 	 * current context.
// 	 * 
// 	 * @param identifier
// 	 *            label.
// 	 */
// 	public LabelOperator(String identifier) {
// 		super(new ByNameChooser(identifier, ComponentType.LABEL, ComponentType.JRADIO_BUTTON, ComponentType.JLABEL));
// 	}
// 
// 	/**
// 	 * @return field content.
// 	 */
// 	public String getValue() {
// 		return ObjectUtil.getString(getSource(), "getText()");
// 	}
// 
// 	/**
// 	 * Verify that the field contains the given value.
// 	 */
// 	public void verifyValue(String value) {
// 		if (!TextUtil.matches(getValue(), value)) {
// 			throw new FormsLibraryException("Label value '" + getValue() + "' does not match " + value);
// 		}
// 		Logger.info("Value '" + getValue() + "' matches '" + value + "'.");
// 	}
// 
// }


// Path: src/main/java/org/robotframework/formslibrary/keyword/LabelKeywords.java
import org.robotframework.formslibrary.operator.LabelOperator;
import org.robotframework.javalib.annotation.ArgumentNames;
import org.robotframework.javalib.annotation.RobotKeyword;
import org.robotframework.javalib.annotation.RobotKeywords;

package org.robotframework.formslibrary.keyword;


@RobotKeywords
public class LabelKeywords {

	@RobotKeyword("Get label content.\n\n" + "Example:\n" + "| \n" + "| ${textFieldValue}= | Get Field | _username_ | \n")
	@ArgumentNames({ "identifier" })
	public String getLabel(String identifier) {

		return new LabelOperator(identifier).getValue();
