コード例 #1
0
 public void validate() throws ParseException {
   super.validate();
   if (this.name == null) {
     if (this.title == null) {
       throw new ParseException("at least one of name or title must be present");
     }
   }
 }
コード例 #2
0
  public void toString(StringBuffer var1) {
    StringBuffer var2 = var1.append("Organization");
    super.toString(var1);
    if (this.name != null) {
      StringBuffer var3 = var1.append(" name:");
      String var4 = this.name;
      var3.append(var4);
    }

    if (this.title != null) {
      StringBuffer var6 = var1.append(" title:");
      String var7 = this.title;
      var6.append(var7);
    }
  }