IPXACT2009ScalaCases.configurable.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spinalhdl-schema-gen_2.12 Show documentation
Show all versions of spinalhdl-schema-gen_2.12 Show documentation
SpinalHDL Schemetic Generator
The newest version!
package IPXACT2009ScalaCases
// Generated by IPXACT2009scalaxb.
sealed trait ResolveType
object ResolveType {
def fromString(value: String, scope: scala.xml.NamespaceBinding)(implicit fmt: IPXACT2009scalaxb.XMLFormat[ResolveType]): ResolveType = fmt.reads(scala.xml.Text(value), Nil) match {
case Right(x: ResolveType) => x
case x => throw new RuntimeException(s"fromString returned unexpected value $x for input $value")
}
lazy val values: Seq[ResolveType] = Seq(Immediate, User, Dependent, Generated)
}
case object Immediate extends ResolveType { override def toString = "immediate" }
case object User extends ResolveType { override def toString = "user" }
case object Dependent extends ResolveType { override def toString = "dependent" }
case object Generated extends ResolveType { override def toString = "generated" }
/** Base set of attributes for an element to be configurable.
*/
case class Configurable(spiritresolve: Option[ResolveType] = None,
spiritid: Option[String] = None,
spiritdependency: Option[String] = None,
attributes: Map[String, IPXACT2009scalaxb.DataRecord[Any]] = Map.empty)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy