net.sourceforge.domian.repository
Class AbstractXStreamXmlFilePerEntityRepository.EntityId_NamedXStreamFilePersistenceStrategy

java.lang.Object
  extended by com.thoughtworks.xstream.persistence.AbstractFilePersistenceStrategy
      extended by com.thoughtworks.xstream.persistence.FilePersistenceStrategy
          extended by net.sourceforge.domian.repository.AbstractXStreamXmlFilePerEntityRepository.EntityId_NamedXStreamFilePersistenceStrategy
All Implemented Interfaces:
com.thoughtworks.xstream.persistence.PersistenceStrategy
Enclosing class:
AbstractXStreamXmlFilePerEntityRepository<T extends Entity>

protected static class AbstractXStreamXmlFilePerEntityRepository.EntityId_NamedXStreamFilePersistenceStrategy
extends com.thoughtworks.xstream.persistence.FilePersistenceStrategy

Custom FilePersistenceStrategy class.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.thoughtworks.xstream.persistence.AbstractFilePersistenceStrategy
com.thoughtworks.xstream.persistence.AbstractFilePersistenceStrategy.ValidFilenameFilter, com.thoughtworks.xstream.persistence.AbstractFilePersistenceStrategy.XmlMapEntriesIterator
 
Constructor Summary
protected AbstractXStreamXmlFilePerEntityRepository.EntityId_NamedXStreamFilePersistenceStrategy(java.io.File baseDirectory)
           
 
Method Summary
protected  java.lang.String escape(java.lang.String key)
           
protected  java.lang.Object extractKey(java.lang.String name)
           
protected  java.lang.String getName(java.lang.Object key)
           
protected  boolean isValid(java.io.File dir, java.lang.String name)
           
protected  java.lang.String unescape(java.lang.String name)
           
 
Methods inherited from class com.thoughtworks.xstream.persistence.AbstractFilePersistenceStrategy
containsKey, get, getConverterLookup, getMapper, iterator, put, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXStreamXmlFilePerEntityRepository.EntityId_NamedXStreamFilePersistenceStrategy

protected AbstractXStreamXmlFilePerEntityRepository.EntityId_NamedXStreamFilePersistenceStrategy(java.io.File baseDirectory)
Method Detail

isValid

protected boolean isValid(java.io.File dir,
                          java.lang.String name)
Overrides:
isValid in class com.thoughtworks.xstream.persistence.FilePersistenceStrategy

extractKey

protected java.lang.Object extractKey(java.lang.String name)
Overrides:
extractKey in class com.thoughtworks.xstream.persistence.FilePersistenceStrategy

unescape

protected java.lang.String unescape(java.lang.String name)
Overrides:
unescape in class com.thoughtworks.xstream.persistence.FilePersistenceStrategy

escape

protected java.lang.String escape(java.lang.String key)
Overrides:
escape in class com.thoughtworks.xstream.persistence.FilePersistenceStrategy

getName

protected java.lang.String getName(java.lang.Object key)
Overrides:
getName in class com.thoughtworks.xstream.persistence.FilePersistenceStrategy


Copyright © 2008-2010. All Rights Reserved.