public class GphotoOriginalVideo extends ExtensionPoint
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
GphotoOriginalVideo()
Default mutable constructor.
|
GphotoOriginalVideo(java.lang.Integer channels,
java.lang.Long duration,
java.lang.Integer height,
java.lang.Float samplingrate,
java.lang.String type,
java.lang.Integer width)
Immutable constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getChannels()
Returns the number of audio channels.
|
static ExtensionDescription |
getDefaultDescription(boolean required,
boolean repeatable)
Returns the extension description, specifying whether it is required, and
whether it is repeatable.
|
java.lang.Long |
getDuration()
Returns the video playback duration in milliseconds.
|
java.lang.Integer |
getHeight()
Returns the video height.
|
java.lang.Float |
getSamplingrate()
Returns the audio sample rate in kHz.
|
java.lang.String |
getType()
Returns the video format type.
|
java.lang.Integer |
getWidth()
Returns the video width.
|
boolean |
hasChannels()
Returns whether it has the number of audio channels.
|
boolean |
hasDuration()
Returns whether it has the video playback duration in milliseconds.
|
int |
hashCode() |
boolean |
hasHeight()
Returns whether it has the video height.
|
boolean |
hasSamplingrate()
Returns whether it has the audio sample rate in kHz.
|
boolean |
hasType()
Returns whether it has the video format type.
|
boolean |
hasWidth()
Returns whether it has the video width.
|
void |
setChannels(java.lang.Integer channels)
Sets the number of audio channels.
|
void |
setDuration(java.lang.Long duration)
Sets the video playback duration in milliseconds.
|
void |
setHeight(java.lang.Integer height)
Sets the video height.
|
void |
setSamplingrate(java.lang.Float samplingrate)
Sets the audio sample rate in kHz.
|
void |
setType(java.lang.String type)
Sets the video format type.
|
void |
setWidth(java.lang.Integer width)
Sets the video width.
|
java.lang.String |
toString() |
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getHandler, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, generate, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public GphotoOriginalVideo()
public GphotoOriginalVideo(java.lang.Integer channels, java.lang.Long duration, java.lang.Integer height, java.lang.Float samplingrate, java.lang.String type, java.lang.Integer width)
channels
- number of audio channels.duration
- video playback duration in milliseconds.height
- video height.samplingrate
- audio sample rate in kHz.type
- video format type.width
- video width.public java.lang.Integer getChannels()
public void setChannels(java.lang.Integer channels)
channels
- number of audio channels or null
to resetpublic boolean hasChannels()
public java.lang.Long getDuration()
public void setDuration(java.lang.Long duration)
duration
- video playback duration in milliseconds or
null
to resetpublic boolean hasDuration()
public java.lang.Integer getHeight()
public void setHeight(java.lang.Integer height)
height
- video height or null
to resetpublic boolean hasHeight()
public java.lang.Float getSamplingrate()
public void setSamplingrate(java.lang.Float samplingrate)
samplingrate
- audio sample rate in kHz or null
to resetpublic boolean hasSamplingrate()
public java.lang.String getType()
public void setType(java.lang.String type)
type
- video format type or null
to resetpublic boolean hasType()
public java.lang.Integer getWidth()
public void setWidth(java.lang.Integer width)
width
- video width or null
to resetpublic boolean hasWidth()
public static ExtensionDescription getDefaultDescription(boolean required, boolean repeatable)
required
- whether it is requiredrepeatable
- whether it is repeatablepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object