CloneableTagModelAllowCache, TagModelByteRange, TagModelDiscontinuity, TagModelDiscontinuitySequence, TagModelEndlist, TagModelIFramesOnly, TagModelIndependentSegments, TagModelINF, TagModelKey, TagModelM3U, TagModelMap, TagModelMedia, TagModelMediaSequence, TagModelPartialSegment, TagModelPartialSegmentINF, TagModelPlaylistType, TagModelPreFetch, TagModelProgramDateTime, TagModelRenditionReport, TagModelServerControl, TagModelSessionData, TagModelSessionKey, TagModelSkip, TagModelStart, TagModelStreamInfCommon, TagModelTargetDuration, TagModelUnknown, TagModelURI, TagModelVersionpublic abstract class TagModel extends ManifestModelLogging implements Cloneable
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<Attribute> |
attributes |
|
protected String |
tagName |
| Modifier | Constructor | Description |
|---|---|---|
protected |
TagModel(String tagName) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addAllAttributes(java.util.Collection<? extends Attribute> c) |
|
boolean |
addAttribute(Attribute attribute) |
|
Object |
clone() |
|
static boolean |
equals(TagModel o1,
TagModel o2) |
|
boolean |
equals(Object obj) |
|
static <T extends TagModel> |
findTags(Class<T> cls,
java.util.Collection<TagModel> tags) |
|
void |
formatAttributes(StringBuilder sb) |
|
String |
formatBoolean(Boolean value) |
Format a Boolean tag value.
|
String |
formatBooleanAttribute(String name,
Boolean value) |
Format a Boolean tag attribute.
|
String |
formatDoubleAttribute(String name,
Double value) |
Format an Double tag attribute.
|
String |
formatEnumAttribute(String name,
Enum value) |
Format an Enumerated tag attribute.
|
String |
formatFloat(Float value) |
Format a Float tag value.
|
String |
formatFloatAttribute(String name,
Float value) |
Format an Float tag attribute.
|
String |
formatInteger(Integer value) |
Format a Integer tag value.
|
String |
formatIntegerAttribute(String name,
Integer value) |
Format a "decimal-integer" tag attribute from an Integer value.
|
String |
formatLong(Long value) |
Format a Long tag value.
|
String |
formatLongAttribute(String name,
Long value) |
Format a "decimal-integer" tag attribute from a Long value.
|
String |
formatQuotedStringAttribute(String name,
String value) |
Format a quoted-string tag attribute.
|
String |
formatString(String value) |
Format a String tag value.
|
String |
formatUnquotedStringAttribute(String name,
String value) |
Format an unquoted-string tag attribute.
|
String |
formatValue(Object value) |
Format a Float, Integer, or String tag value.
|
String |
getContextStr() |
Get the context string associated with the Model to include with the log statements
|
String |
getTag() |
|
String |
getTagName() |
|
java.util.List<Attribute> |
getUnknownAttributes() |
|
int |
hashCode() |
|
abstract boolean |
isMediaSegmentTag() |
|
abstract boolean |
isValid(Integer version) |
|
void |
setContextStr(String contextStr) |
|
abstract String |
toString() |
|
abstract boolean |
validForMasterPlaylist() |
|
abstract boolean |
validForMediaPlaylist() |
|
abstract void |
write(TagWriter writer) |
getDebugLog, logDebug, logError, logError, logError, logInfo, logWarn, setDebugLog, setUseSystemOut, usingSystemOutprotected java.util.List<Attribute> attributes
protected String tagName
public boolean addAllAttributes(java.util.Collection<? extends Attribute> c)
public boolean addAttribute(Attribute attribute)
public Object clone()
throws CloneNotSupportedException
clone in class ManifestModelLoggingCloneNotSupportedExceptionpublic boolean equals(Object obj)
equals in class Objectpublic static <T extends TagModel> T[] findTags(Class<T> cls, java.util.Collection<TagModel> tags)
public void formatAttributes(StringBuilder sb)
public String formatBoolean(Boolean value)
value - is the Boolean valuepublic String formatBooleanAttribute(String name,
Boolean value)
name - is the attribute namevalue - is the Boolean attribute's valuepublic String formatDoubleAttribute(String name,
Double value)
name - is the attribute namevalue - is the Double attribute's valuepublic String formatEnumAttribute(String name,
Enum value)
name - is the attribute namevalue - is the Enumerated attribute's valuepublic String formatFloat(Float value)
value - is the Float valuepublic String formatFloatAttribute(String name,
Float value)
name - is the attribute namevalue - is the Float attribute's valuepublic String formatInteger(Integer value)
value - is the Integer valuepublic String formatIntegerAttribute(String name,
Integer value)
name - is the attribute namevalue - is the decimal-integer attribute's value as an Integerpublic String formatLong(Long value)
value - is the Long valuepublic String formatLongAttribute(String name,
Long value)
name - is the attribute namevalue - is the decimal-integer attribute's value as a Longpublic String formatQuotedStringAttribute(String name,
String value)
name - is the attribute namevalue - is the String attribute's valuepublic String formatString(String value)
value - is the String valuepublic String formatUnquotedStringAttribute(String name,
String value)
name - is the attribute namevalue - is the String attribute's valuepublic String formatValue(Object value)
value - is the Float, Integer, or String valuepublic String getContextStr()
ManifestModelLogginggetContextStr in class ManifestModelLoggingpublic String getTag()
public String getTagName()
public java.util.List<Attribute> getUnknownAttributes()
public int hashCode()
hashCode in class Objectpublic abstract boolean isMediaSegmentTag()
public abstract boolean isValid(Integer version)
public void setContextStr(String contextStr)
contextStr - the contextStr to setpublic abstract String toString()
toString in class Objectpublic abstract boolean validForMasterPlaylist()
public abstract boolean validForMediaPlaylist()
public abstract void write(TagWriter writer) throws java.io.IOException
writer - java.io.IOException