public class LinksParser
extends java.lang.Object
Constructor and Description |
---|
LinksParser()
Creates a new instance of LinksParser
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dynamicLinksToString(LinkSpec linkSpec,
org.ai_heuristic.tree.Tree linkStructure,
boolean allLevels,
java.lang.String indent)
Return all linked sources as a list of XML elements.
|
org.licas_xml.abs.Element |
dynamicLinksToXml(java.lang.String uuid,
LinkSpec linkSpec,
org.ai_heuristic.tree.Tree linkStructure,
boolean allLevels,
boolean configValues)
Return all linked sources as a list of XML elements.
|
org.licas_xml.abs.Element |
linkSourcesToXml(java.lang.String uuid,
java.util.ArrayList sources)
Return all linked sources as a list of XML elements.
|
void |
nextXmlToDynamicLinks(LinkSpec linkSpec,
org.ai_heuristic.tree.TreeNode linkStructure,
org.licas_xml.abs.Element linksElem)
Parse the xml description and fill the link spec and structure with the dynamic links.
|
void |
xmlToDynamicLinks(LinkSpec linkSpec,
org.ai_heuristic.tree.Tree linkStructure,
org.licas_xml.abs.Element linksElem)
Parse the xml description and fill the link spec and structure with the dynamic links.
|
LinkSpec |
xmlToThresholdsConfig(org.licas_xml.abs.Element thresholdsXml)
Get the initial threshold config for this component.
|
public LinkSpec xmlToThresholdsConfig(org.licas_xml.abs.Element thresholdsXml) throws java.lang.Exception
thresholdsXml
- the root config element.java.lang.Exception
- any error.public java.lang.String dynamicLinksToString(LinkSpec linkSpec, org.ai_heuristic.tree.Tree linkStructure, boolean allLevels, java.lang.String indent) throws java.lang.Exception
linkSpec
- stores the original config values.linkStructure
- the linking structure itself.allLevels
- if true, return all 3 levels, if false only return the top link level
references.indent
- for formatting purposes, can be null.java.lang.Exception
- any error.public org.licas_xml.abs.Element dynamicLinksToXml(java.lang.String uuid, LinkSpec linkSpec, org.ai_heuristic.tree.Tree linkStructure, boolean allLevels, boolean configValues) throws java.lang.Exception
uuid
- a parent service uuid, for info purposes only.linkSpec
- stores the original config values.linkStructure
- the linking structure itself.allLevels
- if true, return all 3 levels, if false only return the top link level
references.configValues
- if false, return just the path and source info.
If true, include other values, such as config, as well.java.lang.Exception
- any error.public org.licas_xml.abs.Element linkSourcesToXml(java.lang.String uuid, java.util.ArrayList sources) throws java.lang.Exception
uuid
- a parent service uuid, for info purposes only.sources
- list of selected link sources.java.lang.Exception
- any error.public void xmlToDynamicLinks(LinkSpec linkSpec, org.ai_heuristic.tree.Tree linkStructure, org.licas_xml.abs.Element linksElem) throws java.lang.Exception
linkSpec
- an empty specification to fill.linkStructure
- the tree structure to store the links.linksElem
- the dynamic links description.java.lang.Exception
- any error.public void nextXmlToDynamicLinks(LinkSpec linkSpec, org.ai_heuristic.tree.TreeNode linkStructure, org.licas_xml.abs.Element linksElem) throws java.lang.Exception
linkSpec
- the linking spec.linkStructure
- the tree structure to store the links.linksElem
- the dynamic links description.java.lang.Exception
- any error.