Example #1
0
    public Petition(L2PcInstance petitioner, String petitionText, int petitionType) {
      petitionType--;
      _id = IdFactory.getInstance().getNextId();
      if (petitionType >= PetitionType.values().length) {
        _log.warn(
            "PetitionManager:Petition : invalid petition type (received type was +1) : "
                + petitionType);
      }
      _type = PetitionType.values()[petitionType];
      _content = petitionText;

      _petitioner = petitioner;
    }
Example #2
0
 public String getTypeAsString() {
   return _type.toString().replace("_", " ");
 }