Пример #1
0
 @Override
 List<JAXBElement<? extends IdentifiableType>> getContents() {
   RegistryObjectListType list = response.getRegistryObjectList();
   if (list == null) {
     return Collections.emptyList();
   }
   return list.getIdentifiable();
 }
Пример #2
0
 @Override
 public void setErrors(List<EbXMLRegistryError> errors) {
   RegistryErrorList value = EbXMLFactory30.RS_FACTORY.createRegistryErrorList();
   response.setRegistryErrorList(value);
   List<RegistryError> list = value.getRegistryError();
   for (EbXMLRegistryError error : errors) {
     RegistryError regError = ((EbXMLRegistryError30) error).getInternal();
     list.add(regError);
   }
 }
Пример #3
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;
  }
Пример #4
0
 @Override
 public void setStatus(Status status) {
   response.setStatus(Status.getOpcode30(status));
 }
Пример #5
0
 @Override
 public Status getStatus() {
   return Status.valueOfOpcode(response.getStatus());
 }