Beispiel #1
0
 /** Serializes the fields' components into the single string value (SWIFT format) */
 @Override
 public String getValue() {
   final StringBuilder result = new StringBuilder();
   result.append(StringUtils.trimToEmpty(getComponent1()));
   result.append("/");
   result.append(StringUtils.trimToEmpty(getComponent2()));
   return result.toString();
 }
Beispiel #2
0
 /** Serializes the fields' components into the single string value (SWIFT format) */
 @Override
 public String getValue() {
   final StringBuilder result = new StringBuilder();
   result.append("/");
   result.append(StringUtils.trimToEmpty(getComponent1()));
   if (StringUtils.isNotEmpty(getComponent2())) {
     result.append(com.prowidesoftware.swift.io.writer.FINWriterVisitor.SWIFT_EOL);
     result.append(getComponent2());
   }
   return result.toString();
 }
Beispiel #3
0
 /** Serializes the fields' components into the single string value (SWIFT format) */
 @Override
 public String getValue() {
   final StringBuilder result = new StringBuilder();
   result.append(StringUtils.trimToEmpty(getComponent1()));
   if (org.apache.commons.lang.StringUtils.isNotEmpty(getComponent2())
       || org.apache.commons.lang.StringUtils.isNotEmpty(getComponent3())
       || org.apache.commons.lang.StringUtils.isNotEmpty(getComponent4())) {
     result.append("//");
     if (org.apache.commons.lang.StringUtils.isNotEmpty(getComponent2())) {
       result.append(StringUtils.trimToEmpty(getComponent2()));
     }
     if (org.apache.commons.lang.StringUtils.isNotEmpty(getComponent3())) {
       result.append(StringUtils.trimToEmpty(getComponent3()));
     }
     if (org.apache.commons.lang.StringUtils.isNotEmpty(getComponent4())) {
       result.append(StringUtils.trimToEmpty(getComponent4()));
     }
   }
   if (org.apache.commons.lang.StringUtils.isNotEmpty(getComponent5())) {
     result.append("/");
     result.append(StringUtils.trimToEmpty(getComponent5()));
   }
   return result.toString();
 }
Beispiel #4
0
 /** Serializes the fields' components into the single string value (SWIFT format) */
 @Override
 public String getValue() {
   final StringBuilder result = new StringBuilder();
   result.append(joinComponents());
   return result.toString();
 }