package com.adaptc.mws.plugins;

/**
 * Signifies a single node attribute definition in Moab Workload Manager, including
 * both the {@link #getValue()} and {@link #getDisplayName()} properties.
 * <p/>
 * Neither property is required to send a valid attribute to MWM, but if a display name is
 * used, a value must also be present.  A value may be present without a display name.
 * The value should be used by jobs to request a certain attribute a certain value, while the
 * display name is used for display purposes only.
 * @author bsaville
 */
public class ReportAttribute {
	private String value;
	private String displayName;

	/**
	 * Retrieves the value of this attribute, which is what must requested by a job.
	 * @return The current value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * Sets the value of this attribute, which is what must be requested by a job.
	 * @param value The value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * Retrieves the display name related to the value of this attribute.
	 * @return The current value
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * Sets the display name related to the value of this attribute.
	 * @param displayName The value to set
	 */
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	/**
	 * Returns the value and display name as a string, such as "[value:val, displayName:my value]".
	 * @return The total and available amounts in a human-readable string
	 */
	@Override
	public String toString() {
		return "[value:"+value+", displayName:"+displayName+"]";
	}
}

@@ -168,19 +168,20 @@
 tDisplay
-Nam
+Valu
 e()%7D pro
@@ -276,27 +276,28 @@
 f a display 
-nam
+valu
 e is%0A * used
@@ -370,19 +370,20 @@
 display 
-nam
+valu
 e.%0A * Th
@@ -482,19 +482,20 @@
 display 
-nam
+valu
 e is use
@@ -624,19 +624,20 @@
  display
-Nam
+Valu
 e;%0A%0A%09/**
@@ -1013,35 +1013,36 @@
 ves the display 
-nam
+valu
 e related to the
@@ -1127,19 +1127,20 @@
 tDisplay
-Nam
+Valu
 e() %7B%0A%09%09
@@ -1145,35 +1145,36 @@
 %09%09return display
-Nam
+Valu
 e;%0A%09%7D%0A%0A%09/**%0A%09 * 
@@ -1190,19 +1190,20 @@
 display 
-nam
+valu
 e relate
@@ -1254,19 +1254,20 @@
  display
-Nam
+Valu
 e The va
@@ -1305,19 +1305,20 @@
 tDisplay
-Nam
+Valu
 e(String
@@ -1325,19 +1325,20 @@
  display
-Nam
+Valu
 e) %7B%0A%09%09t
@@ -1348,19 +1348,20 @@
 .display
-Nam
+Valu
 e = disp
@@ -1363,19 +1363,20 @@
  display
-Nam
+Valu
 e;%0A%09%7D%0A%0A%09
@@ -1417,11 +1417,12 @@
 lay 
-nam
+valu
 e as
@@ -1460,19 +1460,20 @@
  display
-Nam
+Valu
 e:my val
@@ -1628,19 +1628,20 @@
  display
-Nam
+Valu
 e:%22+disp
@@ -1647,11 +1647,12 @@
 play
-Nam
+Valu
 e+%22%5D

Change displayName to displayValue in ReportAttribute