|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.svrCore.Name
org.hd.d.pg2k.svrCore.Name.ExhibitFull
public static final class Name.ExhibitFull
ExhibitFullName implementation on top of SharedTermini8BitString. This will only allow construction of instances representing a valid full exhibit name.
This carries no significant extra data over SharedTermini8BitString, and mainly represents a guarantee that the data is a valid full exhibit name, plus some utility methods/types for conveniently and efficiently accessing components of that name.
The constructors are private and only accessible via factory methods to help with instance control, and all instances are automatically intern()ed to eliminate duplicates.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.hd.d.pg2k.svrCore.Name |
|---|
Name.ExhibitFull, Name.ExhibitShort |
| Field Summary | |
|---|---|
static Name.ExhibitFull |
DUMMY
Shared dummy (valid, small, alphabetically-late) instance with no prev; not null. |
private static long |
serialVersionUID
Unique Serialisation class ID generated by http://random.hd.org/. |
private Name.ExhibitShort |
shortName
Cache of link to parent, computed on demand. |
| Fields inherited from class org.hd.d.pg2k.svrCore.Name |
|---|
CASE_INSENSITIVE_ORDER, EMPTY, prev |
| Constructor Summary | |
|---|---|
private |
Name.ExhibitFull(java.lang.CharSequence name,
Name prev)
|
| Method Summary | |
|---|---|
static Name.ExhibitFull |
create(java.lang.CharSequence fullName)
Create an ExhibitFull instance; never null. |
static Name.ExhibitFull |
create(java.lang.CharSequence fullName,
Name prev)
Create an ExhibitFull instance with a previous value to attempt to share a prefix with; never null. |
Name.ExhibitShort |
getShortName()
Extract strongly-typed ExhibitShortName, ie the filename component; never null. |
Name.ExhibitFull |
getVirtualExhibitName()
Create a "virtual" full name consisting of the category directory and then the file component; never null. |
java.lang.String |
toString()
Convert to String containing same char sequence; never null. |
void |
validateObject()
Validate fields/state. |
| Methods inherited from class org.hd.d.pg2k.svrCore.Name |
|---|
charAt, compareTo, compareTo, contentEquals, createOrStringFallback, equals, getPrefixLen, getPrevChainLength, hashCode, length, readResolve, subSequence, toByteArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Name.ExhibitFull DUMMY
private transient Name.ExhibitShort shortName
Not serialisable (because recomputable).
private static final long serialVersionUID
| Constructor Detail |
|---|
private Name.ExhibitFull(java.lang.CharSequence name,
Name prev)
| Method Detail |
|---|
public static Name.ExhibitFull create(java.lang.CharSequence fullName)
If passed an ExhibitFull (but not including sub-classes) this returns it untouched.
fullName - the (8-bit) syntactically-valid full exhibit name; never null nor empty
java.lang.IllegalArgumentException - in the case of a null or invalid putative full name
public static Name.ExhibitFull create(java.lang.CharSequence fullName,
Name prev)
If passed an ExhibitFull (but not including sub-classes) this returns it untouched.
fullName - the (8-bit) syntactically-valid full exhibit name; never null nor emptyprev - previous Name with which to attempt to share a prefix; null if none
java.lang.IllegalArgumentException - in the case of a null or invalid putative full namepublic Name.ExhibitShort getShortName()
This guarantees that only one ShortName instance can be generated for each FullName. Thus intern()ing is neither needed nor supported.
public Name.ExhibitFull getVirtualExhibitName()
Returns this instance as-is if already 'virtual'.
public java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class Name
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.ObjectInputValidationvalidateObject in class Namejava.io.InvalidObjectException
|
DHD Multimedia Gallery V1.53.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||