|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RefCodec
Converts a set of headings (which describe a selection) to and from a
string representation of the headings. The string representation is
usable as output of the Selection.getRef() function.
decodeRef() and encodeRef() are inverse functions, but only to the extent that they do not change the resultant Selection. That is, if STRING_0 is a ref, and STRING_1 = encodeRef(decodeRef(STRING_0)), STRING_0 and STRING_1 may not be identical strings, but facetmap.getSelection(STRING_0) and facetmap.getSelection(STRING_1) will be equivalent. The same applies to HEADINGS and decodeRef(encodeRef(HEADINGS)) .
| Nested Class Summary | |
|---|---|
static class |
RefCodec.IdList
RefCodec that stores Heading IDs as serial human-readable values in the ref string. |
| Method Summary | |
|---|---|
Heading[] |
decodeRef(java.lang.String refCode)
Returns Headings that correspond to a given selection reference string. |
java.lang.String |
encodeRef(Heading[] headings)
Returns a selection reference string that represents the given Headings. |
| Method Detail |
|---|
Heading[] decodeRef(java.lang.String refCode)
throws UnknownReferenceException
UnknownReferenceExceptionjava.lang.String encodeRef(Heading[] headings)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||