be.destin.skos.core
Class DynamicScheme

java.lang.Object
  extended by be.destin.skos.core.NoScheme
      extended by be.destin.skos.core.ConceptScheme
          extended by be.destin.skos.core.DynamicScheme
All Implemented Interfaces:
SchemeInterface, java.io.Serializable, java.lang.Comparable<SchemeInterface>, org.openrdf.model.Resource, org.openrdf.model.URI, org.openrdf.model.Value

public class DynamicScheme
extends ConceptScheme

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface be.destin.skos.core.SchemeInterface
fieldSeparator, joker_0_n, pieceBoundary, separator, SESAME_NAMESPACE, skosNamespace
 
Constructor Summary
DynamicScheme()
           
DynamicScheme(SkosManager skosManager, java.lang.String code)
           
DynamicScheme(SkosManager skosManager, java.lang.String code, int aCacheSize)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAlias()
           
 int getCacheSize()
           
 java.util.LinkedList<Concept> getConcept()
           
 Concept getConcept(java.lang.String handle)
           
 java.util.LinkedList<Concept> getConceptInMemory()
           
 java.util.Map<java.lang.String,Concept> getConceptMap()
           
 java.util.LinkedHashMap<java.lang.String,ReferringApplication> getConceptReferringApplication(java.lang.String application)
           
 ReferringApplicationList getConceptUsage(java.lang.String about)
           
 UrlList getCreate()
           
 TermList getDescription()
           
 UrlList getDisplay()
           
 java.util.LinkedList<Concept> getHasTopConcept()
           
 UrlList getHelp()
           
 UrlList getIcon()
           
 java.lang.String getInternalNote()
           
 java.lang.String getNamespace()
           
 Concept getNotationConcept(java.lang.String indexCode, java.lang.String notationCode)
           
 int getSize()
           
 TermList getTitle()
           
 boolean isDynamic()
           
 java.util.ArrayList<SearchResult> labelMatch(java.lang.String prefix, java.lang.String userLanguage, LabelMatchType matchType)
           
 void preLoadFinished()
           
 void putConcept(Concept entry)
           
 void removeConcept(Concept entry)
           
 void setCacheSize(int cacheSize)
           
 void setConcept(java.util.List<Concept> someEntries)
           
 void setRenewedCacheSize(int cacheSize)
           
 void setSize(int schemeSize)
           
 
Methods inherited from class be.destin.skos.core.ConceptScheme
applicationUsageTotal, applicationUsageTotal, checkDuplicatedLabel, ensureReciprocalMatch, ensuresApplicationUsage, getAbout_Concept, getApplicationUsage, getApplicationUsage, getConcept, getContributor, getCreator, getIndexLabel, getInError, getMatchedSchemes, getMatchedSchemesMap, getMaxDepth, getNotation, getPrefixToRemove, getSupraLanguage, getUsage, isApplicationUsageModified, isHierarchized, putAlias, putApplicationRole, putApplicationUsage, putApplicationUsage, putConcept, putIndexLabel, putNotationScheme, reloadConcept, setAlias, setApplicationUsageModified, setConceptMap, setContributor, setCreator, setInError, setNotation, setNotation, setPrefixToRemove, setUsage, toHtmlCreation
 
Methods inherited from class be.destin.skos.core.NoScheme
addContributor, addCreator, compareTo, equals, findAbout_Concept, getAbout_About, getAbout, getApplication, getConceptRepresentation, getCreate, getCreateAdapted, getDescription, getDisplay, getDisplayAdapted, getErrors, getHelp, getHelpAdapted, getIcon, getIconAdapted, getLastLoaded, getLoadTime, getLocalName, getManagerInstance, getMemorySpace, getNamespaceSesame, getPossibleStatus, getRioNamespace, getTitle, hashCode, putCreate, putDescription, putDisplay, putHelp, putIcon, putTitle, setAbout, setApplication, setConceptRepresentation, setCreate, setDescription, setDisplay, setErrors, setHelp, setIcon, setInternalNote, setLastLoaded, setLoadTime, setManagerInstance, setMemorySpace, setNamespace, setRioNamespace, setSupraLanguage, setTitle, stringValue, toString, toStringLastLoaded, toTrace
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DynamicScheme

public DynamicScheme()

DynamicScheme

public DynamicScheme(SkosManager skosManager,
                     java.lang.String code)
Parameters:
code -

DynamicScheme

public DynamicScheme(SkosManager skosManager,
                     java.lang.String code,
                     int aCacheSize)
Method Detail

isDynamic

public boolean isDynamic()
Overrides:
isDynamic in class NoScheme

getDisplay

public UrlList getDisplay()
Specified by:
getDisplay in interface SchemeInterface
Overrides:
getDisplay in class ConceptScheme
Returns:
the displays

getCreate

public UrlList getCreate()
Specified by:
getCreate in interface SchemeInterface
Overrides:
getCreate in class ConceptScheme
Returns:
the creation URLs

getInternalNote

public java.lang.String getInternalNote()
Specified by:
getInternalNote in interface SchemeInterface
Overrides:
getInternalNote in class ConceptScheme
Returns:
the internalNote

getHelp

public UrlList getHelp()
Specified by:
getHelp in interface SchemeInterface
Overrides:
getHelp in class ConceptScheme
Returns:
the helps

getIcon

public UrlList getIcon()
Specified by:
getIcon in interface SchemeInterface
Overrides:
getIcon in class ConceptScheme
Returns:
the icons

getTitle

public TermList getTitle()
Specified by:
getTitle in interface SchemeInterface
Overrides:
getTitle in class ConceptScheme
Returns:
the titles

getDescription

public TermList getDescription()
Specified by:
getDescription in interface SchemeInterface
Overrides:
getDescription in class ConceptScheme
Returns:
the descriptions

getNamespace

public java.lang.String getNamespace()
Specified by:
getNamespace in interface SchemeInterface
Specified by:
getNamespace in interface org.openrdf.model.URI
Overrides:
getNamespace in class ConceptScheme
Returns:
the namespace

getConcept

public Concept getConcept(java.lang.String handle)
Specified by:
getConcept in interface SchemeInterface
Overrides:
getConcept in class ConceptScheme
Returns:
the concepts for an handle (redirected or not). Null if none

labelMatch

public java.util.ArrayList<SearchResult> labelMatch(java.lang.String prefix,
                                                    java.lang.String userLanguage,
                                                    LabelMatchType matchType)
Specified by:
labelMatch in interface SchemeInterface
Overrides:
labelMatch in class ConceptScheme

getCacheSize

public int getCacheSize()
Returns:
the cacheSize

setCacheSize

public void setCacheSize(int cacheSize)
Parameters:
cacheSize - the cacheSize to set

setRenewedCacheSize

public void setRenewedCacheSize(int cacheSize)

getConcept

public java.util.LinkedList<Concept> getConcept()
Specified by:
getConcept in interface SchemeInterface
Overrides:
getConcept in class ConceptScheme
Returns:
ALL the concepts: this effectively load them ALL in memory

getConceptInMemory

public java.util.LinkedList<Concept> getConceptInMemory()
Overrides:
getConceptInMemory in class NoScheme
Returns:
the concepts in the memory cache

getConceptReferringApplication

public java.util.LinkedHashMap<java.lang.String,ReferringApplication> getConceptReferringApplication(java.lang.String application)
Overrides:
getConceptReferringApplication in class ConceptScheme

preLoadFinished

public void preLoadFinished()
Specified by:
preLoadFinished in interface SchemeInterface
Overrides:
preLoadFinished in class ConceptScheme

getConceptMap

public java.util.Map<java.lang.String,Concept> getConceptMap()
Overrides:
getConceptMap in class ConceptScheme
Returns:
the concepts

getHasTopConcept

public java.util.LinkedList<Concept> getHasTopConcept()
Overrides:
getHasTopConcept in class ConceptScheme

getAlias

public java.util.Map<java.lang.String,java.lang.String> getAlias()
Overrides:
getAlias in class ConceptScheme
Returns:
the aliasses

removeConcept

public void removeConcept(Concept entry)
Overrides:
removeConcept in class ConceptScheme
Parameters:
handle - of the entry to put amongst concepts
entry - to put amongst concepts

putConcept

public void putConcept(Concept entry)
Specified by:
putConcept in interface SchemeInterface
Overrides:
putConcept in class ConceptScheme
Parameters:
entry - to put amongst concepts

setConcept

public void setConcept(java.util.List<Concept> someEntries)
Specified by:
setConcept in interface SchemeInterface
Overrides:
setConcept in class ConceptScheme
Parameters:
conceptMap - the concepts to set

getSize

public int getSize()
Specified by:
getSize in interface SchemeInterface
Overrides:
getSize in class ConceptScheme
Returns:
the schemeSize

setSize

public void setSize(int schemeSize)
Parameters:
schemeSize - the schemeSize to set

getNotationConcept

public Concept getNotationConcept(java.lang.String indexCode,
                                  java.lang.String notationCode)
Specified by:
getNotationConcept in interface SchemeInterface
Overrides:
getNotationConcept in class ConceptScheme

getConceptUsage

public ReferringApplicationList getConceptUsage(java.lang.String about)