Beispiel #1
0
    /**
     * Create a new instance of $sequenceClassname and add the contents of all sequences given
     * inside. Mainly intended to create a sequence by adding subsequences
     *
     * @since 7.6
     */
    public static SequenceB newInstance(final SwiftTagListBlock... sequences) {
      final SequenceB result = new SequenceB();

      result.addTag(START_TAG);

      if (sequences != null && sequences.length > 0) {
        for (final SwiftTagListBlock s : sequences) {
          result.addTags(s.getTags());
        }
      }

      result.addTag(END_TAG);

      return result;
    }
Beispiel #2
0
 /**
  * Creates a sequence with the given content.
  *
  * @see SwiftTagListBlock
  */
 private SequenceB(final SwiftTagListBlock content) {
   super(content.getTags());
 }