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 TypeMethodDescriptionintcompareTo(ConfigModelId other) booleanstatic ConfigModelIdCreate id with given name, using default version 1.static ConfigModelIdfromNameAndVersion(String tagName, String tagVersion) Create id with a name and versiongetName()Return the XML element name.inthashCode()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:
compareToin interfaceComparable<ConfigModelId>
-
toString
-
hashCode
public int hashCode() -
getName
Return the XML element name.- Returns:
- the name of the config model
-