public class YtFormatInfo extends AbstractExtension
AbstractExtension.AttributesHandlerlocalName, namespace| Constructor and Description |
|---|
YtFormatInfo()
Creates an empty tag.
|
YtFormatInfo(java.lang.String format,
java.lang.String frameRate,
java.lang.String timeOffset,
boolean dropFrame)
Creates a rating tag with the given attributes.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
|
boolean |
getDropFrame() |
java.lang.String |
getFormat() |
java.lang.String |
getFrameRate() |
java.lang.String |
getTimeOffset() |
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
void |
setDropFrame(boolean dropFrame) |
void |
setFormat(java.lang.String format) |
void |
setFrameRate(java.lang.String frameRate) |
void |
setTimeOffset(java.lang.String timeOffset) |
disableStrictValidation, enableStrictValidation, eq, generate, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, getHandler, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic YtFormatInfo()
public YtFormatInfo(java.lang.String format,
java.lang.String frameRate,
java.lang.String timeOffset,
boolean dropFrame)
format - caption file format nameframeRate - frame rate of the videotimeOffset - time offset to be applied to timestampsdropFrame - does the format use the dropFrame techniquepublic java.lang.String getFormat()
public void setFormat(java.lang.String format)
format - the caption file format to setpublic java.lang.String getFrameRate()
public void setFrameRate(java.lang.String frameRate)
frameRate - the frame rate to setpublic java.lang.String getTimeOffset()
public void setTimeOffset(java.lang.String timeOffset)
timeOffset - the time offset to setpublic boolean getDropFrame()
public void setDropFrame(boolean dropFrame)
set - whether dropFrame is usedprotected void consumeAttributes(AttributeHelper helper) throws ParseException
AbstractExtensionAttributeHelper.consumeContent(boolean) to consume the element's text
content. Called from AbstractExtension.getHandler(com.google.gdata.data.ExtensionProfile, java.lang.String, java.lang.String, org.xml.sax.Attributes). Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.consumeAttributes in class AbstractExtensionhelper - attribute helperParseException - any parsing exceptionprotected void putAttributes(AttributeGenerator generator)
AbstractExtensionAbstractExtension.generate(XmlWriter,ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.putAttributes in class AbstractExtensiongenerator - attribute generator