Class Metadata


  • public class Metadata
    extends java.lang.Object
    Metadata about a released artifact.
    Author:
    jonmv
    • Constructor Summary

      Constructors 
      Constructor Description
      Metadata​(ArtifactId id, java.util.List<com.yahoo.component.Version> versions)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Metadata fromXml​(java.lang.String xml)
      Creates a new Metadata object from the given XML document.
      ArtifactId id()
      Id of the metadata this concerns.
      java.util.List<com.yahoo.component.Version> versions()
      List of available versions of this, sorted by ascending version order.
      • Methods inherited from class java.lang.Object

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

      • Metadata

        public Metadata​(ArtifactId id,
                        java.util.List<com.yahoo.component.Version> versions)
    • Method Detail

      • fromXml

        public static Metadata fromXml​(java.lang.String xml)
        Creates a new Metadata object from the given XML document.
      • id

        public ArtifactId id()
        Id of the metadata this concerns.
      • versions

        public java.util.List<com.yahoo.component.Version> versions()
        List of available versions of this, sorted by ascending version order.