test/org/ohmage/test/ParameterSets.java
private static void initUrnRoleLists() {
    validUrnCampaignRoleLists.add(InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(InputKeys.ENTITY_ROLE_SEPARATOR);

    validUrnCampaignRoleLists.add(InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(InputKeys.LIST_ITEM_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);

    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);

    StringBuilder validUrnCampaignRoleListBuilder = new StringBuilder();
    StringBuilder validUrnDocumentRoleListBuilder = new StringBuilder();
    for (String validUrn : validUrns) {
      for (Campaign.Role role : Campaign.Role.values()) {
        validUrnCampaignRoleListBuilder.append(validUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role + InputKeys.LIST_ITEM_SEPARATOR);
        validUrnCampaignRoleLists.add(validUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role);
      }
      validUrnCampaignRoleLists.add(validUrnCampaignRoleListBuilder.toString());

      for (Document.Role role : Document.Role.values()) {
        validUrnDocumentRoleListBuilder.append(validUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role + InputKeys.LIST_ITEM_SEPARATOR);
        validUrnDocumentRoleLists.add(validUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role);
      }
      validUrnDocumentRoleLists.add(validUrnDocumentRoleListBuilder.toString());
    }

    StringBuilder invalidUrnCampaignRoleListBuilder = new StringBuilder();
    StringBuilder invalidUrnDocumentRoleListBuilder = new StringBuilder();
    for (String invalidUrn : invalidUrns) {
      for (Campaign.Role role : Campaign.Role.values()) {
        invalidUrnCampaignRoleListBuilder.append(invalidUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role + InputKeys.LIST_ITEM_SEPARATOR);
        invalidUrnCampaignRoleLists.add(invalidUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role);
      }
      invalidUrnCampaignRoleLists.add(invalidUrnCampaignRoleListBuilder.toString());

      for (Document.Role role : Document.Role.values()) {
        invalidUrnDocumentRoleListBuilder.append(invalidUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role + InputKeys.LIST_ITEM_SEPARATOR);
        invalidUrnDocumentRoleLists.add(invalidUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role);
      }
      invalidUrnDocumentRoleLists.add(invalidUrnDocumentRoleListBuilder.toString());
    }

    System.out.println("Valid URN, campaign role lists generated:");
    for (String validUrnCampaignRoleList : validUrnCampaignRoleLists) {
      System.out.println("\t" + validUrnCampaignRoleList);
    }
    System.out.println();

    System.out.println("Invalid URN, campaign role lists generated:");
    for (String invalidUrnCampaignRoleList : invalidUrnCampaignRoleLists) {
      System.out.println("\t" + invalidUrnCampaignRoleList);
    }
    System.out.println();

    System.out.println("Valid URN, document role lists generated:");
    for (String validUrnDocumentRoleList : validUrnDocumentRoleLists) {
      System.out.println("\t" + validUrnDocumentRoleList);
    }
    System.out.println();

    System.out.println("Invalid URN, document role lists generated:");
    for (String invalidUrnDocumentRoleList : invalidUrnDocumentRoleLists) {
      System.out.println("\t" + invalidUrnDocumentRoleList);
    }
    System.out.println();
  }
/**
   * Populates the valid and invalid URN, campaign role and URN, document role
   * collections.
   */
Populates the valid and invalid URN, campaign role and URN, document role
collections.
Populates the valid and invalid URN campaign role and URN document role collections .
private static void initUrnRoleLists() {
    validUrnCampaignRoleLists.add(InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnCampaignRoleLists.add(InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(InputKeys.LIST_ITEM_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnCampaignRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    validUrnDocumentRoleLists.add(
            InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.ENTITY_ROLE_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR
            + InputKeys.LIST_ITEM_SEPARATOR);
    StringBuilder validUrnCampaignRoleListBuilder = new StringBuilder();
    StringBuilder validUrnDocumentRoleListBuilder = new StringBuilder();
    for (String validUrn : validUrns) {
      for (Campaign.Role role : Campaign.Role.values()) {
        validUrnCampaignRoleListBuilder.append(validUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role + InputKeys.LIST_ITEM_SEPARATOR);
        validUrnCampaignRoleLists.add(validUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role);
      }
      validUrnCampaignRoleLists.add(validUrnCampaignRoleListBuilder.toString());
      for (Document.Role role : Document.Role.values()) {
        validUrnDocumentRoleListBuilder.append(validUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role + InputKeys.LIST_ITEM_SEPARATOR);
        validUrnDocumentRoleLists.add(validUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role);
      }
      validUrnDocumentRoleLists.add(validUrnDocumentRoleListBuilder.toString());
    }
    StringBuilder invalidUrnCampaignRoleListBuilder = new StringBuilder();
    StringBuilder invalidUrnDocumentRoleListBuilder = new StringBuilder();
    for (String invalidUrn : invalidUrns) {
      for (Campaign.Role role : Campaign.Role.values()) {
        invalidUrnCampaignRoleListBuilder.append(invalidUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role + InputKeys.LIST_ITEM_SEPARATOR);
        invalidUrnCampaignRoleLists.add(invalidUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role);
      }
      invalidUrnCampaignRoleLists.add(invalidUrnCampaignRoleListBuilder.toString());
      for (Document.Role role : Document.Role.values()) {
        invalidUrnDocumentRoleListBuilder.append(invalidUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role + InputKeys.LIST_ITEM_SEPARATOR);
        invalidUrnDocumentRoleLists.add(invalidUrn + InputKeys.ENTITY_ROLE_SEPARATOR + role);
      }
      invalidUrnDocumentRoleLists.add(invalidUrnDocumentRoleListBuilder.toString());
    }
    System.out.println("Valid URN, campaign role lists generated:");
    for (String validUrnCampaignRoleList : validUrnCampaignRoleLists) {
      System.out.println("\t" + validUrnCampaignRoleList);
    }
    System.out.println();
    System.out.println("Invalid URN, campaign role lists generated:");
    for (String invalidUrnCampaignRoleList : invalidUrnCampaignRoleLists) {
      System.out.println("\t" + invalidUrnCampaignRoleList);
    }
    System.out.println();
    System.out.println("Valid URN, document role lists generated:");
    for (String validUrnDocumentRoleList : validUrnDocumentRoleLists) {
      System.out.println("\t" + validUrnDocumentRoleList);
    }
    System.out.println();
    System.out.println("Invalid URN, document role lists generated:");
    for (String invalidUrnDocumentRoleList : invalidUrnDocumentRoleLists) {
      System.out.println("\t" + invalidUrnDocumentRoleList);
    }
    System.out.println();
  }
private static void initUrnRoleLists ( ) { validUrnCampaignRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnCampaignRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . ENTITY_ROLE_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR + InputKeys . LIST_ITEM_SEPARATOR ) ; StringBuilder validUrnCampaignRoleListBuilder = new StringBuilder ( ) ; StringBuilder validUrnDocumentRoleListBuilder = new StringBuilder ( ) ; for ( String validUrn : validUrns ) { for ( Campaign . Role role : Campaign . Role . values ( ) ) { validUrnCampaignRoleListBuilder . append ( validUrn + InputKeys . ENTITY_ROLE_SEPARATOR + role + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnCampaignRoleLists . add ( validUrn + InputKeys . ENTITY_ROLE_SEPARATOR + role ) ; } validUrnCampaignRoleLists . add ( validUrnCampaignRoleListBuilder . toString ( ) ) ; for ( Document . Role role : Document . Role . values ( ) ) { validUrnDocumentRoleListBuilder . append ( validUrn + InputKeys . ENTITY_ROLE_SEPARATOR + role + InputKeys . LIST_ITEM_SEPARATOR ) ; validUrnDocumentRoleLists . add ( validUrn + InputKeys . ENTITY_ROLE_SEPARATOR + role ) ; } validUrnDocumentRoleLists . add ( validUrnDocumentRoleListBuilder . toString ( ) ) ; } StringBuilder invalidUrnCampaignRoleListBuilder = new StringBuilder ( ) ; StringBuilder invalidUrnDocumentRoleListBuilder = new StringBuilder ( ) ; for ( String invalidUrn : invalidUrns ) { for ( Campaign . Role role : Campaign . Role . values ( ) ) { invalidUrnCampaignRoleListBuilder . append ( invalidUrn + InputKeys . ENTITY_ROLE_SEPARATOR + role + InputKeys . LIST_ITEM_SEPARATOR ) ; invalidUrnCampaignRoleLists . add ( invalidUrn + InputKeys . ENTITY_ROLE_SEPARATOR + role ) ; } invalidUrnCampaignRoleLists . add ( invalidUrnCampaignRoleListBuilder . toString ( ) ) ; for ( Document . Role role : Document . Role . values ( ) ) { invalidUrnDocumentRoleListBuilder . append ( invalidUrn + InputKeys . ENTITY_ROLE_SEPARATOR + role + InputKeys . LIST_ITEM_SEPARATOR ) ; invalidUrnDocumentRoleLists . add ( invalidUrn + InputKeys . ENTITY_ROLE_SEPARATOR + role ) ; } invalidUrnDocumentRoleLists . add ( invalidUrnDocumentRoleListBuilder . toString ( ) ) ; } System . out . println ( "Valid URN, campaign role lists generated:" ) ; for ( String validUrnCampaignRoleList : validUrnCampaignRoleLists ) { System . out . println ( "\t" + validUrnCampaignRoleList ) ; } System . out . println ( ) ; System . out . println ( "Invalid URN, campaign role lists generated:" ) ; for ( String invalidUrnCampaignRoleList : invalidUrnCampaignRoleLists ) { System . out . println ( "\t" + invalidUrnCampaignRoleList ) ; } System . out . println ( ) ; System . out . println ( "Valid URN, document role lists generated:" ) ; for ( String validUrnDocumentRoleList : validUrnDocumentRoleLists ) { System . out . println ( "\t" + validUrnDocumentRoleList ) ; } System . out . println ( ) ; System . out . println ( "Invalid URN, document role lists generated:" ) ; for ( String invalidUrnDocumentRoleList : invalidUrnDocumentRoleLists ) { System . out . println ( "\t" + invalidUrnDocumentRoleList ) ; } System . out . println ( ) ; }
Populates the valid and invalid URN, campaign role and URN, document role
 collections.
Populates the valid and invalid URN campaign role and URN document role collections .