@Override List<JAXBElement<? extends IdentifiableType>> getContents() { RegistryObjectListType list = response.getRegistryObjectList(); if (list == null) { return Collections.emptyList(); } return list.getIdentifiable(); }
@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); } }
@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; }
@Override public void setStatus(Status status) { response.setStatus(Status.getOpcode30(status)); }
@Override public Status getStatus() { return Status.valueOfOpcode(response.getStatus()); }