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

COVERAGE SUMMARY FOR SOURCE FILE [BlobMetadataImpl.java]

nameclass, %method, %block, %line, %
BlobMetadataImpl.java0%   (0/1)0%   (0/4)0%   (0/32)0%   (0/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class BlobMetadataImpl0%   (0/1)0%   (0/4)0%   (0/32)0%   (0/8)
BlobMetadataImpl (String, String, Location, URI, String, Date, Map, URI, Stri... 0%   (0/1)0%   (0/23)0%   (0/5)
getContainer (): String 0%   (0/1)0%   (0/3)0%   (0/1)
getContentMetadata (): ContentMetadata 0%   (0/1)0%   (0/3)0%   (0/1)
getPublicUri (): URI 0%   (0/1)0%   (0/3)0%   (0/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.blobstore.domain.internal;
20 
21import static com.google.common.base.Preconditions.checkNotNull;
22 
23import java.io.Serializable;
24import java.net.URI;
25import java.util.Date;
26import java.util.Map;
27 
28import org.jclouds.javax.annotation.Nullable;
29 
30import org.jclouds.blobstore.domain.Blob;
31import org.jclouds.blobstore.domain.BlobMetadata;
32import org.jclouds.blobstore.domain.StorageType;
33import org.jclouds.domain.Location;
34import org.jclouds.io.ContentMetadata;
35 
36/**
37 * System and user Metadata for the {@link Blob}.
38 * 
39 * @author Adrian Cole
40 */
41public class BlobMetadataImpl extends StorageMetadataImpl implements Serializable, BlobMetadata {
42   /** The serialVersionUID */
43   private static final long serialVersionUID = -5932618957134612231L;
44   private final URI publicUri;
45   private final String container;
46   private final ContentMetadata contentMetadata;
47 
48   public BlobMetadataImpl(String id, String name, @Nullable Location location, URI uri, String eTag,
49            Date lastModified, Map<String, String> userMetadata, @Nullable URI publicUri, @Nullable String container,
50            ContentMetadata contentMetadata) {
51      super(StorageType.BLOB, id, name, location, uri, eTag, lastModified, userMetadata);
52      this.publicUri = publicUri;
53      this.container = container;
54      this.contentMetadata = checkNotNull(contentMetadata, "contentMetadata");
55   }
56 
57   /**
58    * {@inheritDoc}
59    */
60   @Override
61   public URI getPublicUri() {
62      return publicUri;
63   }
64 
65   /**
66    * {@inheritDoc}
67    */
68   @Override
69   public String getContainer() {
70      return container;
71   }
72 
73   /**
74    * {@inheritDoc}
75    */
76   @Override
77   public ContentMetadata getContentMetadata() {
78      return contentMetadata;
79   }
80 
81}

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