Beispiel #1
0
 //	public void setOptional(boolean optional) {
 //		this.optional = optional;
 //	}
 public void setOptional(String v) {
   this.optional = RepositoryConst.OPTIONAL_UNDEFINED;
   if (v != null) {
     if (RepositoryConst.OPTIONAL_TRUE.equalsIgnoreCase(v)) {
       this.optional = RepositoryConst.OPTIONAL_TRUE;
     } else if (RepositoryConst.OPTIONAL_FALSE.equalsIgnoreCase(v)) {
       this.optional = RepositoryConst.OPTIONAL_FALSE;
     }
   }
 }
Beispiel #2
0
 public boolean isOptionalTrue() {
   return (RepositoryConst.OPTIONAL_TRUE.equals(this.optional));
 }