|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.props.GenProps.AuthData
public static final class GenProps.AuthData
Class holding details of one author; immutable, serialisable. Author initial must be valid syntactically; text must be 7-bit printable (32--126) ASCII/HTML data.
We assume that the on-the-wire format for members is reasonably efficient, especially if the transport layer includes compression.
This supports equals(), hashCode() and compareTo(); two objects are equal iff all the fields are, and the sort order is by author.
| Field Summary | |
|---|---|
java.lang.String |
auth
Author initials: must be syntactically valid; non-null. |
java.lang.String |
desc
Description HTML code as 7-bit ASCII; never empty but can be null. |
java.lang.String |
email
Author email: should be syntactically valid email address or null. |
static int |
MAX_DESC_CHARACTERS
Maximum HTML description length in bytes/characters. |
java.lang.String |
name
Author name: must be pure 7-bit printable ASCII HTML with possible entities; not empty, non-null. |
private static long |
serialVersionUID
Our serialisation version. |
java.lang.String |
www
Author home-page URL: should be syntactically valid URL or null. |
| Constructor Summary | |
|---|---|
GenProps.AuthData(java.lang.String authInitials,
java.lang.String pipeDelimitedString)
Construct new author details from single string. |
|
GenProps.AuthData(java.lang.String authInitials,
java.lang.String authName,
java.lang.String homePageURL,
java.lang.String emailAddress,
java.lang.String descriptionText)
Construct new author details from individial components. |
|
| Method Summary | |
|---|---|
private static java.lang.String |
_getSection(java.lang.String s,
int section)
Extract given section from pipe-delimited String. |
int |
compareTo(GenProps.AuthData o)
Provides total ordering, by author. |
boolean |
equals(java.lang.Object o)
Equality depends on all fields. |
int |
hashCode()
Hash depends on author. |
private void |
readObject(java.io.ObjectInputStream in)
Deserialise. |
void |
validateObject()
Validate fields/state. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String auth
public final java.lang.String name
public final java.lang.String www
public final java.lang.String email
public final java.lang.String desc
public static final int MAX_DESC_CHARACTERS
private static final long serialVersionUID
| Constructor Detail |
|---|
GenProps.AuthData(java.lang.String authInitials,
java.lang.String pipeDelimitedString)
GenProps.AuthData(java.lang.String authInitials,
java.lang.String authName,
java.lang.String homePageURL,
java.lang.String emailAddress,
java.lang.String descriptionText)
authInitials - the syntactally-valid author initials; non-nullauthName - real name of author; not empty nor nullhomePageURL - valid http URL, will be stripped,
empty text is converted to nullemailAddress - valid email address, will be stripped,
empty text is converted to nulldescriptionText - the descriptive text, will be stripped,
empty text is converted to null
Not given public access as only GenProps should need to construct.| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(GenProps.AuthData o)
compareTo in interface java.lang.Comparable<GenProps.AuthData>
private static java.lang.String _getSection(java.lang.String s,
int section)
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void validateObject()
throws java.io.InvalidObjectException
Barf if something bad is found. (Maybe allow some extra info in debug version.)
validateObject in interface java.io.ObjectInputValidationjava.io.InvalidObjectException
|
DHD Multimedia Gallery V1.57.21 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||