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;
/**
*
* <xs:complexType name="Action">
* @author Adrian Cole
*
*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -29,6 +29,7 @@ import javax.xml.bind.annotation.XmlElement;
* 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.
* 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
*/
public class Layout {

View File

@ -30,7 +30,7 @@ import java.util.Map;
import static com.google.common.base.Preconditions.checkNotNull;
/**
*
* <xs:complexType name="Link">
* @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;
/**
*
* <xs:complexType name="NetworkReference">
* @author Jason King
*
*/

View File

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

View File

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

View File

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

View File

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

View File

@ -23,6 +23,7 @@ import org.jclouds.javax.annotation.Nullable;
import javax.xml.bind.annotation.XmlElement;
/**
* <xs:complexType name="VirtualDisk">
* @author Jason King
*/
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;
/**
*
* <xs:complexType name="VirtualMachine">
* @author Jason King
*
*/
@ -57,6 +57,7 @@ public class VirtualMachine extends BaseNamedResource<VirtualMachine> {
}
public static class Builder extends BaseNamedResource.Builder<VirtualMachine> {
//TODO There are some more fields
private Links links = new Links();
private Actions actions = new Actions();
private Tasks tasks = new Tasks();

View File

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

View File

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

View File

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