package org.buddycloud.channelserver.channel.node.configuration.field;

public class Advertise extends Field {
  public static final String FIELD_NAME = "buddycloud#advertise_node";
  public static final String DEFAULT_VALUE = Advertise.models.TRUE.toString();

  public Advertise() {
    name = FIELD_NAME;
  }

  public enum models {
    TRUE("true"), FALSE("false");
    String model = null;

    private models(String model) {
      this.model = model;
    }

    public String toString() {
      return model;
    }
  }

  public boolean isValid() {
    return (getValue().equals(Advertise.models.TRUE.toString()) || getValue().equals(
        Advertise.models.FALSE.toString()));
  }
}

@@ -361,16 +361,58 @@
 %22false%22)
+, JOINABLE(%22joinable%22), LOCALLY(%22locally%22)
 ;%0A    St
@@ -656,16 +656,28 @@
 ng()) %7C%7C
+%0A           
  getValu
@@ -687,25 +687,84 @@
 .equals(
-%0A        
+Advertise.models.FALSE.toString()) %7C%7C%0A            getValue().equals(
 Advertis
@@ -764,36 +764,39 @@
 dvertise.models.
-FALS
+JOINABL
 E.toString()));%0A
@@ -792,16 +792,91 @@
 tring())
+ %7C%7C%0A            getValue().equals(Advertise.models.LOCALLY.toString())%0A    
 );%0A  %7D%0A%7D

Add new advertise values to validation