be.destin.skos.view
Class SkosViewManager
java.lang.Object
be.destin.skos.view.SkosViewManager
public class SkosViewManager
- extends java.lang.Object
Method Summary |
static java.util.LinkedList<ViewConcept> |
getConcepts(SkosView vocabulary)
|
static java.util.HashSet<SkosView> |
openView(SkosManager skosManager,
java.util.Set<java.lang.String> schemes,
SkosViewType viewType,
java.lang.String userLanguage,
java.lang.String filter)
|
static SkosView |
openView(SkosManager skosManager,
java.lang.String aScheme,
SkosViewType viewType,
java.lang.String userLanguage,
java.lang.String filter)
|
static void |
renderVocabulariesAsHTML(javax.servlet.http.HttpServletRequest request,
java.io.Writer out,
java.util.HashSet<SkosView> vocabularies,
java.lang.String xslt,
java.lang.String searchIndex,
java.lang.String application,
boolean allowMultipleSelection)
Converts a XML Vocabulary to a HTML tree |
static void |
renderVocabularyAsHTML(javax.servlet.http.HttpServletRequest request,
java.io.Writer out,
SkosView vocabulary,
java.lang.String controlledVocabulary2HtmlXSLT,
java.lang.String searchIndex,
java.lang.String application,
boolean allowMultipleSelection)
Renders a taxonomy as HTML by applying a stylesheet. |
static java.lang.String |
toDotConceptHierarchy(SkosHtmlManager skosHtmlManager,
SkosView skosView,
ViewConcept viewConcept,
java.util.LinkedList<java.lang.String> nodes,
boolean inContext)
|
static java.lang.String |
toDotHierarchy(SkosHtmlManager skosHtmlManager,
SkosView skosView,
java.util.LinkedList<java.lang.String> nodes)
|
static java.lang.String |
toDotLabels(SkosHtmlManager skosHtmlManager,
SkosView skosView,
java.util.LinkedList<java.lang.String> nodes,
int width,
boolean svg)
|
static void |
toHtmlOut(SkosHtmlManager skosHtmlManager,
java.io.Writer out,
SkosView vocabulary)
|
static void |
toHtmlTableOut(java.io.Writer out,
SkosView vocabulary,
SkosHtmlTable skosHtmlTable)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SkosViewManager
public SkosViewManager()
openView
public static java.util.HashSet<SkosView> openView(SkosManager skosManager,
java.util.Set<java.lang.String> schemes,
SkosViewType viewType,
java.lang.String userLanguage,
java.lang.String filter)
openView
public static SkosView openView(SkosManager skosManager,
java.lang.String aScheme,
SkosViewType viewType,
java.lang.String userLanguage,
java.lang.String filter)
renderVocabulariesAsHTML
public static void renderVocabulariesAsHTML(javax.servlet.http.HttpServletRequest request,
java.io.Writer out,
java.util.HashSet<SkosView> vocabularies,
java.lang.String xslt,
java.lang.String searchIndex,
java.lang.String application,
boolean allowMultipleSelection)
- Converts a XML Vocabulary to a HTML tree
- Parameters:
vocabularies
- A hashtable with all the XML taxonomies/vocabularies loaded as
valuesxslt
- the filename of the stylesheet to apply the XML taxonomiesallowMultipleSelection
- include checkboxes next to the taxonomy termscontextPath
- The context path
renderVocabularyAsHTML
public static void renderVocabularyAsHTML(javax.servlet.http.HttpServletRequest request,
java.io.Writer out,
SkosView vocabulary,
java.lang.String controlledVocabulary2HtmlXSLT,
java.lang.String searchIndex,
java.lang.String application,
boolean allowMultipleSelection)
- Renders a taxonomy as HTML by applying a stylesheet.
- Parameters:
vocabulary
- The XML document representing a taxonomycontrolledVocabulary2HtmlXSLT
- The filename of the stylesheet that converts the taxonomy to
HTMLallowMultipleSelection
- include checkboxes next to the taxonomy termscontextPath
- The context path
toHtmlOut
public static void toHtmlOut(SkosHtmlManager skosHtmlManager,
java.io.Writer out,
SkosView vocabulary)
toHtmlTableOut
public static void toHtmlTableOut(java.io.Writer out,
SkosView vocabulary,
SkosHtmlTable skosHtmlTable)
getConcepts
public static java.util.LinkedList<ViewConcept> getConcepts(SkosView vocabulary)
toDotConceptHierarchy
public static java.lang.String toDotConceptHierarchy(SkosHtmlManager skosHtmlManager,
SkosView skosView,
ViewConcept viewConcept,
java.util.LinkedList<java.lang.String> nodes,
boolean inContext)
toDotHierarchy
public static java.lang.String toDotHierarchy(SkosHtmlManager skosHtmlManager,
SkosView skosView,
java.util.LinkedList<java.lang.String> nodes)
toDotLabels
public static java.lang.String toDotLabels(SkosHtmlManager skosHtmlManager,
SkosView skosView,
java.util.LinkedList<java.lang.String> nodes,
int width,
boolean svg)