Class SearchTemplateKey
- java.lang.Object
-
- com.orchestranetworks.search.template.SearchTemplateKey
-
public final class SearchTemplateKey extends Object
Identifies a search template.- Since:
- 6.0.0
- See Also:
SearchTemplate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Stringformat()Returns a persistent identifier for this service key.static SearchTemplateKeyforModuleSearchTemplateName(String aModuleName, String aSearchTemplateName)StringgetModuleName()StringgetName()Returns the full name of the search template.StringgetSearchTemplateName()Returns the local name of the search template by removing the prefix and including the '@' character.inthashCode()booleanisBuiltInTemplate()Returnstrueif this instance identifies a built-in template.static SearchTemplateKeyparse(String aString)Returns the template key that corresponds to the specified string.StringtoString()
-
-
-
Method Detail
-
parse
public static SearchTemplateKey parse(String aString)
Returns the template key that corresponds to the specified string.The specified string is generally generated by the method
format().- Throws:
IllegalArgumentException- if the specified string does not match the regular expression([-\\d\\pL:_.]*)@?(%?[-\\d\\pL:_. /]+).
-
forModuleSearchTemplateName
public static SearchTemplateKey forModuleSearchTemplateName(String aModuleName, String aSearchTemplateName)
-
getModuleName
public String getModuleName()
-
getSearchTemplateName
public String getSearchTemplateName()
Returns the local name of the search template by removing the prefix and including the '@' character.
-
getName
public String getName()
Returns the full name of the search template.
-
isBuiltInTemplate
public boolean isBuiltInTemplate()
Returnstrueif this instance identifies a built-in template.
-
format
public String format()
Returns a persistent identifier for this service key.The search template key can be re-obtained by parsing this persistent identifier using the method
parse(String).
-
-