Class ConfigModelId

java.lang.Object
com.yahoo.config.model.builder.xml.ConfigModelId
All Implemented Interfaces:
Comparable<ConfigModelId>

public class ConfigModelId extends Object implements Comparable<ConfigModelId>
A ConfigModelId describes an element handled by a ConfigModelBuilder.
Author:
Ulf Lilleengen
  • Method Details

    • fromNameAndVersion

      public static ConfigModelId fromNameAndVersion(String tagName, String tagVersion)
      Create id with a name and version
      Parameters:
      tagName - Name of the id
      tagVersion - Version of the id
      Returns:
      A ConfigModelId instance
    • fromName

      public static ConfigModelId fromName(String tagName)
      Create id with given name, using default version 1.
      Parameters:
      tagName - Name of the id
      Returns:
      A ConfigModelId instance
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(ConfigModelId other)
      Specified by:
      compareTo in interface Comparable<ConfigModelId>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getName

      public String getName()
      Return the XML element name.
      Returns:
      the name of the config model