com.flexive.shared.media.impl
Class FxUnknownMetadataImpl

java.lang.Object
  extended by com.flexive.shared.media.FxMetadata
      extended by com.flexive.shared.media.impl.FxUnknownMetadataImpl

public class FxUnknownMetadataImpl
extends FxMetadata

Metadata for unknown formats

Version:
$Rev: 462 $
Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.flexive.shared.media.FxMetadata
FxMetadata.FxMetadataItem
 
Constructor Summary
FxUnknownMetadataImpl(java.lang.String mimeType, java.lang.String filename)
          Ctor
 
Method Summary
 java.lang.String getFilename()
          Get the file name, can be null if unknown
 FxMediaType getMediaType()
          Get the type of this metadata instance to allow easier upcasts
 java.util.List<FxMetadata.FxMetadataItem> getMetadata()
          Get a list of defined metadata items
 java.lang.String getMimeType()
          Get the mime type
protected  void writeXMLTags(javax.xml.stream.XMLStreamWriter writer)
          Write implementation specific XML tags
 
Methods inherited from class com.flexive.shared.media.FxMetadata
asImageMetadata, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FxUnknownMetadataImpl

public FxUnknownMetadataImpl(java.lang.String mimeType,
                             java.lang.String filename)
Ctor

Parameters:
mimeType - mimetype
filename - filename or null
Method Detail

getMediaType

public FxMediaType getMediaType()
Get the type of this metadata instance to allow easier upcasts

Specified by:
getMediaType in class FxMetadata
Returns:
type of this metadata instance

getMimeType

public java.lang.String getMimeType()
Get the mime type

Specified by:
getMimeType in class FxMetadata
Returns:
mime type

getFilename

public java.lang.String getFilename()
Get the file name, can be null if unknown

Specified by:
getFilename in class FxMetadata
Returns:
filename or null

getMetadata

public java.util.List<FxMetadata.FxMetadataItem> getMetadata()
Get a list of defined metadata items

Specified by:
getMetadata in class FxMetadata
Returns:
list of defined metadata items

writeXMLTags

protected void writeXMLTags(javax.xml.stream.XMLStreamWriter writer)
Write implementation specific XML tags

Specified by:
writeXMLTags in class FxMetadata
Parameters:
writer - XMLStreamWriter