Class Server.Name
java.lang.Object
com.aoindustries.aoserv.client.mysql.Server.Name
- All Implemented Interfaces:
DtoFactory<MysqlServerName>
,Internable<Server.Name>
,Serializable
,Comparable<Server.Name>
- Enclosing class:
Server
public static final class Server.Name
extends Object
implements Comparable<Server.Name>, Serializable, DtoFactory<MysqlServerName>, Internable<Server.Name>
Represents a name that may be used for a MySQL installation. Names must:
- Be non-null
- Be non-empty
- Be between 1 and 255 characters
- Must start with
[a-z,0-9]
- The rest of the characters may contain [a-z], [0-9], period (.), hyphen (-), and underscore (_)
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(Server.Name other) boolean
getDto()
int
hashCode()
intern()
Interns this name much in the same fashion asString.intern()
.toString()
static ValidationResult
Validates a MySQL server name.static Server.Name
-
Field Details
-
MAX_LENGTH
public static final int MAX_LENGTH- See Also:
-
-
Method Details
-
validate
Validates a MySQL server name. -
valueOf
- Parameters:
name
- whennull
, returnsnull
- Throws:
ValidationException
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Server.Name>
-
toString
-
intern
Interns this name much in the same fashion asString.intern()
.- Specified by:
intern
in interfaceInternable<Server.Name>
- See Also:
-
getDto
- Specified by:
getDto
in interfaceDtoFactory<MysqlServerName>
-