Class Tags
java.lang.Object
co.ecg.alpaca.core.broadworks.framework.Tags
Performs String replacement using BroadWorks tags.
- Version:
- $Id: $Id
- Author:
- Matthew Keathley on 10/29/15
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessDeviceTagMap
(AccessDevice accessDevice) getAccessDeviceTagMap.static Matcher
getTagMatcher
(String string) Creates aMatcher
for the given String using the BroadWorks style tag pattern.getUserTagMap
(User user) getUserTagMap.static String
replaceDeviceString
(String string, AccessDevice accessDevice) Replacement Method for Typical BroadWorks Device Flagsstatic String
replaceTagString
(String string, Map<String, String> tagMap) Replacement Method for BroadWorks Tagsstatic String
replaceUserString
(String string, User user) Replacement method for BroadWorks User Tags
-
Constructor Details
-
Tags
public Tags()
-
-
Method Details
-
replaceUserString
Replacement method for BroadWorks User Tags- Parameters:
string
- The String that contains the tags that will be replaceduser
- The User that has the tags that will be replaced.- Returns:
- Returns a string with all the tags replaced with their values.
-
replaceDeviceString
public static String replaceDeviceString(String string, AccessDevice accessDevice) throws HelperException Replacement Method for Typical BroadWorks Device Flags- Parameters:
string
- The String that contains the tags that will be replacedaccessDevice
- The AccessDevice that has the tags that will be replaced.- Returns:
- Returns a string with all the tags replaced with their values.
- Throws:
HelperException
- if any.
-
getTagMatcher
Creates aMatcher
for the given String using the BroadWorks style tag pattern.- Parameters:
string
- The string to create the matcher with.- Returns:
- The Matcher using the tag pattern.
-
replaceTagString
Replacement Method for BroadWorks Tags- Parameters:
string
- The String that contains the tags that will be replacedtagMap
- The map of tags to their replacement values.- Returns:
- Returns a string with all the tags replaced with their values.
-
getAccessDeviceTagMap
public static Map<String,String> getAccessDeviceTagMap(AccessDevice accessDevice) throws HelperException getAccessDeviceTagMap.
- Parameters:
accessDevice
- aAccessDevice
object.- Returns:
- a
Map
object. - Throws:
HelperException
- if any.
-
getUserTagMap
getUserTagMap.
-