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 java.lang.Object- Author:
- smorgrav
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.util.regex.PatternstrictPatternprotected static java.lang.StringstrictPatternExplanation
-
Constructor Summary
Constructors Constructor Description Identifier(java.lang.String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcapitalizedType()booleanequals(java.lang.Object o)inthashCode()java.lang.Stringid()static voidthrowInvalidId(java.lang.String id, java.lang.String explanation)java.lang.StringtoDns()java.lang.StringtoString()voidvalidate()protected voidvalidateNoDefault()protected voidvalidateNoUpperCase()protected voidvalidateSerialized()protected voidvalidateSerializedIdentifier()
-
-
-
Field Detail
-
strictPatternExplanation
protected static final java.lang.String strictPatternExplanation
- See Also:
- Constant Field Values
-
strictPattern
protected static final java.util.regex.Pattern strictPattern
-
-
Method Detail
-
toDns
public java.lang.String toDns()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
id
public java.lang.String id()
-
capitalizedType
public java.lang.String capitalizedType()
-
validate
public void validate()
-
validateSerialized
protected void validateSerialized()
-
validateSerializedIdentifier
protected void validateSerializedIdentifier()
-
validateNoDefault
protected void validateNoDefault()
-
validateNoUpperCase
protected void validateNoUpperCase()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
throwInvalidId
public static void throwInvalidId(java.lang.String id, java.lang.String explanation)
-
-