Class Overview
Object representation for the yt:rating tag.
Summary
| Public Constructors |
|
|
YtFormatInfo()
Creates an empty tag.
|
|
|
YtFormatInfo(String format, String frameRate, String timeOffset, boolean dropFrame)
Creates a rating tag with the given attributes.
|
|
[Expand]
Inherited Methods |
From class
com.google.gdata.data.AbstractExtension
|
void
|
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper.
|
|
final
static
void
|
disableStrictValidation()
|
|
final
static
void
|
enableStrictValidation()
|
|
static
boolean
|
eq(Object o1, Object o2)
|
|
void
|
generate(XmlWriter w, ExtensionProfile p)
Generates an XML representation for the extension.
|
|
void
|
generate(XmlWriter w, ExtensionProfile p, XmlNamespace namespace, String localName, List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates the XML into the XML writer.
|
|
void
|
generateAttributes(List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates the attributes in the generator into the list of attributes.
|
|
final
String
|
getExtensionLocalName()
Gets the extension's localname.
|
|
final
XmlNamespace
|
getExtensionNamespace()
Gets the extension's namespace.
|
|
XmlParser.ElementHandler
|
getHandler(ExtensionProfile p, String namespace, String localName, Attributes attrs)
|
|
final
boolean
|
isImmutable()
|
|
final
static
boolean
|
isStrictValidation()
|
|
void
|
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator.
|
|
boolean
|
sameClassAs(Object o)
|
|
final
void
|
setImmutable(boolean isImmutable)
|
|
final
static
void
|
throwExceptionForMissingAttribute(String attrName)
Throws an IllegalStateException if the value is required
and it is missing.
|
|
final
void
|
throwExceptionIfImmutable()
Throws an IllegalStateException if this instance is immutable.
|
|
void
|
validate()
Checks the attributes to see if there are any problems.
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.google.gdata.data.Extension
|
Constants
private
static
final
String
DROP_FRAME
Constant Value:
"dropFrame"
private
static
final
String
FORMAT
private
static
final
String
FRAME_RATE
Constant Value:
"frameRate"
private
static
final
String
TIME_OFFSET
Constant Value:
"timeOffset"
Fields
private
boolean
dropFrame
private
String
timeOffset
Public Constructors
public
YtFormatInfo
(String format, String frameRate, String timeOffset, boolean dropFrame)
Creates a rating tag with the given attributes.
Parameters
| format
| Caption file format name |
| frameRate
| Frame rate of the video |
| timeOffset
| Time offset to be applied to timestamps |
| dropFrame
| Does the format use the dropFrame technique
|
Public Methods
public
boolean
getDropFrame
()
Returns
- whether dropFrame is used
public
String
getFormat
()
public
String
getFrameRate
()
public
String
getTimeOffset
()
public
void
setDropFrame
(boolean dropFrame)
public
void
setFormat
(String format)
Parameters
| format
| The caption file format to set
|
public
void
setFrameRate
(String frameRate)
Parameters
| frameRate
| The frame rate to set
|
public
void
setTimeOffset
(String timeOffset)
Parameters
| timeOffset
| The time offset to set
|
Protected Methods
protected
void
putAttributes
(AttributeGenerator generator)
Puts attributes into the attribute generator. Called from
generate(XmlWriter, ExtensionProfile). Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.
Parameters
| generator
| Attribute generator
|