Class Identifier
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.identifiers.Identifier
-
- Direct Known Subclasses:
GitBranch,GitCommit,GitRepository,Hostname,Property,PropertyId,RevisionId,ScrewdriverId,SerializedIdentifier,UserGroup
public abstract class Identifier extends Object
- Author:
- smorgrav
-
-
Field Summary
Fields Modifier and Type Field Description protected static PatternstrictPatternprotected static StringstrictPatternExplanation
-
Constructor Summary
Constructors Constructor Description Identifier(String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcapitalizedType()booleanequals(Object o)inthashCode()Stringid()static voidthrowInvalidId(String id, String explanation)StringtoDns()StringtoString()voidvalidate()protected voidvalidateNoDefault()protected voidvalidateNoUpperCase()protected voidvalidateSerialized()protected voidvalidateSerializedIdentifier()
-
-
-
Field Detail
-
strictPatternExplanation
protected static final String strictPatternExplanation
- See Also:
- Constant Field Values
-
strictPattern
protected static final Pattern strictPattern
-
-
Constructor Detail
-
Identifier
public Identifier(String id)
-
-
Method Detail
-
toDns
public String toDns()
-
id
public String id()
-
capitalizedType
public String capitalizedType()
-
validate
public void validate()
-
validateSerialized
protected void validateSerialized()
-
validateSerializedIdentifier
protected void validateSerializedIdentifier()
-
validateNoDefault
protected void validateNoDefault()
-
validateNoUpperCase
protected void validateNoUpperCase()
-
-