wrapper -> view; typo undo

This commit is contained in:
Adrian Cole 2012-04-23 19:25:22 -07:00
parent df7d2acbb4
commit 95347a5b96
10 changed files with 25 additions and 25 deletions

View File

@ -25,7 +25,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Set;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;
import com.google.common.base.Objects;
@ -106,7 +106,7 @@ public class Capabilities {
}
@XmlElementView(name = "SupportedHardwareVersions")
@XmlElementWrapper(name = "SupportedHardwareVersions")
@XmlElement(name = "SupportedHardwareVersion")
protected Set<String> supportedHardwareVersions = Sets.newLinkedHashSet();

View File

@ -24,7 +24,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Set;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
@ -129,7 +129,7 @@ public class Catalog extends Entity {
@XmlElement(name = "Owner")
private Owner owner;
@XmlElementView(name = "CatalogItems")
@XmlElementWrapper(name = "CatalogItems")
@XmlElement(name = "CatalogItem")
private Set<Reference> catalogItems;
@XmlElement(name = "IsPublished")

View File

@ -25,7 +25,7 @@ import java.util.List;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@ -124,7 +124,7 @@ public class Entity extends Resource {
@XmlElement(name = "Description")
private String description;
@XmlElementView(name = "Tasks")
@XmlElementWrapper(name = "Tasks")
@XmlElement(name = "Task")
private List<Task> tasks;
@XmlAttribute

View File

@ -24,7 +24,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Set;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@ -135,7 +135,7 @@ public class Group extends Entity {
@XmlElement(name = "NameInSource")
protected String nameInSource;
@XmlElementView(name = "UsersList")
@XmlElementWrapper(name = "UsersList")
@XmlElement(name = "UserReference")
protected Set<Reference> usersList = Sets.newLinkedHashSet();
@XmlElement(name = "Role")

View File

@ -26,7 +26,7 @@ import java.util.Set;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
@ -171,7 +171,7 @@ public abstract class ResourceEntity extends Entity {
}
}
@XmlElementView(name = "Files")
@XmlElementWrapper(name = "Files")
@XmlElement(name = "File")
private Set<File> files;
@XmlAttribute

View File

@ -24,7 +24,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@ -348,7 +348,7 @@ public class User extends Entity {
private Reference role;
@XmlElement(name = "Password")
private String password;
@XmlElementView(name = "GroupReferences")
@XmlElementWrapper(name = "GroupReferences")
private List<Reference> groups;
protected User(Builder<?> builder) {

View File

@ -28,7 +28,7 @@ import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import org.jclouds.dmtf.ovf.DeploymentOptionSection;
@ -146,7 +146,7 @@ public class VAppTemplate extends ResourceEntity {
@XmlElement(name = "Owner")
private Owner owner;
@XmlElementView(name = "Children")
@XmlElementWrapper(name = "Children")
@XmlElement(name = "Vm")
private Set<VAppTemplate> children = Sets.newLinkedHashSet();
@XmlElementRefs({

View File

@ -25,7 +25,7 @@ import java.util.Set;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
@ -223,10 +223,10 @@ public class Vdc extends Entity {
private CapacityWithUsage storageCapacity;
@XmlElement(name = "ComputeCapacity", required = true)
private ComputeCapacity computeCapacity;
@XmlElementView(name = "ResourceEntities")
@XmlElementWrapper(name = "ResourceEntities")
@XmlElement(name = "ResourceEntity")
private Set<Reference> resourceEntities = Sets.newLinkedHashSet();
@XmlElementView(name = "AvailableNetworks")
@XmlElementWrapper(name = "AvailableNetworks")
@XmlElement(name = "Network")
protected Set<Reference> availableNetworks = Sets.newLinkedHashSet();
@XmlElement(name = "Capabilities")

View File

@ -24,7 +24,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Set;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@ -208,19 +208,19 @@ public class AdminOrg extends Org {
@XmlElement(name = "Settings", required = true)
private OrgSettings settings;
@XmlElementView(name = "Users")
@XmlElementWrapper(name = "Users")
@XmlElement(name = "UserReference")
protected Set<Reference> users = Sets.newLinkedHashSet();
@XmlElementView(name = "Groups")
@XmlElementWrapper(name = "Groups")
@XmlElement(name = "GroupReference")
protected Set<Reference> groups = Sets.newLinkedHashSet();
@XmlElementView(name = "Catalogs")
@XmlElementWrapper(name = "Catalogs")
@XmlElement(name = "CatalogReference")
private Set<Reference> catalogs = Sets.newLinkedHashSet();
@XmlElementView(name = "Vdcs")
@XmlElementWrapper(name = "Vdcs")
@XmlElement(name = "Vdc")
protected Set<Reference> vdcs = Sets.newLinkedHashSet();
@XmlElementView(name = "Networks")
@XmlElementWrapper(name = "Networks")
@XmlElement(name = "Network")
protected Set<Reference> networks = Sets.newLinkedHashSet();

View File

@ -26,7 +26,7 @@ import java.util.List;
import java.util.Set;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementView;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@ -143,7 +143,7 @@ public class ControlAccessParams {
protected Boolean sharedToEveryone;
@XmlElement(name = "EveryoneAccessLevel")
protected String everyoneAccessLevel;
@XmlElementView(name = "AccessSettings")
@XmlElementWrapper(name = "AccessSettings")
@XmlElement(name = "AccessSetting")
protected List<AccessSetting> accessSettings;