Class Tags.TagVersionInfo
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.web.templatemodels.Tags.TagVersionInfo
-
- Enclosing class:
- Tags
protected static class Tags.TagVersionInfo extends Object
Find the value of "href" or "src". If there is such a value, and it doesn't have a query string already, and it represents a local URL, and we can locate the file that is served by the URL and get the last modified date, then we have found a "version number" that we can add to the attribute value. Reference for parsing attributes: https://www.w3.org/TR/html/syntax.html#elements-attributes
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classTags.TagVersionInfo.MatchResult
-
Constructor Summary
Constructors Constructor Description TagVersionInfo(String rawTag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringaddVersionNumber(String rawTag, Tags.TagVersionInfo info)booleanhasVersion()
-
-
-
Constructor Detail
-
TagVersionInfo
public TagVersionInfo(String rawTag)
-
-
Method Detail
-
addVersionNumber
public static String addVersionNumber(String rawTag, Tags.TagVersionInfo info)
-
hasVersion
public boolean hasVersion()
-
-