input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public boolean is recently accessed url string url if param url cache enabled url cache null synchronized url cache return url cache contains key url else return false
|
return true if the url has been accessed recently
|
public void seal if is sealed is sealed true convert map values to array lists to save space because they will not be modified now that the tdb is sealed synchronized plugin id tdb au ids map for map entry string collection tdb au id entry plugin id tdb au ids map entry set array list tdb au id list new array list tdb au id entry get value list trim to size entry set value list
|
seals a tdb against further additions
|
protected boolean is check each time return false
|
dont check for new file on every load only when asked
|
public boolean is sealed return is sealed
|
determines whether this tdb is sealed
|
private string make xml url string url return string util up to final url xml
|
kludge part of the xml configuration file transition
|
public boolean is empty return plugin id tdb au ids map is empty
|
determines whether the title database is empty
|
public boolean equals object o check for identity if this o return true if o instanceof tdb try if no exception thrown there are no differences because the method did not try to modify the set add plugin ids for differences collections string empty set tdb o return true catch unsupported operation exception ex differences because method tried to add to unmodifiable set catch illegal argument exception ex if something was wrong with the other tdb catch illegal state exception ex if something is wrong with this tdb return false
|
determines two tdbs are equal
|
protected boolean is forbidden uri uri string scheme uri get scheme string host uri get host int port uri get port return is forbidden scheme true
|
is url forbidden
|
public int hash code throw new unsupported operation exception
|
not supported for this class
|
protected boolean is forbidden string scheme boolean open non priv ports must be a scheme that can be proxied if scheme null proxy schemes contains key scheme return true return false
|
is scheme host port forbidden
|
protected tdb au find existing tdb au tdb au other au check for duplicate au with same plugin for this tdb collection tdb au id au ids get tdb au ids other au get plugin id for tdb au id au id au ids if au id equals other au get id return au id get tdb au return null
|
find existing tdb au with same id as another one
|
public int get tdb au count return tdb au count
|
return the number of tdb aus in this tdb
|
public int get tdb title count int title count 0 for tdb publisher publisher tdb publisher map values title count publisher get tdb title count return title count
|
return the number of tdb titles in this tdb
|
public int get tdb title count return titles by id size
|
return the number of tdb titles for this publisher
|
public int get tdb au count int au count 0 for tdb title title titles by id values au count title get tdb au count return au count
|
return the number of tdb titles for this publisher
|
public int get tdb publisher count return tdb publisher map size
|
return the number of tdb publishers in this tdb
|
public tdb title get tdb title by issn string issn for tdb title title titles by id values if issn equals title get issn l return title if issn equals title get eissn return title if issn equals title get print issn return title return null
|
returns a tdb title with the specified issn as its issn l
|
public tdb au add tdb au from properties properties props throws tdb exception if props null throw new illegal argument exception properties cannot be null verify not sealed if is sealed throw new tdb exception cannot add au to sealed tdb tdb au au new tdb au props add tdb au props au return au
|
add a new tdb au from properties
|
public tdb title get tdb title by id string title id return titles by id get title id
|
return the tdb title for this publisher with the
|
public boolean equals object o check for identity if this o return true if o instanceof tdb publisher try if no exception thrown there are no differences because the method did not try to modify the set add plugin ids for differences collections string empty set tdb publisher o return true catch unsupported operation exception ex differences because method tried to add to unmodifiable set catch illegal argument exception ex if something was wrong with the other publisher catch illegal state exception ex if something is wrong with this publisher return false
|
determines two tdbs publshers are equal
|
public void pretty print print stream ps int indent ps println string util tab indent publisher name tree map string tdb title sorted new tree map string tdb title catalogue order comparator singleton for tdb title title get tdb titles sorted put title get name title for tdb title title sorted values title pretty print ps indent 2
|
print a full description of the publisher and all its titles
|
key predicate true key predicate new key predicate public boolean evaluate object obj return true public boolean fail on illegal key return false public string to string return true key predicate
|
always true predicate
|
public void release poller state release if url tallier null url tallier release synchronized the participants for participant user data ud the participants values ud release state dir null poll complete request null vote complete request null task null serializer null poll manager null id manager null url tallier null
|
release members not used after the poll has been closed
|
public string to string return tdb publisher name
|
return a string representation of the publisher
|
public tdb au get tdb au return tdb au this
|
return the tdb au for this id
|
public boolean equals object obj if obj instanceof id return false if obj this return true tdb au id au id tdb au id obj return tdb au this get plugin id equals au id get tdb au get plugin id tdb au this get params equals au id get tdb au get params
|
determines this id is equal to another object
|
private string get tdb title id properties props tdb au au get the title id from one of several props string title id props get property journal id return title id
|
get title id from properties and tdb au
|
private void invalidate hash code hash 0
|
force hashcode to be recomputed because of a tdb au change
|
public int hash code if hash 0 hash tdb au this get params hash code hash au get plugin id hash code au get params hash code return hash
|
returns the hashcode for this id
|
public string to string properties props new properties props put all tdb au this get params return plugin manager generate au id tdb au this get plugin id props
|
returns the string value for this id
|
public boolean equals object o check for identity if this o return true if o instanceof tdb au tdb au other tdb au o return tdb au id equals other get id get attrs equals other get attrs get properties equals other get properties return false
|
determines two tdbs aus are equal
|
public link type inverse link type link type values link type values return values ordinal values length 2 ordinal values length 2 ordinal values length 2
|
return the inverse link type for this link type
|
private string get tdb publisher name properties props tdb au au use publisher attribute if specified or synthesize from title name proposed to replace with publisher name property string publisher name props get property attributes publisher if publisher name null publisher name props get property publisher name proposed new property if publisher name null create publisher name from title name if not specified string title name get tdb title name props au publisher name unknown publisher prefix title name return publisher name
|
get publisher name from properties and tdb au
|
public boolean is forward link type return ordinal link type values length 2
|
determines whether this is a forward link type
|
private string get tdb title name properties props from au name and one of several properties string title name props get property journal title if title name null title name props get property journal title proposed to replace journal title return title name
|
get tdb title name from properties alone
|
public tdb title get tdb title return title
|
return the tdb title for this au
|
public tdb publisher get tdb publisher return publisher
|
return the publisher of this title
|
protected void set tdb title tdb title title throws tdb exception if title null throw new illegal argument exception au title cannot be null if this title null throw new tdb exception cannot reset title for au name this title title
|
set the title for this au
|
protected void set tdb publisher tdb publisher publisher throws tdb exception if publisher null throw new illegal argument exception title publisher cannot be null if this publisher null throw new tdb exception publisher cannot be reset this publisher publisher
|
set the publisher of this title
|
public string get print issn string value null for tdb au tdbau tdb aus values value tdbau get print issn if value null break return value
|
return print issn for this title
|
public boolean is down return true equals get param pub down
|
determines whether this au is marked down
|
public string get eissn string value null for tdb au tdbau tdb aus values value tdbau get eissn if value null break return value
|
return e issn for this title
|
public string get plugin id return plugin id
|
return the id of the plugin for this au
|
public string get issn l string value null for tdb au tdbau tdb aus values value tdbau get issn l if value null break return value
|
return issn l for this title
|
public string get issn string value null for tdb au tdbau tdb aus values value tdbau get issn if value null break return value
|
return representative issn for this title
|
public string get param string name return params get name
|
return the param value for this instance for the specified name
|
public string get edition string value null for tdb au tdbau tdb aus values value tdbau get edition if value null break return value
|
return the edition for this title
|
public string get start year int s year integer max value for tdb au tdbau tdb aus values try s year math min s year integer parse int tdbau get start year catch throwable ex return null return s year integer max value null integer to string s year
|
get the start year for this title
|
protected void set param string name string value throws tdb exception if name null throw new illegal argument exception au param name cannot be null if value null throw new illegal argument exception au param value cannot be null if title null throw new tdb exception cannot add param once au has been added to its title if params contains key name throw new tdb exception cannot replace value of au param name for au this name params put string pool au config props intern name value get id invalidate hash code setting params modifies id hashcode
|
set the value of a param
|
public string get end year int e year integer min value for tdb au tdbau tdb aus values try e year math max e year integer parse int tdbau get end year catch throwable ex return null return e year integer min value null integer to string e year
|
get the end year for this title
|
public string get attr string name return attrs null attrs get name null
|
return the attr value for this au for the specified name
|
public boolean includes year string a year for tdb au tdbau tdb aus values if tdbau includes year a year return true return false
|
determine whether year s for this tdb title include a given year
|
protected void set attr string name string value throws tdb exception if name null throw new illegal argument exception attr name cannot be null for au this name if value null throw new illegal argument exception value of attr name cannot be null for au this name if attrs null attrs new hash map string string attrs new flat3 map if attrs contains key name throw new tdb exception cannot replace value of au attr name for au this name attrs put string pool au config props intern name value
|
set the value of an attribute
|
public string get start volume int s volume integer max value for tdb au tdbau tdb aus values try s volume math min s volume integer parse int tdbau get start volume catch throwable ex return null return s volume integer max value null integer to string s volume
|
get the start volume for this title
|
public string get plugin version return get property by name plugin version
|
convenience method returns the minimum plugin version from
|
public string get end volume int e volume integer min value for tdb au tdbau tdb aus values try e volume math max e volume integer parse int tdbau get end volume catch throwable ex return null return e volume integer min value null integer to string e volume
|
get the end volume for this title
|
public void set plugin version string plugin version throws tdb exception set property by name plugin version plugin version
|
convenience method sets the minimum plugin version from
|
public boolean includes volume string a volume for tdb au tdbau tdb aus values if tdbau includes volume a volume return true return false
|
determine whether volumes s for this tdb title include a given volume
|
public void set estimated size long size throws tdb exception if size 0 throw new illegal argument exception estimated size cannot be negative set property by name est size long to string size
|
convenience method sets the est size property to the estimated size
|
public void add link to tdb title link type link type tdb title title if title null throw new illegal argument exception title cannot be null add link to tdb title id link type title get id
|
add a title link for a specified link type
|
public long get estimated size string size get property by name est size if size null return 0 else if size to upper case ends with mb return long float parse float size substring 0 size length 2 1000000 else if size to upper case ends with kb return long float parse float size substring 0 size length 2 1000 return long float parse float size
|
convenience method gets the est size property as an estimated size
|
public boolean get tdb aus by name string tdb au name collection tdb au aus boolean added false for tdb publisher publisher tdb publisher map values added publisher get tdb aus by name tdb au name aus return added
|
add tdb aus with the specified tdb au name
|
public string get journal title return title null title get name null
|
convenience method returns the aus tdb titles name
|
public string get publisher name try return title get tdb publisher get name catch null pointer exception e return null
|
convenience method returns the aus tdb publishers name
|
public boolean get tdb aus like name string tdb au name collection tdb au aus boolean added false for tdb publisher publisher tdb publisher map values added publisher get tdb aus like name tdb au name aus return added
|
add tdb aus for like starts with the specified tdb au name
|
public string get start issue return bibliographic util get range set start get issue
|
get the start issue for this au
|
public tdb publisher get tdb publisher string name return tdb publisher map null tdb publisher map get name null
|
get the publisher for the specified name
|
public string get end issue return bibliographic util get range set end get issue
|
get the end issue for this au
|
public boolean includes issue string an issue return bibliographic util coverage includes get issue an issue
|
determine whether the issue string for this au include a given issue
|
public void pretty print print stream ps ps println tdb tree map string tdb publisher sorted new tree map string tdb publisher catalogue order comparator singleton sorted put all get all tdb publishers for tdb publisher tdb publisher sorted values tdb publisher pretty print ps 2
|
print a full description of all elements in the tdb
|
protected void add all plugin ids set string plugin ids if plugin ids null throw new illegal argument exception plugin ids cannot be null for tdb au au tdb aus values plugin ids add au get plugin id
|
add all plugin ids for this title
|
public string get issue string issue get attr issue for string key new string issue num issue range issue set issue no issues issue no issue dir if issue null issue get param key else return issue return issue
|
convenience method returns issue for this au
|
public boolean equals object o check for identity if this o return true if o instanceof tdb title try if no exception thrown there are no differences because the method did not try to modify the set add plugin ids for differences collections string empty set tdb title o return true catch unsupported operation exception ex differences because method tried to add to unmodifiable set catch illegal argument exception ex if something was wrong with the other title catch tdb exception ex if something is wrong with this title return false
|
determines two tdbs titles are equal
|
public string get print issn return props null null props get issn
|
return print issn for this au
|
public string get eissn return props null null props get eissn
|
return e issn for this title
|
public tdb get tdb return tdb
|
gets the title database tdb for this configuration
|
public int get tdb au count return tdb null 0 tdb get tdb au count
|
return number of tdb aus in this instances tdb
|
public string get issn l return props null null props get issnl
|
return issn l for this title
|
public int get tdb title count return tdb null 0 tdb get tdb title count
|
return number of tdb titles in this instances tdb
|
public string get issn string issn get issn l if metadata util is issn issn issn get print issn if metadata util is issn issn issn get eissn if metadata util is issn issn issn null return issn
|
return representative issn for this title
|
public int get tdb publisher count return tdb null 0 tdb get tdb publisher count
|
return number of tdb publishers in this instances tdb
|
public void pretty print print stream ps int indent ps println string util tab indent title name tree map string tdb au sorted new tree map string tdb au catalogue order comparator singleton for tdb au au get tdb aus sorted put au get name au for tdb au au sorted values au pretty print ps indent 2
|
print a full description of the title and all its aus
|
public string get print isbn string print isbn attrs null null attrs get isbn if print isbn null logger debug found print isbn for get name return print isbn
|
return the print isbn for this tdb au
|
public boolean is tdb different configuration config tdb config tdb config get tdb return tdb null config tdb null tdb equals config tdb
|
determine whether tdbs for the two configurations are different
|
public string to string return tdb title name
|
return a string representation of the title
|
public void set tdb tdb tdb if is sealed throw new illegal state exception can t modify sealed configuration this tdb tdb
|
sets the tdb for this configuration
|
public string get eisbn string eisbn attrs null null attrs get eisbn if eisbn null logger debug found eisbn for get name return eisbn
|
return the e isbn for this tdb au
|
public boolean is platform file return m is platform file
|
return true if this file might contain platform values that are
|
protected void set tdb from config configuration config this tdb config get tdb
|
special operation allows setting the title database of one
|
public void start service start handler
|
called to start each service in turn after all services have been
|
protected boolean is check each time return true
|
return true if the file should be checked for modification each time
|
public configuration add prefix string prefix if prefix ends with prefix prefix configuration res config manager new configuration res add as sub tree this prefix return res
|
return a copy of the configuration with the specified prefix
|
public void set needs reload m needs reload true
|
instruct the config file to check for modifications the next time its
|
public string get start year return bibliographic util get range set start get year
|
get the start year for this au
|
public configuration get configuration throws ioexception ensure loaded return m config
|
return the configuration object built from this file
|
public void add as sub tree configuration config string prefix if prefix ends with prefix prefix for iterator iter config key iterator iter has next string key string iter next put prefix key config get key
|
add to this all values in config prepending the prefix to all keys
|
public string get end year return bibliographic util get range set end get year
|
get the end year for this au
|
public configuration copy configuration copy config manager new configuration copy copy from this return copy
|
return a copy of the configuration that does not share structure with
|
public string to string return url m file url is loaded m config null last modified m last modified
|
used for logging and testing and debugging
|
public void stop service current config new configuration this currently runs afoul of logger which registers itself once only on first use config changed callbacks new array list config url list null cache config inited false cache config dir null reset the config cache config cache null stop handler have config new one shot semaphore
|
reset to unconfigured state
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.