Esempio n. 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()));
   appendInLines(result, 2, 5);
   return result.toString();
 }
Esempio n. 2
0
 /** Serializes the fields' components into the single string value (SWIFT format) */
 @Override
 public String getValue() {
   final StringBuilder result = new StringBuilder();
   // FIXME serialization
   // @NotImplemented
   int notImplemented;
   return result.toString();
 }
Esempio n. 3
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()));
   result.append("//");
   result.append(StringUtils.trimToEmpty(getComponent2()));
   result.append("/");
   result.append(StringUtils.trimToEmpty(getComponent3()));
   result.append("/");
   result.append(StringUtils.trimToEmpty(getComponent4()));
   return result.toString();
 }
Esempio n. 4
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()));
   result.append("//");
   result.append(StringUtils.trimToEmpty(getComponent2()));
   if (StringUtils.isNotEmpty(getComponent3())) {
     result.append(com.prowidesoftware.swift.io.writer.FINWriterVisitor.SWIFT_EOL);
     result.append(StringUtils.trimToEmpty(getComponent3()));
   }
   return result.toString();
 }
Esempio n. 5
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();
 }
Esempio n. 6
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();
 }