This project has retired. For details please refer to its Attic page.
RenditionDataImpl xref

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF 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   */
19  package org.apache.chemistry.opencmis.commons.impl.dataobjects;
20  
21  import java.math.BigInteger;
22  
23  import org.apache.chemistry.opencmis.commons.data.RenditionData;
24  
25  /**
26   * RenditionData implementation.
27   */
28  public class RenditionDataImpl extends AbstractExtensionData implements RenditionData {
29  
30      private static final long serialVersionUID = 1L;
31  
32      protected String streamId;
33      private String mimeType;
34      protected BigInteger length;
35      private String kind;
36      private String title;
37      protected BigInteger width;
38      protected BigInteger height;
39      protected String renditionDocumentId;
40  
41      public RenditionDataImpl() {
42      }
43  
44      public RenditionDataImpl(String streamId, String mimeType, BigInteger length, String kind, String title,
45              BigInteger width, BigInteger height, String renditionDocumentId) {
46          setStreamId(streamId);
47          setMimeType(mimeType);
48          setBigLength(length);
49          setKind(kind);
50          setTitle(title);
51          setBigWidth(width);
52          setBigHeight(height);
53          setRenditionDocumentId(renditionDocumentId);
54      }
55  
56      public String getStreamId() {
57          return streamId;
58      }
59  
60      public void setStreamId(String streamId) {
61          this.streamId = streamId;
62      }
63  
64      public String getMimeType() {
65          return mimeType;
66      }
67  
68      public void setMimeType(String mimeType) {
69          this.mimeType = mimeType;
70      }
71  
72      public BigInteger getBigLength() {
73          return length;
74      }
75  
76      public void setBigLength(BigInteger length) {
77          this.length = length;
78      }
79  
80      public String getKind() {
81          return kind;
82      }
83  
84      public void setKind(String kind) {
85          this.kind = kind;
86      }
87  
88      public String getTitle() {
89          return title;
90      }
91  
92      public void setTitle(String title) {
93          this.title = title;
94      }
95  
96      public BigInteger getBigHeight() {
97          return height;
98      }
99  
100     public void setBigHeight(BigInteger height) {
101         this.height = height;
102     }
103 
104     public BigInteger getBigWidth() {
105         return width;
106     }
107 
108     public void setBigWidth(BigInteger width) {
109         this.width = width;
110     }
111 
112     public String getRenditionDocumentId() {
113         return renditionDocumentId;
114     }
115 
116     public void setRenditionDocumentId(String renditionDocumentId) {
117         this.renditionDocumentId = renditionDocumentId;
118     }
119 
120     @Override
121     public String toString() {
122         return "RenditionDataImpl [, kind=" + kind + ", title=" + title + ", MIME type=" + mimeType + ", length="
123                 + length + ", rendition document id=" + renditionDocumentId + ", stream id=" + streamId + " height="
124                 + height + ", width=" + width + "]" + super.toString();
125     }
126 
127 }