Package proj.zoie.api.impl

Source Code of proj.zoie.api.impl.DefaultZoieVersionFactory

package proj.zoie.api.impl;

import proj.zoie.api.ZoieVersion;
import proj.zoie.api.ZoieVersionFactory;
import proj.zoie.api.DefaultZoieVersion;

public class DefaultZoieVersionFactory implements ZoieVersionFactory<DefaultZoieVersion>
{

  public DefaultZoieVersionFactory()
  { 
  }

  public DefaultZoieVersion getZoieVersion(String str)
  {
     if(str.equals("null"))
     {  
       return null;
     }
     DefaultZoieVersion zvt = new DefaultZoieVersion();
     long id = Long.parseLong(str);
     zvt.setVersionId(id);
     return zvt; 
   }
}
TOP

Related Classes of proj.zoie.api.impl.DefaultZoieVersionFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.