Class ResourceItem


  • public class ResourceItem
    extends java.lang.Object
    This class represents Storage resource items.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResourceItem​(org.w3c.dom.Element resourceElement, java.lang.String storageIdnr)
      Creates a new ResourceItem.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getChecksum()
      Return the checksum of the resource.
      java.lang.String getFilename()
      Return the filename of the resource.
      UploadBinary.ContentType getFileType()
      Return the type of the resource.
      java.lang.String getHw()
      Return the HW (from PlatformSwHwType) of the resource.
      java.lang.String getIdnr()
      Returns the ID of the ResourceItem.
      java.lang.String getName()
      Return the name of the resource.
      java.lang.String getParentIdnr()
      Returns the ParentIdnr of the ResourceItem.
      java.lang.String getPlatform()
      Return the Platform (from PlatformSwHwType) of the resource.
      int getSize()
      Return the size of the resource.
      java.lang.String getSw()
      Return the SW (from PlatformSwHwType) of the resource.
      java.lang.String getVersion()
      Return the version of the resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResourceItem

        public ResourceItem​(org.w3c.dom.Element resourceElement,
                            java.lang.String storageIdnr)
        Creates a new ResourceItem. Internal use only.
        Parameters:
        resourceElement - XML element
        storageIdnr - contains idnr of the Storage object
    • Method Detail

      • getChecksum

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

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

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

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

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

        public java.lang.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
      • getVersion

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

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

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