public class ObjectNameQueryUtility extends Object
| Constructor and Description |
|---|
ObjectNameQueryUtility(String objectNameQueryTemplate)
Builds a mapped query utility object and finds the variables in the supplied object name query template.
|
ObjectNameQueryUtility(String objectNameQueryTemplate,
org.rhq.core.domain.configuration.Configuration parentConfiguration)
Builds a mapped query utility object and finds the variables in the supplied object name query template.
|
| Modifier and Type | Method and Description |
|---|---|
String |
formatMessage(String message)
Format a message with {
|
String |
getQueryTemplate() |
String |
getTranslatedQuery() |
Map<String,String> |
getVariableProperties() |
Map<String,String> |
getVariableValues() |
boolean |
isContainsExtraKeyProperties(Set<String> strings) |
void |
resetVariables()
Clears out variables so that a new found bean can be used against the same utility object again.
|
boolean |
setMatchedKeyValues(Map<String,String> keyProperties)
Set values for properties from an objectName.
|
public ObjectNameQueryUtility(String objectNameQueryTemplate)
objectNameQueryTemplate - string of form "a:b=%c%,d=e,f=%g%"public ObjectNameQueryUtility(String objectNameQueryTemplate, org.rhq.core.domain.configuration.Configuration parentConfiguration)
objectNameQueryTemplate - string of form "a:b=%c%,d=e,f=%g%,h={myParentsH}"parentConfiguration - the config holding the matched values for the object name key property variablespublic boolean setMatchedKeyValues(Map<String,String> keyProperties)
keyProperties - properties from the found objectName to applypublic String formatMessage(String message)
message - the message to formatpublic void resetVariables()
public String getQueryTemplate()
public String getTranslatedQuery()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.