コード例 #1
0
    public String getAsText() {
      if (this.getValue() != null) {
        @SuppressWarnings("unchecked")
        final Collection<ProposalSpecialReviewExemption> exemptions =
            (Collection<ProposalSpecialReviewExemption>) this.getValue();
        StringBuilder result = new StringBuilder();
        for (ProposalSpecialReviewExemption exemption : exemptions) {
          result.append(exemption.getExemptionTypeCode());
          result.append(",");
        }

        if (result.length() > 0) {
          return result.substring(0, result.length() - 1);
        }
      }
      return null;
    }
コード例 #2
0
    public String getAsText() {
      if (this.getValue() != null) {
        @SuppressWarnings("unchecked")
        final Collection<PropScienceKeyword> keywords =
            (Collection<PropScienceKeyword>) this.getValue();
        StringBuilder result = new StringBuilder();
        for (PropScienceKeyword keyword : keywords) {
          result.append(keyword.getScienceKeyword().getCode());
          result.append(",");
        }

        if (result.length() > 0) {
          return result.substring(0, result.length() - 1);
        } else {
          return "";
        }
      }
      return null;
    }