Issue 695: Added TODO's where there are more fields to add later. Added reference to complexType in Schema for reference

This commit is contained in:
Jason King 2011-11-18 16:50:18 +00:00
parent 16e16fa353
commit 7a74c3cf27
20 changed files with 29 additions and 8 deletions

View File

@ -33,7 +33,7 @@ import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;
/** /**
* * <xs:complexType name="Action">
* @author Adrian Cole * @author Adrian Cole
* *
*/ */

View File

@ -27,12 +27,13 @@ import java.net.URI;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;
/** /**
* <xs:complexType name="AssignedIpAddresses">
* @author Jason King * @author Jason King
*/ */
@XmlRootElement(name="AssignedIpAddresses") @XmlRootElement(name="AssignedIpAddresses")
public class AssignedIpAddresses extends BaseResource<AssignedIpAddresses> { public class AssignedIpAddresses extends BaseResource<AssignedIpAddresses> {
//TODO builder stuff //TODO links
@XmlElement(name = "Actions", required = true) @XmlElement(name = "Actions", required = true)
private Actions actions = new Actions(); private Actions actions = new Actions();

View File

@ -29,6 +29,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
import static org.jclouds.util.Preconditions2.checkNotEmpty; import static org.jclouds.util.Preconditions2.checkNotEmpty;
/** /**
* <xs:complexType name="DeviceIps">
* Wraps individual IpAddresses * Wraps individual IpAddresses
* @author Jason King * @author Jason King
*/ */

View File

@ -24,6 +24,7 @@ import javax.xml.bind.annotation.XmlElement;
/** /**
* Container for DeviceIps (ipAddresses) * Container for DeviceIps (ipAddresses)
* <xs:complexType name="DeviceNetwork">
* @author Jason King * @author Jason King
*/ */
public class DeviceNetwork extends BaseNamedResource<DeviceNetwork> { public class DeviceNetwork extends BaseNamedResource<DeviceNetwork> {

View File

@ -29,6 +29,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
/** /**
* Container for DeviceNetwork items * Container for DeviceNetwork items
* <xs:complexType name="DeviceNetworks">
* @author Jason King * @author Jason King
*/ */
public class DeviceNetworks { public class DeviceNetworks {

View File

@ -30,6 +30,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
/** /**
* Wraps individual Disk elements. * Wraps individual Disk elements.
* Needed because parsing is done with JAXB and it does not handle Generic collections * Needed because parsing is done with JAXB and it does not handle Generic collections
* <xs:complexType name="Disks">
* @author Jason King * @author Jason King
*/ */
public class Disks { public class Disks {

View File

@ -32,6 +32,7 @@ import java.util.Set;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;
/** /**
* <xs:complexType name="HardwareConfiguration">
* @author Jason King * @author Jason King
*/ */
public class HardwareConfiguration extends BaseResource<HardwareConfiguration> { public class HardwareConfiguration extends BaseResource<HardwareConfiguration> {
@ -51,6 +52,7 @@ public class HardwareConfiguration extends BaseResource<HardwareConfiguration> {
public static class Builder extends BaseResource.Builder<HardwareConfiguration> { public static class Builder extends BaseResource.Builder<HardwareConfiguration> {
// TODO Links
private Set<Action> actions = Sets.newLinkedHashSet(); private Set<Action> actions = Sets.newLinkedHashSet();
private int processorCount; private int processorCount;
private Memory memory; private Memory memory;

View File

@ -29,6 +29,7 @@ import javax.xml.bind.annotation.XmlElement;
* From the compute pool, only a subset is visible. * From the compute pool, only a subset is visible.
* To appear in a compute pool layout, virtual machines in the rows and groups must be allocated from the compute pool. * To appear in a compute pool layout, virtual machines in the rows and groups must be allocated from the compute pool.
* As physical devices are not allocated from the compute pool, they do not appear on compute pool layouts. * As physical devices are not allocated from the compute pool, they do not appear on compute pool layouts.
* <xs:complexType name="LayoutReference">
* @author Jason King * @author Jason King
*/ */
public class Layout { public class Layout {

View File

@ -30,7 +30,7 @@ import java.util.Map;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;
/** /**
* * <xs:complexType name="Link">
* @author Adrian Cole * @author Adrian Cole
* *
*/ */

View File

@ -31,7 +31,7 @@ import static com.google.common.base.CaseFormat.LOWER_CAMEL;
import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE; import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE;
/** /**
* * <xs:complexType name="NetworkReference">
* @author Jason King * @author Jason King
* *
*/ */

View File

@ -28,6 +28,7 @@ import java.util.Set;
/** /**
* Wraps individual VirtualNic elements. * Wraps individual VirtualNic elements.
* Needed because parsing is done with JAXB and it does not handle Generic collections * Needed because parsing is done with JAXB and it does not handle Generic collections
* <xs:complexType name="Nics">
* @author Jason King * @author Jason King
*/ */
public class Nics { public class Nics {

View File

@ -25,12 +25,14 @@ import java.net.URI;
import java.util.Map; import java.util.Map;
/** /**
* * <xs:complexType name="OperatingSystem">
* @author Jason King * @author Jason King
* *
*/ */
public class OperatingSystem extends BaseNamedResource<OperatingSystem> { public class OperatingSystem extends BaseNamedResource<OperatingSystem> {
//TODO There are other fields
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public static Builder builder() { public static Builder builder() {
return new Builder(); return new Builder();

View File

@ -35,7 +35,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlRootElement;
/** /**
* * <xs:complexType name="Task">
* @author Adrian Cole * @author Adrian Cole
* *
*/ */
@ -110,6 +110,7 @@ public class Task extends BaseResource<Task> {
} }
public static class Builder extends BaseResource.Builder<Task> { public static class Builder extends BaseResource.Builder<Task> {
//TODO There are additional fields
protected String operation; protected String operation;
protected Status status; protected Status status;
protected NamedResource impactedItem; protected NamedResource impactedItem;

View File

@ -31,11 +31,12 @@ import static com.google.common.base.Preconditions.checkNotNull;
/** /**
* Wraps individual Task elements. * Wraps individual Task elements.
* Needed because parsing is done with JAXB and it does not handle Generic collections * Needed because parsing is done with JAXB and it does not handle Generic collections
* <xs:complexType name="Tasks">
* @author Jason King * @author Jason King
*/ */
@XmlRootElement(name = "Tasks") @XmlRootElement(name = "Tasks")
public class Tasks { public class Tasks {
//TODO: There is a total count field
private LinkedHashSet<Task> tasks = Sets.newLinkedHashSet(); private LinkedHashSet<Task> tasks = Sets.newLinkedHashSet();
@XmlElement(name = "Task") @XmlElement(name = "Task")

View File

@ -25,6 +25,7 @@ import static com.google.common.base.CaseFormat.LOWER_CAMEL;
import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE; import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE;
/** /**
* <xs:simpleType name="ToolsStatus">
* @author Jason King * @author Jason King
*/ */
@XmlEnum @XmlEnum

View File

@ -23,6 +23,7 @@ import org.jclouds.javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
/** /**
* <xs:complexType name="VirtualDisk">
* @author Jason King * @author Jason King
*/ */
public class VirtualDisk { public class VirtualDisk {

View File

@ -36,7 +36,7 @@ import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE;
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkNotNull;
/** /**
* * <xs:complexType name="VirtualMachine">
* @author Jason King * @author Jason King
* *
*/ */
@ -57,6 +57,7 @@ public class VirtualMachine extends BaseNamedResource<VirtualMachine> {
} }
public static class Builder extends BaseNamedResource.Builder<VirtualMachine> { public static class Builder extends BaseNamedResource.Builder<VirtualMachine> {
//TODO There are some more fields
private Links links = new Links(); private Links links = new Links();
private Actions actions = new Actions(); private Actions actions = new Actions();
private Tasks tasks = new Tasks(); private Tasks tasks = new Tasks();

View File

@ -27,10 +27,13 @@ import java.util.LinkedHashSet;
import java.util.Set; import java.util.Set;
/** /**
* <xs:complexType name="VirtualMachineIpAddresses">
* @author Jason King * @author Jason King
*/ */
public class VirtualMachineIpAddresses { public class VirtualMachineIpAddresses {
//TODO There are more fields
@XmlElement(name = "AssignedIpAddresses") @XmlElement(name = "AssignedIpAddresses")
private AssignedIpAddresses assignedIpAddresses = new AssignedIpAddresses(); private AssignedIpAddresses assignedIpAddresses = new AssignedIpAddresses();

View File

@ -29,6 +29,7 @@ import java.util.Set;
/** /**
* Wraps individual VirtualMachine elements. * Wraps individual VirtualMachine elements.
* Needed because parsing is done with JAXB and it does not handle Generic collections * Needed because parsing is done with JAXB and it does not handle Generic collections
* <xs:complexType name="VirtualMachines">
* @author Jason King * @author Jason King
*/ */
@XmlRootElement(name="VirtualMachines") @XmlRootElement(name="VirtualMachines")

View File

@ -23,6 +23,7 @@ import org.jclouds.javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
/** /**
* <xs:complexType name="VirtualNic">
* @author Jason King * @author Jason King
*/ */
public class VirtualNic { public class VirtualNic {