Package org.opennms.integration.api.xml
Class GraphPropertiesParser
- java.lang.Object
-
- org.opennms.integration.api.xml.GraphPropertiesParser
-
public class GraphPropertiesParser extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_GRAPH_LIST_KEY
-
Constructor Summary
Constructors Constructor Description GraphPropertiesParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.IntegergetIntegerReportProperty(java.util.Properties props, java.lang.String key, java.lang.String suffix, boolean required)static java.util.List<org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph>loadPreFabGraphsFromInputStream(java.io.InputStream inputStream)static org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraphmakePrefabGraph(java.lang.String name, java.util.Properties props)static java.lang.String[]parseBundleList(java.lang.String list)Parses a string into an array of substrings, using a comma as a delimiter and trimming whitespace.static java.lang.String[]parseBundleList(java.lang.String list, java.lang.String delimiter)Parses a string into an array of substrings, using the specified delimeter and trimming whitespace.
-
-
-
Field Detail
-
DEFAULT_GRAPH_LIST_KEY
public static final java.lang.String DEFAULT_GRAPH_LIST_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadPreFabGraphsFromInputStream
public static java.util.List<org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph> loadPreFabGraphsFromInputStream(java.io.InputStream inputStream) throws java.io.IOException- Throws:
java.io.IOException
-
makePrefabGraph
public static org.opennms.integration.api.v1.config.datacollection.graphs.PrefabGraph makePrefabGraph(java.lang.String name, java.util.Properties props)
-
getIntegerReportProperty
public static java.lang.Integer getIntegerReportProperty(java.util.Properties props, java.lang.String key, java.lang.String suffix, boolean required)
-
parseBundleList
public static java.lang.String[] parseBundleList(java.lang.String list)
Parses a string into an array of substrings, using a comma as a delimiter and trimming whitespace.- Parameters:
list- The list formatted as adelimeter-delimited string.- Returns:
- The list formatted as an array of strings.
-
parseBundleList
public static java.lang.String[] parseBundleList(java.lang.String list, java.lang.String delimiter)Parses a string into an array of substrings, using the specified delimeter and trimming whitespace.- Parameters:
list- The list formatted as adelimeter-delimited string.delimiter- The delimeter.- Returns:
- The list formatted as an array of strings.
-
-