Revision 038ac9a4 src/com/rackspace/cloud/files/api/client/ContainerObjects.java

b/src/com/rackspace/cloud/files/api/client/ContainerObjects.java
6 6

  
7 7
/**
8 8
 * @author Phillip Toohill dead2hill@gmail.com
9
 *
9
 * 
10 10
 */
11 11
public class ContainerObjects extends Entity {
12 12

  
......
17 17
	private int bytes;
18 18
	private String cname;
19 19
	private String contentType;
20
	
21
	private boolean isFolder(){
20

  
21
	private boolean isFolder() {
22 22
		return contentType.startsWith("application/folder;");
23 23
	}
24
	
25
	
24

  
26 25
	/**
27 26
	 * 
28 27
	 * @return the object
......
30 29
	public String getObject() {
31 30
		return object;
32 31
	}
32

  
33 33
	/**
34 34
	 * 
35
	 * @param object from container
35
	 * @param object
36
	 *            from container
36 37
	 */
37
	public void setObject(String object)	{
38
	public void setObject(String object) {
38 39
		this.object = object;
39 40
	}
41

  
40 42
	/**
41 43
	 * @return the hash
42 44
	 */
43 45
	public String getHash() {
44 46
		return hash;
45 47
	}
48

  
46 49
	/**
47
	 * @param hash hash of object
50
	 * @param hash
51
	 *            hash of object
48 52
	 */
49 53
	public void setHash(String hash) {
50 54
		this.hash = hash;
51 55
	}
56

  
52 57
	/**
53 58
	 * 
54 59
	 * @return the LastMod ification of file
......
56 61
	public String getLastMod() {
57 62
		return lastMod;
58 63
	}
59
	
64

  
60 65
	/**
61 66
	 * 
62
	 * @param lastMod that LastMod is set to
67
	 * @param lastMod
68
	 *            that LastMod is set to
63 69
	 */
64 70
	public void setLastMod(String lastMod) {
65 71
		this.lastMod = lastMod;
66 72
	}
73

  
67 74
	/**
68 75
	 * 
69 76
	 * @return the object's name
70
	*/
77
	 */
71 78
	public String getCName() {
72 79
		return cname;
73 80
	}
81

  
74 82
	/**
75 83
	 * 
76
	 * @param name the object is set to
84
	 * @param name
85
	 *            the object is set to
77 86
	 */
78 87
	public void setCName(String cname) {
79 88
		this.cname = cname;
80 89
	}
90

  
81 91
	/**
82 92
	 * 
83 93
	 * @return the objects size
......
85 95
	public int getBytes() {
86 96
		return bytes;
87 97
	}
98

  
88 99
	/**
89 100
	 * 
90
	 * @param the bytes the object is set to
101
	 * @param the
102
	 *            bytes the object is set to
91 103
	 */
92 104
	public void setBytes(int bytes) {
93 105
		this.bytes = bytes;
94 106
	}
107

  
95 108
	/**
96 109
	 * 
97
	 * @param contentType the object is set to
110
	 * @param contentType
111
	 *            the object is set to
98 112
	 */
99 113
	public void setContentType(String contentType) {
100 114
		this.contentType = contentType;
101
		
115

  
102 116
	}
117

  
103 118
	/**
104 119
	 * 
105 120
	 * @return the objects content type
106 121
	 */
107
	public String getContentType(){
122
	public String getContentType() {
108 123
		return contentType;
109 124
	}
125

  
110 126
	@Override
111 127
	public String toString() {
112
		return "ContainerObjects [" + "getCName()="
113
				+ getCName() + " object=" + object + ", hash=" + hash
114
				+ ", lastMod=" + lastMod + ", bytes=" + bytes + ", cname="
115
				+ cname + ", contentType=" + contentType + ", getId()="
116
				+ getId() + ", getName()=" + getName() + ", getModifiedBy()="
117
				+ getModifiedBy() + ", getVersion()=" + getVersion()
118
				+ ", getVersionTimestamp()=" + getVersionTimestamp()
119
				+ ", getObjectUUID()=" + getObjectUUID() + ", getObjectHash()="
120
				+ getObjectHash() + ", getObjectSharing()="
121
				+ getObjectSharing() + ", getMetadata()=" + getMetadata() + "]";
128
		return "ContainerObjects [" + "getCName()=" + getCName() + " object="
129
				+ object + ", hash=" + hash + ", lastMod=" + lastMod
130
				+ ", bytes=" + bytes + ", cname=" + cname + ", contentType="
131
				+ contentType + ", getId()=" + getId() + ", getName()="
132
				+ getName() + ", getModifiedBy()=" + getModifiedBy()
133
				+ ", getVersion()=" + getVersion() + ", getVersionTimestamp()="
134
				+ getVersionTimestamp() + ", getObjectUUID()="
135
				+ getObjectUUID() + ", getObjectHash()=" + getObjectHash()
136
				+ ", getObjectSharing()=" + getObjectSharing()
137
				+ ", getMetadata()=" + getMetadata() + "]";
122 138
	}
123
	
124
	
125
	
126
}   
127 139

  
140
}

Also available in: Unified diff