Class AbstractWqlCriterion
java.lang.Object
org.metricshub.maven.plugin.connector.producer.model.criteria.AbstractCriterion
org.metricshub.maven.plugin.connector.producer.model.criteria.AbstractWqlCriterion
- Direct Known Subclasses:
WbemCriterion,WmiCriterion
This class extends
AbstractCriterion and provides common
functionality for WQL-related criteria.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceOrDefault(String defaultValue) Gets the namespace from the current WQL criterion, or default value if not present.getQuery()Gets the query from the current WQL criterion, ornullif not present.voidproduce(org.apache.maven.doxia.sink.Sink sink) Builds the sink for WQL-related information based on the current WQL criterion.
-
Method Details
-
getNamespaceOrDefault
Gets the namespace from the current WQL criterion, or default value if not present.- Parameters:
defaultValue- The default value to return if the value is not present.- Returns:
- The namespace from the criterion, or default value if not present.
-
getQuery
Gets the query from the current WQL criterion, ornullif not present.- Returns:
- The query from the criterion, or
nullif not present.
-
produce
public void produce(org.apache.maven.doxia.sink.Sink sink) Builds the sink for WQL-related information based on the current WQL criterion.- Specified by:
producein classAbstractCriterion- Parameters:
sink- The sink to produce the criterion.
-