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>
AConfigModelId
describes an element handled by aConfigModelBuilder
.- Author:
- Ulf Lilleengen
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ConfigModelId other)
boolean
equals(Object object)
static ConfigModelId
fromName(String tagName)
Create id with given name, using default version 1.static ConfigModelId
fromNameAndVersion(String tagName, String tagVersion)
Create id with a name and versionString
getName()
Return the XML element name.int
hashCode()
String
toString()
-
-
-
Method Detail
-
fromNameAndVersion
public static ConfigModelId fromNameAndVersion(String tagName, String tagVersion)
Create id with a name and version- Parameters:
tagName
- Name of the idtagVersion
- 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
-
compareTo
public int compareTo(ConfigModelId other)
- Specified by:
compareTo
in interfaceComparable<ConfigModelId>
-
getName
public String getName()
Return the XML element name.- Returns:
- the name of the config model
-
-