Gets the row header text value as a string for use in javascript

@param context
@return
544617
protected String getRowHeaderValueAsString(final FacesContext context) {
        final ValueExpression veRowHeader = getRowHeaderValueExpression();
        final Object value = veRowHeader.getValue(context.getELContext());
        if (value == null) {
            return Constants.EMPTY_STRING;
        }
        else {
            return value.toString();
        }
    }
1366500
public T header(Header name, String value) {
		return header(name.toString(), value, true);
	}
927205
protected String[] getRow(String masterLanguage, ITextNode textNode, IValueNode valueNode) {
    List<String> row = new ArrayList<>();

    row.add(textNode.getKey());
    row.add(valueNode.getStatus().getName());
    if (!valueNode.getLanguage().equals(masterLanguage)) {
      IValueNode masterValueNode = textNode.getValueNode(masterLanguage);
      if (masterValueNode == null) {
        row.add("");
      } else {
        row.add(masterValueNode.getValue());
      }
    }
    row.add(valueNode.getValue());
    row.add(textNode.getContext());

    return row.toArray(new String[row.size()]);
  }
380687
public static String getTicketGrantingTicketId(final RequestContext context) {
        val tgtFromRequest = getTicketGrantingTicketIdFrom(context.getRequestScope());
        val tgtFromFlow = getTicketGrantingTicketIdFrom(context.getFlowScope());
        return tgtFromRequest != null ? tgtFromRequest : tgtFromFlow;
    }
144417
public static String contextAsString(final Set<Attribute> context) {
        StringBuilder sb = new StringBuilder();
        for (Attribute attribute : context) {
            if(sb.length()<1) {
                sb.append("{");
            }else {
                sb.append(", ");
            }
            sb.append(Attribute.propertyKeyForURIBase(attribute, EnvironmentalContext.URI_BASE))
              .append("=")
              .append(attribute.getValue())
              ;
        }
        sb.append("}");
        return sb.toString();
    }
1197014
private List<TableRow> getTableRows(Context context, Cursor cursor) {

        List<TableRow> rows = new ArrayList<>();
        TableRow header = new TableRow(context);
        cursor.moveToFirst();

        int paddingPx = context.getResources().getDimensionPixelSize(R.dimen.hsql_column_padding);

        for (int col = 0; col < cursor.getColumnCount(); col++) {
            TextView textView = new TextView(context);
            textView.setText(cursor.getColumnName(col));
            textView.setPadding(paddingPx, paddingPx / 2, paddingPx, paddingPx / 2);
            textView.setTypeface(Typeface.DEFAULT_BOLD);
            header.addView(textView);
        }

        rows.add(header);

        boolean alternate = true;

        if (cursor.getCount() == 0) {
            return rows;
        }

        do {
            TableRow row = new TableRow(context);
            for (int col = 0; col < cursor.getColumnCount(); col++) {
                TextView textView = new TextView(context);
                if (cursor.getType(col) == FIELD_TYPE_BLOB) {
                    //We don't need to display the contents of the blob
                    textView.setText(R.string.hsql_data_type_blob);
                } else {
                    textView.setText(cursor.getString(col));
                }
                textView.setPadding(paddingPx, paddingPx / 2, paddingPx, paddingPx / 2);
                int rowBgRes;
                if (alternate) {
                    rowBgRes = R.color.hsql_table_row_colour_alt;
                } else {
                    rowBgRes = R.color.hsql_table_row_colour_standard;
                }
                textView.setBackgroundColor(context.getResources().getColor(rowBgRes));
                row.addView(textView);
            }

            alternate = !alternate;
            rows.add(row);

        } while (cursor.moveToNext());

        cursor.close();
        return rows;
    }
1048333
public UIContext getRowContext(final Object rowBean, final int rowIndex) {
		RepeaterModel model = getOrCreateComponentModel();
		Object rowId = getRowId(rowBean);

		if (model.rowContextMap == null) {
			model.rowContextMap = new HashMap<>();
		}

		SubUIContext rowContext = model.rowContextMap.get(rowId);

		if (rowContext == null) {
			int seq = model.rowContextIdSequence++;

			// Just for the first row, check rowId has implemented equals/hashcode. Assumes each row will use the same
			// row id class.
			if (seq == 0) {
				try {
					if (rowId.getClass() != rowId.getClass().getMethod("equals", Object.class).
							getDeclaringClass()
							|| rowId.getClass() != rowId.getClass().getMethod("hashCode").
							getDeclaringClass()) {
						LOG.warn("Row id class ["
								+ rowId.getClass().getName()
								+ "] has not implemented equals or hashcode. This can cause errors when matching a row context. "
								+ "Implement equals/hashcode on the row bean or refer to setRowIdBeanProperty method on WRepeater.");
					}
				} catch (Exception e) {
					LOG.info(
							"Error checking equals and hashcode implementation on the row id. " + e.
							getMessage(), e);
				}
			}

			// Get the row render id name (used in naming context for each row)
			String renderId = getRowIdName(rowBean, rowId);
			if (renderId == null) {
				// Just use the context id as the row naming context
				rowContext = new SubUIContext(this, seq);
			} else {
				// Check ID is properly formed
				// Must only contain letters, digits and or underscores
				Matcher matcher = ROW_ID_CONTEXT_NAME_PATTERN.matcher(renderId);
				if (!matcher.matches()) {
					throw new IllegalArgumentException(
							"Row idName ["
							+ renderId
							+ "] must start with a letter and followed by letters, digits and or underscores.");
				}
				rowContext = new SubUIContext(this, seq, renderId);
			}
			rowContext.setRowId(rowId);
			model.rowContextMap.put(rowId, rowContext);
		}

		rowContext.setRowIndex(rowIndex); // just incase it has changed
		return rowContext;
	}
155711
public String getContextStr(Sentence sent, int wordIdx){
		String cpStr = "";
		
		for (int i = 0; i < cntxGenVector.size(); ++i){
			String [] context = cntxGenVector.get(i).getContext(sent, wordIdx);
			if (context != null){
				for (int j = 0; j < context.length; ++j){
					if (context[j].trim().equals("")) continue;
					cpStr += context[j] + " ";
				}
			}
		}
		
		return cpStr.trim();
	}
649088
public String getTextAt(final int row, final int column) {
		final Object value = getValueAt(row, column);

		String text = "";
		if (value != null) {
			final TableCellRenderer renderer = getCellRenderer(row, column);
			final Component rendererComponent = renderer.getTableCellRendererComponent(this, value,
					false, false, row, column);
			if (rendererComponent instanceof JLabel) {
				text = ((JLabel) rendererComponent).getText();
				text = getToolTipTextIfNoText(text, rendererComponent);
			} else if (rendererComponent instanceof JTextComponent) {
				text = ((JTextComponent) rendererComponent).getText();
				text = getToolTipTextIfNoText(text, rendererComponent);
			} else if (rendererComponent instanceof JCheckBox) {
				text = String
						.valueOf(((JCheckBox) rendererComponent).isSelected() ? "vrai" : "faux");
			} else {
				text = value.toString();
			}
		}
		return text;
	}
278807
public String getHeader(String headerName) {
        List<String> headers = null;
        for (String h : headers().keySet()) {
            if (headerName.equalsIgnoreCase(h)) {
                headers = headers().get(h);
                break;
            }
        }
        if (headers == null || headers.isEmpty()) {
            return null;
        }
        return headers.get(0);
    }
85397
public String getHeaderValue(String name) {
        if (headers == null) {
            return null;
        }
        return headers.get(name);
    }
467145
@Override
    protected IIOMetadataNode getStandardTextNode() {
        if (!header.getName().isEmpty()) {
            IIOMetadataNode text = new IIOMetadataNode("Text");

            IIOMetadataNode textEntry = new IIOMetadataNode("TextEntry");
            textEntry.setAttribute("keyword", "name");
            textEntry.setAttribute("value", header.getName());
            text.appendChild(textEntry);

            return text;
        }

        return null;
    }
223750
@GET
	@Path("/{keyspace}/{columnFamily}/{key}")
	public JSONObject getRow(@PathParam("keyspace") String keyspace, @PathParam("columnFamily") String columnFamily,
			@PathParam("key") String key, @HeaderParam(CONSISTENCY_LEVEL_HEADER) String consistencyLevel)
			throws Exception {
		if (logger.isDebugEnabled())
			logger.debug("Getting row [" + keyspace + "]:[" + columnFamily + "]:[" + key + "]");

		return getCassandraStorage().getSlice(keyspace, columnFamily, key,
				config.getConsistencyLevel(consistencyLevel));
	}
1077137
public String header(String name) {
		final List<String> values = headerList(name);
		if(CollectionUtil.isEmpty(values)) {
			return null;
		}
		return values.get(0);
	}
1105804
public Row withPaddedHeader(final HeaderDefinition headerDefinition) {
    if (_headerDefinition != headerDefinition) {
      String[] values = new String[headerDefinition.size()];
      System.arraycopy(_values, 0, values, 0, _values.length);
      return Row.of(headerDefinition, values);
    } else {
      return this;
    }
  }
166076
public String getFirstHeaderStringValue(String name) {
    Object value = get(name.toLowerCase(Locale.US));
    if (value == null) {
      return null;
    }
    Class<? extends Object> valueClass = value.getClass();
    if (value instanceof Iterable<?> || valueClass.isArray()) {
      for (Object repeatedValue : Types.iterableOf(value)) {
        return toStringValue(repeatedValue);
      }
    }
    return toStringValue(value);
  }
281713
public static String getNumericValueString(InstancesHeader context,
            int attIndex, double value) {
        if (context != null) {
            int instAttIndex = attIndex < context.classIndex() ? attIndex
                    : attIndex + 1;
            if (instAttIndex < context.numAttributes()) {
                if (context.attribute(instAttIndex).isDate()) {
                    return context.attribute(instAttIndex).formatDate(value);
                }
            }
        }
        return Double.toString(value);
    }