Class ResourceItem

java.lang.Object
com.uc4.api.objects.ResourceItem

public class ResourceItem extends Object
This class represents Storage resource items.
  • Constructor Details

    • ResourceItem

      public ResourceItem(Element resourceElement, String storageIdnr)
      Creates a new ResourceItem. Internal use only.
      Parameters:
      resourceElement - XML element
      storageIdnr - contains idnr of the Storage object
  • Method Details

    • getChecksum

      public String getChecksum()
      Return the checksum of the resource.
      Returns:
      The checksum as String
    • getFilename

      public String getFilename()
      Return the filename of the resource.
      Returns:
      The filename as String
    • getName

      public String getName()
      Return the name of the resource.
      Returns:
      The name as String
    • getPlatform

      public String getPlatform()
      Return the Platform (from PlatformSwHwType) of the resource.
      Returns:
      The platform as String
    • getSw

      public String getSw()
      Return the SW (from PlatformSwHwType) of the resource.
      Returns:
      The SW as String
    • getHw

      public 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

      public UploadBinary.ContentType getFileType()
      Return the type of the resource.
      Returns:
      The Type as UploadBinary.ContentType
    • getVersion

      public String getVersion()
      Return the version of the resource.
      Returns:
      The version as String
    • getIdnr

      public String getIdnr()
      Returns the ID of the ResourceItem.
      Returns:
      idnr as String
    • getParentIdnr

      public String getParentIdnr()
      Returns the ParentIdnr of the ResourceItem.
      Returns:
      Storageidnr as String