|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--wtanaka.praya.gale.NWOSubscriptionList
A Subscription List container which supports set-like operations on subscription lists. You can think of simplifying subscription lists in at least two ways:
Return to
or the Praya Homepage
| Field Summary | |
(package private) Subscription[] |
m_subscriptions
|
| Constructor Summary | |
|
NWOSubscriptionList()
The empty subscription list. |
|
NWOSubscriptionList(java.lang.String nwo,
java.lang.String defaultDomain)
Separates the string on spaces, interprets each part as a literal "-" or a location, and returns a subscription list. |
private |
NWOSubscriptionList(Subscription[] subs)
Deprecated. is this still being used? |
| Method Summary | |
java.lang.String |
getNWOString()
Gets the subscription list as a list of space-separated locations |
java.lang.String |
getOWOString()
Gets the subscription list as a list of colon-separated categories |
boolean |
matchesLocation(Location location)
|
NWOSubscriptionList |
simplify()
Tries to simplify this subscription list into a shorter list which matches the same categories. |
NWOSubscriptionList |
supersetWith(NWOSubscriptionList list)
Returns a superset of this subscription list combined with the one given passed as a parameter. |
(package private) Subscription[] |
testCode_getSubscriptionArray()
For use by test code. |
java.lang.String |
toString()
|
NWOSubscriptionList |
withLocation(Location location)
Returns a (possibly optimized) subscription list equivalent to this with the given Location appended to the end of it. |
NWOSubscriptionList |
withoutLocation(Location location)
Returns a (possibly optimized) subscription list equivalent to this with - location appended to the end of it. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
Subscription[] m_subscriptions
| Constructor Detail |
public NWOSubscriptionList()
private NWOSubscriptionList(Subscription[] subs)
public NWOSubscriptionList(java.lang.String nwo,
java.lang.String defaultDomain)
nwo - a subscription list in GALE_SUBSCRIBE format as
described at http://gale.org/revolution/nwo| Method Detail |
Subscription[] testCode_getSubscriptionArray()
public java.lang.String getOWOString()
public java.lang.String getNWOString()
public boolean matchesLocation(Location location)
public NWOSubscriptionList withLocation(Location location)
public NWOSubscriptionList withoutLocation(Location location)
public NWOSubscriptionList supersetWith(NWOSubscriptionList list)
public NWOSubscriptionList simplify()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||