public class MediaModuleParser extends java.lang.Object implements ModuleParser
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
FILESIZE_WITH_UNIT_PATTERN |
private static org.slf4j.Logger |
LOG |
private static org.jdom2.Namespace |
NS |
Constructor and Description |
---|
MediaModuleParser() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNamespaceUri()
Returns the namespace URI this parser handles.
|
org.jdom2.Namespace |
getNS() |
Module |
parse(org.jdom2.Element mmRoot,
java.util.Locale locale)
Parses the XML node (JDOM element) extracting module information.
|
private MediaContent[] |
parseContent(org.jdom2.Element e) |
(package private) static long |
parseFileSize(java.lang.String fileSizeAttrValue) |
private MediaGroup[] |
parseGroup(org.jdom2.Element e) |
private Metadata |
parseMetadata(org.jdom2.Element e) |
private PlayerReference |
parsePlayer(org.jdom2.Element e) |
private static final org.slf4j.Logger LOG
private static final org.jdom2.Namespace NS
private static final java.util.regex.Pattern FILESIZE_WITH_UNIT_PATTERN
public java.lang.String getNamespaceUri()
ModuleParser
getNamespaceUri
in interface ModuleParser
public Module parse(org.jdom2.Element mmRoot, java.util.Locale locale)
ModuleParser
parse
in interface ModuleParser
mmRoot
- the XML node (JDOM element) to extract module information from.static long parseFileSize(java.lang.String fileSizeAttrValue)
private MediaContent[] parseContent(org.jdom2.Element e)
private MediaGroup[] parseGroup(org.jdom2.Element e)
private Metadata parseMetadata(org.jdom2.Element e)
private PlayerReference parsePlayer(org.jdom2.Element e)
public org.jdom2.Namespace getNS()