public class RelatedMediaReference extends ExternalReference
RelatedMediaReference stores information about an link to an external media file that is relevant to this asset.
  • Field Details

  • Constructor Details

    • RelatedMediaReference

      public RelatedMediaReference()
      Default constructor
    • RelatedMediaReference

      public RelatedMediaReference(RelatedMediaReference templateRelatedMediaReference)
      Copy/clone constructor.
      Parameters:
      templateRelatedMediaReference - element to copy
  • Method Details

    • getMediaType

      public MediaType getMediaType()
      Return the type of media referenced.
      Returns:
      related media type enum
    • setMediaType

      public void setMediaType(MediaType mediaType)
      Set up the type of media referenced.
      Parameters:
      mediaType - related media type enum
    • getMediaUsageList

      public List<MediaUsage> getMediaUsageList()
      Return the list of recommended uses for the related media. Null means no usage guidance is available.
      Returns:
      List of MediaUsage
    • setMediaUsageList

      public void setMediaUsageList(List<MediaUsage> mediaUsageList)
      Set up the list of recommended uses for the related media. Null means no usage guidance is available.
      Parameters:
      mediaUsageList - List of recommended uses for this media
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class ExternalReference
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class ExternalReference
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Hash of properties
      Overrides:
      hashCode in class ExternalReference
      Returns:
      int