be.destin.skos.view
Class SkosView
java.lang.Object
be.destin.skos.view.SkosView
public class SkosView
- extends java.lang.Object
- Author:
- Christophe Dupriez
This class creates a SAX source to view an authority list only with names appropriates for the user.
It also sorts the concepts along those names and filter them (root of a word which must be present in a name) if a filter is specified
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
repeatedConcept
public static final java.lang.String repeatedConcept
- See Also:
- Constant Field Values
SkosView
public SkosView()
SkosView
public SkosView(SkosManager skosManager,
java.lang.String listCode,
SkosViewType viewType,
java.lang.String userLanguage)
- Constructor with recommended information
- Parameters:
schemeCode
- viewType
- userLanguage
-
getNarrower
public java.util.LinkedList<ViewConcept> getNarrower()
- Returns:
- the children of the top: the top of the SkosView!
getAbout
public java.lang.String getAbout()
- Returns:
- the schemeCode
getDepth
public int getDepth()
- Returns:
- the maxDepth
getFilter
public java.lang.String getFilter()
- Returns:
- the filter
getLang
public java.lang.String getLang()
- Returns:
- the userLanguage
getTop
public java.util.HashSet<java.lang.String> getTop()
- Returns:
- the topHandles
getType
public SkosViewType getType()
- Returns:
- the viewType
setNarrower
public void setNarrower(java.util.LinkedList<ViewConcept> child)
- Parameters:
children
- the children to set
setAbout
public void setAbout(java.lang.String listCode)
- Parameters:
schemeCode
- the schemeCode to set
setDepth
public void setDepth(int maxDepth)
- Parameters:
maxDepth
- the maxDepth to set
setFilter
public void setFilter(java.lang.String filter)
- Parameters:
filter
- the filter to set
setLang
public void setLang(java.lang.String userLanguage)
- Parameters:
userLanguage
- the userLanguage to set
setTop
public void setTop(java.util.HashSet<java.lang.String> topHandles)
- Parameters:
topHandles
- the topHandles to set
setType
public void setType(SkosViewType viewType)
- Parameters:
viewType
- the viewType to set
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getSkosManager
public SkosManager getSkosManager()
- Returns:
- the skosManager
setSkosManager
public void setSkosManager(SkosManager skosManager)
- Parameters:
skosManager
- the skosManager to set
getPivot
public java.lang.String getPivot()
- Returns:
- the pivot
setPivot
public void setPivot(java.lang.String pivot)
- Parameters:
pivot
- the pivot to set
addConceptList
public int addConceptList(java.util.LinkedList<ViewConcept> narrowers,
java.util.LinkedList<ViewConcept> written)
isSomeRejects
public boolean isSomeRejects()
setSomeRejects
public void setSomeRejects(boolean someRejects)
hasBroadContext
public boolean hasBroadContext()
getBroadContext
public java.lang.String getBroadContext()
setBroadContext
public void setBroadContext(java.lang.String broadContext)