Changeset 1640 for ComponentRegistry/branches/jeaferversion/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/model/RegisterResponse.java
- Timestamp:
- 12/08/11 12:53:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/jeaferversion/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/model/RegisterResponse.java
r1635 r1640 1 1 package clarin.cmdi.componentregistry.model; 2 3 import java.util.ArrayList;4 import java.util.List;5 2 6 3 import javax.xml.bind.annotation.XmlAccessType; … … 8 5 import javax.xml.bind.annotation.XmlAttribute; 9 6 import javax.xml.bind.annotation.XmlElement; 10 import javax.xml.bind.annotation.XmlElementWrapper;11 import javax.xml.bind.annotation.XmlElements;12 7 import javax.xml.bind.annotation.XmlRootElement; 13 8 … … 15 10 @XmlAccessorType(XmlAccessType.FIELD) 16 11 @XmlRootElement(name = "registerResponse") 17 public class RegisterResponse { 18 19 @XmlAttribute(required = true) 20 private Boolean isInUserSpace; 12 public class RegisterResponse extends ComponentRegistryResponse { 21 13 22 14 @XmlAttribute(required = true) 23 15 private Boolean isProfile; 24 16 25 @XmlAttribute(required = true)26 private Boolean registered;27 28 29 @XmlElementWrapper(name = "errors", required = false)30 @XmlElements(@XmlElement(name = "error", type = String.class))31 private List<String> errors = new ArrayList<String>();32 33 17 @XmlElement 34 18 private AbstractDescription description; 35 @XmlElement36 private Comment comment;37 38 39 public void setRegistered(boolean registered) {40 this.registered = registered;41 }42 43 public boolean isRegistered() {44 return registered;45 }46 47 public void setErrors(List<String> errors) {48 this.errors = errors;49 }50 51 public List<String> getErrors() {52 return errors;53 }54 55 public void addError(String error) {56 getErrors().add(error);57 }58 19 59 20 public void setDescription(AbstractDescription description) { 60 21 this.description = description; 61 }62 63 public void setComment(Comment comment) {64 this.comment = comment;65 }66 67 public Comment getComment() {68 return comment;69 22 } 70 23 … … 80 33 this.isProfile = isProfile; 81 34 } 82 83 public void setIsInUserSpace(Boolean isInUserSpace) {84 this.isInUserSpace = isInUserSpace;85 }86 87 public Boolean isInUserSpace() {88 return isInUserSpace;89 }90 35 91 36 }
Note: See TracChangeset
for help on using the changeset viewer.