All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sbt-scalaxb.xlink.xlink.scala Maven / Gradle / Ivy

Go to download

GeoTrellis Server is a set of components designed to simplify viewing, processing, and serving raster data from arbitrary sources with an emphasis on doing so in a functional style.

The newest version!
// Generated by scalaxb.
package xlink


/** This schema document provides attribute declarations and
attribute group, complex type and simple type definitions which can be used in
the construction of user schemas to define the structure of particular linking
constructs, e.g.


 

 
  
   ...
   
   ...
  
 
 ...
]]>
*/

sealed trait TypeType

object TypeType {
  def fromString(value: String, scope: scala.xml.NamespaceBinding)(implicit fmt: scalaxb.XMLFormat[xlink.TypeType]): TypeType = fmt.reads(scala.xml.Text(value), Nil) match {
    case Right(x: TypeType) => x
    case x => throw new RuntimeException(s"fromString returned unexpected value $x for input $value")
  }
  lazy val values: Seq[TypeType] = Seq(Simple, ExtendedValue, Title, Resource, Locator, Arc)
}

case object Simple extends TypeType { override def toString = "simple" }
case object ExtendedValue extends TypeType { override def toString = "extended" }
case object Title extends TypeType { override def toString = "title" }
case object Resource extends TypeType { override def toString = "resource" }
case object Locator extends TypeType { override def toString = "locator" }
case object Arc extends TypeType { override def toString = "arc" }

sealed trait ShowType

object ShowType {
  def fromString(value: String, scope: scala.xml.NamespaceBinding)(implicit fmt: scalaxb.XMLFormat[xlink.ShowType]): ShowType = fmt.reads(scala.xml.Text(value), Nil) match {
    case Right(x: ShowType) => x
    case x => throw new RuntimeException(s"fromString returned unexpected value $x for input $value")
  }
  lazy val values: Seq[ShowType] = Seq(New, Replace, Embed, Other, NoneType)
}

case object New extends ShowType { override def toString = "new" }
case object Replace extends ShowType { override def toString = "replace" }
case object Embed extends ShowType { override def toString = "embed" }
case object Other extends ShowType { override def toString = "other" }
case object NoneType extends ShowType { override def toString = "none" }

sealed trait ActuateType

object ActuateType {
  def fromString(value: String, scope: scala.xml.NamespaceBinding)(implicit fmt: scalaxb.XMLFormat[xlink.ActuateType]): ActuateType = fmt.reads(scala.xml.Text(value), Nil) match {
    case Right(x: ActuateType) => x
    case x => throw new RuntimeException(s"fromString returned unexpected value $x for input $value")
  }
  lazy val values: Seq[ActuateType] = Seq(OnLoad, OnRequest, OtherValue, NoneTypeValue)
}

case object OnLoad extends ActuateType { override def toString = "onLoad" }
case object OnRequest extends ActuateType { override def toString = "onRequest" }
case object OtherValue extends ActuateType { override def toString = "other" }
case object NoneTypeValue extends ActuateType { override def toString = "none" }


/** 
    Intended for use as the type of user-declared elements to make them
    simple links.
   
*/
case class SimpleType(mixed: Seq[scalaxb.DataRecord[Any]] = Nil,
  attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
  lazy val xlinktype = attributes("@{http://www.w3.org/1999/xlink}type").as[TypeType]
  lazy val xlinkhref = attributes.get("@{http://www.w3.org/1999/xlink}href") map { _.as[java.net.URI]}
  lazy val xlinkrole = attributes.get("@{http://www.w3.org/1999/xlink}role") map { _.as[java.net.URI]}
  lazy val xlinkarcrole = attributes.get("@{http://www.w3.org/1999/xlink}arcrole") map { _.as[java.net.URI]}
  lazy val xlinktitle = attributes.get("@{http://www.w3.org/1999/xlink}title") map { _.as[String]}
  lazy val xlinkshow = attributes.get("@{http://www.w3.org/1999/xlink}show") map { _.as[ShowType]}
  lazy val xlinkactuate = attributes.get("@{http://www.w3.org/1999/xlink}actuate") map { _.as[ActuateType]}
}

      
      


/** 
    Intended for use as the type of user-declared elements to make them
    extended links.
    Note that the elements referenced in the content model are all abstract.
    The intention is that by simply declaring elements with these as their
    substitutionGroup, all the right things will happen.
   
*/
case class Extended(extendedModelOption1: Seq[scalaxb.DataRecord[xlink.ExtendedModelOption]] = Nil,
  attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) {
  lazy val xlinktype = attributes("@{http://www.w3.org/1999/xlink}type").as[TypeType]
  lazy val xlinkrole = attributes.get("@{http://www.w3.org/1999/xlink}role") map { _.as[java.net.URI]}
  lazy val xlinktitle = attributes.get("@{http://www.w3.org/1999/xlink}title") map { _.as[String]}
}

      
      


case class TitleEltType(mixed: Seq[scalaxb.DataRecord[Any]] = Nil,
  attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) extends ExtendedModelOption {
  lazy val xlinktype = attributes("@{http://www.w3.org/1999/xlink}type").as[TypeType]
  lazy val xmllang = attributes.get("@{http://www.w3.org/XML/1998/namespace}lang") map { _.as[String]}
}

      
      


case class ResourceType(mixed: Seq[scalaxb.DataRecord[Any]] = Nil,
  attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) extends ExtendedModelOption {
  lazy val xlinktype = attributes("@{http://www.w3.org/1999/xlink}type").as[TypeType]
  lazy val xlinkrole = attributes.get("@{http://www.w3.org/1999/xlink}role") map { _.as[java.net.URI]}
  lazy val xlinktitle = attributes.get("@{http://www.w3.org/1999/xlink}title") map { _.as[String]}
  lazy val xlinklabel = attributes.get("@{http://www.w3.org/1999/xlink}label") map { _.as[String]}
}

      
      


case class LocatorType(locatorModelSequence1: xlink.LocatorModelSequence,
  attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) extends ExtendedModelOption {
  lazy val xlinktype = attributes("@{http://www.w3.org/1999/xlink}type").as[TypeType]
  lazy val xlinkhref = attributes("@{http://www.w3.org/1999/xlink}href").as[java.net.URI]
  lazy val xlinkrole = attributes.get("@{http://www.w3.org/1999/xlink}role") map { _.as[java.net.URI]}
  lazy val xlinktitle = attributes.get("@{http://www.w3.org/1999/xlink}title") map { _.as[String]}
  lazy val xlinklabel = attributes.get("@{http://www.w3.org/1999/xlink}label") map { _.as[String]}
}

      
      


case class ArcType(arcModelSequence1: xlink.ArcModelSequence,
  attributes: Map[String, scalaxb.DataRecord[Any]] = Map.empty) extends ExtendedModelOption {
  lazy val xlinktype = attributes("@{http://www.w3.org/1999/xlink}type").as[TypeType]
  lazy val xlinkarcrole = attributes.get("@{http://www.w3.org/1999/xlink}arcrole") map { _.as[java.net.URI]}
  lazy val xlinktitle = attributes.get("@{http://www.w3.org/1999/xlink}title") map { _.as[String]}
  lazy val xlinkshow = attributes.get("@{http://www.w3.org/1999/xlink}show") map { _.as[ShowType]}
  lazy val xlinkactuate = attributes.get("@{http://www.w3.org/1999/xlink}actuate") map { _.as[ActuateType]}
  lazy val xlinkfrom = attributes.get("@{http://www.w3.org/1999/xlink}from") map { _.as[String]}
  lazy val xlinkto = attributes.get("@{http://www.w3.org/1999/xlink}to") map { _.as[String]}
}

      
      

case class ArcModelSequence(title: xlink.TitleEltType*)
      

case class ResourceModelSequence(any: scalaxb.DataRecord[Any]*)
      

trait ExtendedModelOption
case class SimpleModelSequence(any2: scalaxb.DataRecord[Any]*)
      

case class TitleModelSequence(any3: scalaxb.DataRecord[Any]*)
      

case class LocatorModelSequence(title: xlink.TitleEltType*)
      


case class ArcAttrs(xlinktype: xlink.TypeType,
  xlinkarcrole: Option[java.net.URI] = None,
  xlinktitle: Option[String] = None,
  xlinkshow: Option[xlink.ShowType] = None,
  xlinkactuate: Option[xlink.ActuateType] = None,
  xlinkfrom: Option[String] = None,
  xlinkto: Option[String] = None)


case class ResourceAttrs(xlinktype: xlink.TypeType,
  xlinkrole: Option[java.net.URI] = None,
  xlinktitle: Option[String] = None,
  xlinklabel: Option[String] = None)


case class ExtendedAttrs(xlinktype: xlink.TypeType,
  xlinkrole: Option[java.net.URI] = None,
  xlinktitle: Option[String] = None)


case class SimpleAttrs(xlinktype: xlink.TypeType,
  xlinkhref: Option[java.net.URI] = None,
  xlinkrole: Option[java.net.URI] = None,
  xlinkarcrole: Option[java.net.URI] = None,
  xlinktitle: Option[String] = None,
  xlinkshow: Option[xlink.ShowType] = None,
  xlinkactuate: Option[xlink.ActuateType] = None)


case class TitleAttrs(xlinktype: xlink.TypeType,
  xmllang: Option[String] = None)


case class LocatorAttrs(xlinktype: xlink.TypeType,
  xlinkhref: java.net.URI,
  xlinkrole: Option[java.net.URI] = None,
  xlinktitle: Option[String] = None,
  xlinklabel: Option[String] = None)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy