Class ConfigModelId
java.lang.Object
com.yahoo.config.model.builder.xml.ConfigModelId
- All Implemented Interfaces:
Comparable<ConfigModelId>
A
ConfigModelId
describes an element handled by a ConfigModelBuilder
.- Author:
- Ulf Lilleengen
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ConfigModelId other) boolean
static ConfigModelId
Create id with given name, using default version 1.static ConfigModelId
fromNameAndVersion
(String tagName, String tagVersion) Create id with a name and versiongetName()
Return the XML element name.int
hashCode()
toString()
-
Method Details
-
fromNameAndVersion
Create id with a name and version- Parameters:
tagName
- Name of the idtagVersion
- Version of the id- Returns:
- A ConfigModelId instance
-
fromName
Create id with given name, using default version 1.- Parameters:
tagName
- Name of the id- Returns:
- A ConfigModelId instance
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ConfigModelId>
-
toString
-
hashCode
public int hashCode() -
getName
Return the XML element name.- Returns:
- the name of the config model
-