Commit 3b68cbda by Harish Butani

helper for TypeSerialization

parent f16be50f
......@@ -61,6 +61,11 @@ object TypesSerialization {
toJson(ts, (typ : IDataType[_]) => typNames.contains(typ.getName))
}
import scala.collection.JavaConversions._
def toJson(ts : TypeSystem, typNames : java.util.List[String]) : String = {
toJson(ts, typNames.toIndexedSeq:_*)
}
def toJson(ts : TypeSystem, export : IDataType[_] => Boolean) : String = {
implicit val formats = org.json4s.native.Serialization.formats(NoTypeHints) + new MultiplicitySerializer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment