EMMA Coverage Report (generated Wed Aug 10 12:30:04 EDT 2011)
[all classes][org.jclouds.trmk.vcloud_0_8.domain.internal]

COVERAGE SUMMARY FOR SOURCE FILE [NetworkImpl.java]

nameclass, %method, %block, %line, %
NetworkImpl.java100% (1/1)12%  (1/8)45%  (24/53)53%  (8/15)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class NetworkImpl100% (1/1)12%  (1/8)45%  (24/53)53%  (8/15)
compareTo (ReferenceType): int 0%   (0/1)0%   (0/11)0%   (0/1)
getDescription (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getFenceMode (): FenceMode 0%   (0/1)0%   (0/3)0%   (0/1)
getGateway (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getIps (): ReferenceType 0%   (0/1)0%   (0/3)0%   (0/1)
getNetmask (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getNetworkExtension (): ReferenceType 0%   (0/1)0%   (0/3)0%   (0/1)
NetworkImpl (String, String, URI, String, String, String, FenceMode, Referenc... 100% (1/1)100% (24/24)100% (8/8)

1/**
2 *
3 * Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
4 *
5 * ====================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 * ====================================================================
18 */
19package org.jclouds.trmk.vcloud_0_8.domain.internal;
20 
21import java.net.URI;
22 
23import org.jclouds.trmk.vcloud_0_8.domain.FenceMode;
24import org.jclouds.trmk.vcloud_0_8.domain.ReferenceType;
25import org.jclouds.trmk.vcloud_0_8.domain.Network;
26 
27/**
28 * Locations of resources in vCloud
29 * 
30 * @author Adrian Cole
31 * 
32 */
33public class NetworkImpl extends ReferenceTypeImpl implements Network {
34 
35   protected final String description;
36   protected final String gateway;
37   protected final String netmask;
38   protected final FenceMode fenceMode;
39   protected final ReferenceType networkExtension;
40   protected final ReferenceType ips;
41 
42   public NetworkImpl(String name, String type, URI id, String description, String gateway, String netmask,
43         FenceMode fenceMode, ReferenceType networkExtension, ReferenceType ips) {
44      super(name, type, id);
45      this.description = description;
46      this.gateway = gateway;
47      this.netmask = netmask;
48      this.fenceMode = fenceMode;
49      this.networkExtension = networkExtension;
50      this.ips = ips;
51   }
52 
53   /**
54    * {@inheritDoc}
55    */
56   @Override
57   public String getDescription() {
58      return description;
59   }
60 
61   /**
62    * {@inheritDoc}
63    */
64   @Override
65   public String getGateway() {
66      return gateway;
67   }
68 
69   /**
70    * {@inheritDoc}
71    */
72   @Override
73   public String getNetmask() {
74      return netmask;
75   }
76 
77   /**
78    * {@inheritDoc}
79    */
80   @Override
81   public FenceMode getFenceMode() {
82      return fenceMode;
83   }
84 
85   /**
86    * {@inheritDoc}
87    */
88   @Override
89   public ReferenceType getIps() {
90      return ips;
91   }
92 
93   /**
94    * {@inheritDoc}
95    */
96   @Override
97   public ReferenceType getNetworkExtension() {
98      return networkExtension;
99   }
100 
101   /**
102    * {@inheritDoc}
103    */
104   @Override
105   public int compareTo(ReferenceType o) {
106      return (this == o) ? 0 : getHref().compareTo(o.getHref());
107   }
108 
109}

[all classes][org.jclouds.trmk.vcloud_0_8.domain.internal]
EMMA 2.0.5312 (C) Vladimir Roubtsov