TinkerPopModels.scala 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. * Copyright (C) 2020 Prasoon Joshi
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. */
  17. package models
  18. case class AmCommonAttrbsVertex(id: Option[String],
  19. altRender: Option[String],
  20. audience: Option[String],
  21. lang: Option[String],
  22. script: Option[String])
  23. object AmCommonAttrbsVertex {
  24. def fromParentClass(parent: AmCommonAttrbs): AmCommonAttrbsVertex =
  25. AmCommonAttrbsVertex(parent.id,
  26. parent.altRender,
  27. parent.audience.map(v => v.toString),
  28. parent.lang,
  29. parent.script)
  30. }
  31. case class EadVertex(id: Option[Long],
  32. //amCommonAttrbs: AmCommonAttrbsVertex,
  33. relatedEncoding: Option[String],
  34. base: Option[String],
  35. control: ControlVertex)
  36. case class RecordIdVertex(instanceUrl: Option[String],
  37. text: String)
  38. case class ControlVertex(relatedEncoding: Option[String],
  39. recordId: RecordIdVertex)
  40. /* otherRecordId: Seq[OtherRecordId] = Nil,
  41. representation: Seq[Representation] = Nil)
  42. fileDesc: FileDesc)
  43. maintenanceStatus: MaintenanceStatus,
  44. publicationStatus: Option[PublicationStatus],
  45. maintenanceAgency: MaintenanceAgency,
  46. languageDeclaration: Seq[LanguageDeclaration] = Nil,
  47. conventionDeclaration: Seq[ConventionDeclaration] = Nil,
  48. rightsDeclaration: Seq[RightsDeclaration] = Nil,
  49. localTypeDeclaration: Seq[LocalTypeDeclaration] = Nil,
  50. localControl: Seq[LocalControl] = Nil,
  51. maintenanceHistory: Seq[MaintenanceHistory] = Nil,
  52. sources: Option[Sources])
  53. */