EMMA Coverage Report (generated Mon Oct 17 05:41:20 EDT 2011)
[all classes][org.jclouds.vcloud.binders]

COVERAGE SUMMARY FOR SOURCE FILE [BindCloneVAppTemplateParamsToXmlPayload.java]

nameclass, %method, %block, %line, %
BindCloneVAppTemplateParamsToXmlPayload.java100% (1/1)100% (4/4)100% (12/12)100% (5/5)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BindCloneVAppTemplateParamsToXmlPayload100% (1/1)100% (4/4)100% (12/12)100% (5/5)
BindCloneVAppTemplateParamsToXmlPayload (BindToStringPayload, String, String)... 100% (1/1)100% (6/6)100% (2/2)
getOptionClass (): Class 100% (1/1)100% (2/2)100% (1/1)
getRootElement (): String 100% (1/1)100% (2/2)100% (1/1)
getSourceMediaType (): String 100% (1/1)100% (2/2)100% (1/1)

1/**
2 * Licensed to jclouds, Inc. (jclouds) under one or more
3 * contributor license agreements.  See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership.  jclouds licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License.  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,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied.  See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19package org.jclouds.vcloud.binders;
20 
21import static org.jclouds.vcloud.reference.VCloudConstants.PROPERTY_VCLOUD_XML_NAMESPACE;
22import static org.jclouds.vcloud.reference.VCloudConstants.PROPERTY_VCLOUD_XML_SCHEMA;
23 
24import javax.inject.Named;
25import javax.inject.Singleton;
26 
27import org.jclouds.rest.binders.BindToStringPayload;
28import org.jclouds.vcloud.VCloudMediaType;
29import org.jclouds.vcloud.options.CloneVAppTemplateOptions;
30 
31import com.google.inject.Inject;
32 
33/**
34 * 
35 * @author Adrian Cole
36 * 
37 */
38@Singleton
39public class BindCloneVAppTemplateParamsToXmlPayload extends BindCloneParamsToXmlPayload<CloneVAppTemplateOptions> {
40 
41   @Inject
42   public BindCloneVAppTemplateParamsToXmlPayload(BindToStringPayload stringBinder,
43            @Named(PROPERTY_VCLOUD_XML_NAMESPACE) String ns, @Named(PROPERTY_VCLOUD_XML_SCHEMA) String schema) {
44      super(stringBinder, schema, schema);
45   }
46 
47   @Override
48   protected Class<CloneVAppTemplateOptions> getOptionClass() {
49      return CloneVAppTemplateOptions.class;
50   }
51 
52   @Override
53   protected String getRootElement() {
54      return "CloneVAppTemplateParams";
55   }
56 
57   @Override
58   protected String getSourceMediaType() {
59      return VCloudMediaType.VAPPTEMPLATE_XML;
60   }
61 
62}

[all classes][org.jclouds.vcloud.binders]
EMMA 2.0.5312 (C) Vladimir Roubtsov