コード例 #1
0
 @Override
 public void setErrors(List<EbXMLRegistryError> errors) {
   RegistryErrorList value = EbXMLFactory30.RS_FACTORY.createRegistryErrorList();
   getInternal().setRegistryErrorList(value);
   List<RegistryError> list = value.getRegistryError();
   for (EbXMLRegistryError error : errors) {
     list.add(((EbXMLRegistryError30) error).getInternal());
   }
 }
コード例 #2
0
  @Override
  public List<EbXMLRegistryError> getErrors() {
    RegistryErrorList list = response.getRegistryErrorList();
    if (list == null) {
      return Collections.emptyList();
    }

    List<EbXMLRegistryError> errors = new ArrayList<EbXMLRegistryError>();
    for (RegistryError regError : list.getRegistryError()) {
      errors.add(new EbXMLRegistryError30(regError));
    }

    return errors;
  }