com.fatwire.gst.foundation.tagging
Class TagUtils

java.lang.Object
  extended by com.fatwire.gst.foundation.tagging.TagUtils

public final class TagUtils
extends Object

Utilities for converting a tag into a cache dependency string and back

Since:
Jul 28, 2010
Author:
Tony Field

Constructor Summary
TagUtils()
           
 
Method Summary
static Tag asTag(String tagValue)
           
static Tag convertCacheDepStringToTag(String cacheDepString)
          Convert the cache dep string to a Tag.
static String convertTagToCacheDepString(Tag tag)
          Return the cache dependency string format corresponding to the specified tag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagUtils

public TagUtils()
Method Detail

convertTagToCacheDepString

public static String convertTagToCacheDepString(Tag tag)
Return the cache dependency string format corresponding to the specified tag

Parameters:
tag - the tag
Returns:
string

convertCacheDepStringToTag

public static Tag convertCacheDepStringToTag(String cacheDepString)
Convert the cache dep string to a Tag. If the string is not valid, null is returned

Parameters:
cacheDepString - input string, note not the same as the tag itself.
Returns:
Tag or null
See Also:
convertTagToCacheDepString(com.fatwire.gst.foundation.tagging.Tag)

asTag

public static Tag asTag(String tagValue)


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.