Package com.uc4.api.objects
Class ResourceItem
java.lang.Object
com.uc4.api.objects.ResourceItem
This class represents 
Storage resource items.- 
Constructor Summary
ConstructorsConstructorDescriptionResourceItem(Element resourceElement, String storageIdnr) Creates a newResourceItem. - 
Method Summary
Modifier and TypeMethodDescriptionReturn the checksum of the resource.Return the filename of the resource.Return the type of the resource.getHw()Return the HW (from PlatformSwHwType) of the resource.getIdnr()Returns the ID of the ResourceItem.getName()Return the name of the resource.Returns the ParentIdnr of the ResourceItem.Return the Platform (from PlatformSwHwType) of the resource.intgetSize()Return the size of the resource.getSw()Return the SW (from PlatformSwHwType) of the resource.Return the version of the resource. 
- 
Constructor Details
- 
ResourceItem
Creates a newResourceItem. Internal use only.- Parameters:
 resourceElement- XML elementstorageIdnr- contains idnr of the Storage object
 
 - 
 - 
Method Details
- 
getChecksum
Return the checksum of the resource.- Returns:
 - The checksum as 
String 
 - 
getFilename
Return the filename of the resource.- Returns:
 - The filename as 
String 
 - 
getName
Return the name of the resource.- Returns:
 - The name as 
String 
 - 
getPlatform
Return the Platform (from PlatformSwHwType) of the resource.- Returns:
 - The platform as 
String 
 - 
getSw
Return the SW (from PlatformSwHwType) of the resource.- Returns:
 - The SW as 
String 
 - 
getHw
Return the HW (from PlatformSwHwType) of the resource.- Returns:
 - The HW as 
String 
 - 
getSize
public int getSize()Return the size of the resource.- Returns:
 - The size as 
Integer 
 - 
getFileType
Return the type of the resource.- Returns:
 - The Type as 
UploadBinary.ContentType 
 - 
getVersion
Return the version of the resource.- Returns:
 - The version as 
String 
 - 
getIdnr
Returns the ID of the ResourceItem.- Returns:
 - idnr as 
String 
 - 
getParentIdnr
Returns the ParentIdnr of the ResourceItem.- Returns:
 - Storageidnr as 
String 
 
 -