photospace.meta
Class Translator

java.lang.Object
  extended byphotospace.meta.Translator
All Implemented Interfaces:
java.io.Serializable

public class Translator
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.text.DateFormat DATE_FORMAT
           
 
Constructor Summary
Translator()
           
 
Method Summary
 PhotoMeta fromExif(com.drew.metadata.Metadata exif)
           
 Meta fromRdf(com.hp.hpl.jena.rdf.model.Model rdf)
           
 void setBaseUrl(java.lang.String baseUrl)
           
 com.hp.hpl.jena.rdf.model.Model toRdf(CollectionMeta collection, int depth)
           
 com.hp.hpl.jena.rdf.model.Model toRdf(Meta meta)
           
 com.hp.hpl.jena.rdf.model.Model toRss(CollectionMeta collection, java.lang.String link)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_FORMAT

public static final java.text.DateFormat DATE_FORMAT
Constructor Detail

Translator

public Translator()
Method Detail

toRss

public com.hp.hpl.jena.rdf.model.Model toRss(CollectionMeta collection,
                                             java.lang.String link)

toRdf

public com.hp.hpl.jena.rdf.model.Model toRdf(CollectionMeta collection,
                                             int depth)

toRdf

public com.hp.hpl.jena.rdf.model.Model toRdf(Meta meta)

fromRdf

public Meta fromRdf(com.hp.hpl.jena.rdf.model.Model rdf)
             throws java.text.ParseException
Throws:
java.text.ParseException

fromExif

public PhotoMeta fromExif(com.drew.metadata.Metadata exif)
                   throws com.drew.metadata.MetadataException
Throws:
com.drew.metadata.MetadataException

setBaseUrl

public void setBaseUrl(java.lang.String baseUrl)