public abstract class TagModel extends ManifestModelLogging implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<Attribute> |
attributes |
protected String |
tagName |
| Modifier | Constructor and Description |
|---|---|
protected |
TagModel(String tagName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAttributes(java.util.Collection<? extends Attribute> c) |
boolean |
addAttribute(Attribute attribute) |
Object |
clone() |
boolean |
equals(Object obj) |
String |
formatBoolean(Boolean value)
Format a Boolean tag value.
|
String |
formatBooleanAttribute(String name,
Boolean value)
Format a Boolean 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 an Integer tag attribute.
|
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() |
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 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 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 Integer attribute's valuepublic 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 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