Print a work group.

@param value WorkGroup instance
@return work group value
766784
public static final String printWorkGroup(WorkGroup value)
   {
      return (Integer.toString(value == null ? WorkGroup.DEFAULT.getValue() : value.getValue()));
   }
1363197
public String convert(final String value, final boolean is4YearTerm) {

        final Matcher matcher = PATTERN_NUM.matcher(value);
        if(!matcher.matches()) {
            // 一致しない場合は、単純に数値の変換
            return replaceSimple(value);
        }

        final String before = matcher.group(1);
        final String num = matcher.group(2);
        final String after = matcher.group(3);

        if(is4YearTerm && num.length() == 4) {
            // 年の桁は、単純に数値変換する
            return replaceSimple(before) + replaceSimple(num) + replaceSimple(after);

        } else {
            return replaceSimple(before) + replaceDisits(num) + replaceSimple(after);

        }

    }
419194
public ElementWithOptions addOptionToGroup(Object value, String text, String groupId) {
        String valueString = "";
        if (value != null) {
            valueString = value.toString();
        }

        return addOptionToGroup(valueString, text, groupId);
    }
1020925
public function printMoneyFromValue($value)
    {
        $targetCurrency = $this
            ->currencyWrapper
            ->get();

        $money = Money::create(
            $value,
            $targetCurrency
        );

        return $this->printMoney($money);
    }
41635
protected Color parseRGB(String value)
    {
        StringTokenizer items = new StringTokenizer(value, ",");

        try {
            int red = 0;
            if (items.hasMoreTokens()) {
                red = Integer.parseInt(items.nextToken().trim());
            }

            int green = 0;
            if (items.hasMoreTokens()) {
                green = Integer.parseInt(items.nextToken().trim());
            }

            int blue = 0;
            if (items.hasMoreTokens()) {
                blue = Integer.parseInt(items.nextToken().trim());
            }

            return new Color(red, green, blue);
        } catch (NumberFormatException ex) {
            throw new ConversionException(value + "is not a valid RGB colo", ex);
        }
    }
1154078
public OptionGroup addOption(String value, String text) {
        return this.addOption(new Option(value, text));
    }
273231
@Deprecated
	public ChainWriter printEU(String value) {
		int len = value.length();
		for (int c = 0; c < len; c++) {
			char ch = value.charAt(c);
			if (ch == ' ') out.print('+');
			else {
				if ((ch >= '0' && ch <= '9') || (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) out.print(ch);
				else {
					out.print('%');
					out.print(getHex(ch >>> 4));
					out.print(getHex(ch));
				}
			}
		}
		return this;
	}
1182284
@Override
    @Path("/{groupName}")
    @ApiOperation(value="Retrieve a workgroup or all workgroups",
        notes="If groupName is not present, returns all workgroups.",
        response=Workgroup.class, responseContainer="List")
    public JSONObject get(String path, Map<String,String> headers)
    throws ServiceException, JSONException {
        UserServices userServices = ServiceLocator.getUserServices();
        try {
            String groupName = getSegment(path, 1);
            if (groupName == null) // check parameter
                groupName = getParameters(headers).get("name");
            if (groupName != null) {
                Workgroup group = userServices.getWorkgroup(groupName);
                if (group == null)
                    throw new ServiceException(ServiceException.NOT_FOUND, "Workgroup not found: " + groupName);
                return group.getJson();
            }
            else {
                return userServices.getWorkgroups().getJson();
            }
        }
        catch (ServiceException ex) {
            throw ex;
        }
        catch (Exception ex) {
            throw new ServiceException(ex.getMessage(), ex);
        }
    }
1322648
public static String print(final Object value) {
        if (value == null) {
            return "null";
        }
        if (value instanceof String) {
            return '"' + value.toString() + '"';
        }
        if (value instanceof Character) {
            return printChar((Character) value);
        }
        if (value instanceof Long) {
            return value + "L";
        }
        if (value instanceof Double) {
            return value + "d";
        }
        if (value instanceof Float) {
            return value + "f";
        }
        if (value instanceof Short) {
            return "(short) " + value;
        }
        if (value instanceof Byte) {
            return String.format("(byte) 0x%02X", (Byte) value);
        }
        if (value instanceof Map) {
            return printMap((Map<?, ?>) value);
        }
        if (value.getClass().isArray()) {
            return printValues("[", ", ", "]", new Iterator<Object>() {
                private int currentIndex = 0;

                public boolean hasNext() {
                    return currentIndex < Array.getLength(value);
                }

                public Object next() {
                    return Array.get(value, currentIndex++);
                }

                public void remove() {
                    throw new UnsupportedOperationException("cannot remove items from an array");
                }
            });
        }
        if (value instanceof FormattedText) {
            return (((FormattedText) value).getText());
        }

        return descriptionOf(value);
    }
706320
public boolean containsValue(String group, String value) {
		group = StrUtil.nullToEmpty(group).trim();
		readLock.lock();
		try {
			final LinkedHashMap<String, String> valueMap = this.get(group);
			if (MapUtil.isNotEmpty(valueMap)) {
				return valueMap.containsValue(value);
			}
		} finally {
			readLock.unlock();
		}
		return false;
	}
193430
public static final BigInteger printTimeUnit(TimeUnit value)
   {
      return (BigInteger.valueOf(value == null ? TimeUnit.DAYS.getValue() + 1 : value.getValue() + 1));
   }
1314893
public ElementWithOptions addOptionToGroup(String value, String text, String groupId) {
        if (value == null) {
            value = "";
        }

        value = value.trim();

        this.addOptionToGroup(new Option(value, text), groupId);

        return this;
    }
1366718
public void println(String value) {
        print(value);
        out.println();
        out.flush();
        newLine = true;
    }
158635
public static String getSInt( int Value ) {
		//
		String Result = "";
		//
		Result = String.format( "%d", Value );
		//
		return Result;
	}
977405
void doGroupSend(String group, Object value) {
    checkOpen();
    JsonObject message = createMessage(value)
        .putString("action", "group")
        .putString("group", group);
    if (open && !paused) {
      if (log.isDebugEnabled()) {
        log.debug(String.format("%s - Group send: Group[group=%s, id=%d, message=%s", this, group, message.getLong("id"), value));
      }
      eventBus.send(inAddress, message);
    }
    for (OutputHook hook : hooks) {
      hook.handleSend(value);
    }
    checkFull();
  }
862242
public String put(String group, String key, String value) {
		return this.groupedMap.put(group, key, value);
	}
1040988
public static void print(PrintWriter self, Object value) {
        self.print(InvokerHelper.toString(value));
    }