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

org.gridvise.xmlbindings.xmlprotocol.scala Maven / Gradle / Ivy

The newest version!
// Generated by scalaxb.
package org.gridvise.xmlbindings
    
/**
usage:
val obj = scalaxb.fromXML[org.gridvise.xmlbindings.Foo](node)
val document = scalaxb.toXML[org.gridvise.xmlbindings.Foo](obj, "foo", org.gridvise.xmlbindings.defaultScope)
**/
object `package` extends XMLProtocol { }

trait XMLProtocol extends scalaxb.XMLStandardTypes {
  val defaultScope = scalaxb.toScope(None -> "http://www.gridvise.org/dictionary-config",
    Some("dic") -> "http://www.gridvise.org/dictionary",
    Some("tns0") -> "http://www.gridvise.org/runbook",
    Some("tns1") -> "http://www.gridvise.org/dictionary-jvm",
    Some("tns2") -> "http://www.gridvise.org/grid-event-dictionary",
    Some("tns3") -> "http://www.gridvise.org/dictionary-config",
    Some("tns4") -> "http://www.gridvise.org/dictionary-grid",
    Some("tns") -> "http://www.gridvise.org/distributed-jvms",
    Some("xs") -> "http://www.w3.org/2001/XMLSchema",
    Some("xsi") -> "http://www.w3.org/2001/XMLSchema-instance")
  implicit lazy val XmlbindingsDictionaryConfigFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.DictionaryConfig] = new DefaultXmlbindingsDictionaryConfigFormat {}
  implicit lazy val XmlbindingsDictionaryFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.Dictionary] = new DefaultXmlbindingsDictionaryFormat {}
  implicit lazy val XmlbindingsProcessDisapearedFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.ProcessDisapeared] = new DefaultXmlbindingsProcessDisapearedFormat {}
  implicit lazy val XmlbindingsGridEventDictionaryFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.GridEventDictionary] = new DefaultXmlbindingsGridEventDictionaryFormat {}
  implicit lazy val XmlbindingsMemberIdFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.MemberId] = new DefaultXmlbindingsMemberIdFormat {}
  implicit lazy val XmlbindingsRoleFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.Role] = new DefaultXmlbindingsRoleFormat {}
  implicit lazy val XmlbindingsCacheConfigurationFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.CacheConfiguration] = new DefaultXmlbindingsCacheConfigurationFormat {}
  implicit lazy val XmlbindingsClusterNameFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.ClusterName] = new DefaultXmlbindingsClusterNameFormat {}
  implicit lazy val XmlbindingsPofConfigFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.PofConfig] = new DefaultXmlbindingsPofConfigFormat {}
  implicit lazy val XmlbindingsGridDictionaryFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.GridDictionary] = new DefaultXmlbindingsGridDictionaryFormat {}
  implicit lazy val XmlbindingsJavaCommandFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.JavaCommand] = new DefaultXmlbindingsJavaCommandFormat {}
  implicit lazy val XmlbindingsEndOfStacktraceFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.EndOfStacktrace] = new DefaultXmlbindingsEndOfStacktraceFormat {}
  implicit lazy val XmlbindingsJvmDictionaryFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.JvmDictionary] = new DefaultXmlbindingsJvmDictionaryFormat {}
  implicit lazy val XmlbindingsMemberPausedFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.MemberPaused] = new DefaultXmlbindingsMemberPausedFormat {}
  implicit lazy val XmlbindingsLogEventDictionaryFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.LogEventDictionary] = new DefaultXmlbindingsLogEventDictionaryFormat {}
  implicit lazy val XmlbindingsDictionaryEntryableFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.DictionaryEntryable] = new DefaultXmlbindingsDictionaryEntryableFormat {}
  implicit lazy val XmlbindingsDictionaryEntryFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.DictionaryEntry] = new DefaultXmlbindingsDictionaryEntryFormat {}
  implicit lazy val XmlbindingsLineFormat: scalaxb.AttributeGroupFormat[org.gridvise.xmlbindings.Line] = new DefaultXmlbindingsLineFormat {}
  implicit lazy val XmlbindingsOverrideVar2Format: scalaxb.XMLFormat[org.gridvise.xmlbindings.OverrideVar2] = new DefaultXmlbindingsOverrideVar2Format {}
  implicit lazy val XmlbindingsSystemVar2Format: scalaxb.XMLFormat[org.gridvise.xmlbindings.SystemVar2] = new DefaultXmlbindingsSystemVar2Format {}
  implicit lazy val XmlbindingsServersFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.Servers] = new DefaultXmlbindingsServersFormat {}
  implicit lazy val XmlbindingsServerFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.Server] = new DefaultXmlbindingsServerFormat {}
  implicit lazy val XmlbindingsRequiredSystemVars2Format: scalaxb.XMLFormat[org.gridvise.xmlbindings.RequiredSystemVars2] = new DefaultXmlbindingsRequiredSystemVars2Format {}
  implicit lazy val XmlbindingsOverrideSystemVars2Format: scalaxb.XMLFormat[org.gridvise.xmlbindings.OverrideSystemVars2] = new DefaultXmlbindingsOverrideSystemVars2Format {}
  implicit lazy val XmlbindingsOptionTypeFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.OptionType] = new DefaultXmlbindingsOptionTypeFormat {}
  implicit lazy val XmlbindingsNodeGroupRefFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.NodeGroupRef] = new DefaultXmlbindingsNodeGroupRefFormat {}
  implicit lazy val XmlbindingsJvmGroupFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.JvmGroup] = new DefaultXmlbindingsJvmGroupFormat {}
  implicit lazy val XmlbindingsJvmGroupsFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.JvmGroups] = new DefaultXmlbindingsJvmGroupsFormat {}
  implicit lazy val XmlbindingsJvmConfigsFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.JvmConfigs] = new DefaultXmlbindingsJvmConfigsFormat {}
  implicit lazy val XmlbindingsJvmConfigFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.JvmConfig] = new DefaultXmlbindingsJvmConfigFormat {}
  implicit lazy val XmlbindingsJvmFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.Jvm] = new DefaultXmlbindingsJvmFormat {}
  implicit lazy val XmlbindingsJavaOptionsFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.JavaOptions] = new DefaultXmlbindingsJavaOptionsFormat {}
  implicit lazy val XmlbindingsDirFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.Dir] = new DefaultXmlbindingsDirFormat {}
  implicit lazy val XmlbindingsClusterConfigFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.ClusterConfig] = new DefaultXmlbindingsClusterConfigFormat {}
  implicit lazy val XmlbindingsClasspathFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.Classpath] = new DefaultXmlbindingsClasspathFormat {}
  implicit lazy val XmlbindingsRunBookFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.RunBook] = new DefaultXmlbindingsRunBookFormat {}
  implicit lazy val XmlbindingsRequiredSystemVarsFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.RequiredSystemVars] = new DefaultXmlbindingsRequiredSystemVarsFormat {}
  implicit lazy val XmlbindingsOverrideSystemVarsFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.OverrideSystemVars] = new DefaultXmlbindingsOverrideSystemVarsFormat {}
  implicit lazy val XmlbindingsOverrideVarFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.OverrideVar] = new DefaultXmlbindingsOverrideVarFormat {}
  implicit lazy val XmlbindingsSystemVarFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.SystemVar] = new DefaultXmlbindingsSystemVarFormat {}
  implicit lazy val XmlbindingsActivitiesFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.Activities] = new DefaultXmlbindingsActivitiesFormat {}
  implicit lazy val XmlbindingsActivityFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.Activity] = new DefaultXmlbindingsActivityFormat {}
  implicit lazy val XmlbindingsActivityTypeTypeFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.ActivityTypeType] = new DefaultXmlbindingsActivityTypeTypeFormat {}
  implicit lazy val XmlbindingsActivityTypeFormat: scalaxb.XMLFormat[org.gridvise.xmlbindings.ActivityType] = new DefaultXmlbindingsActivityTypeFormat {}
  implicit lazy val XmlbindingsActivityAttributesFormat: scalaxb.AttributeGroupFormat[org.gridvise.xmlbindings.ActivityAttributes] = new DefaultXmlbindingsActivityAttributesFormat {}

  trait DefaultXmlbindingsDictionaryConfigFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.DictionaryConfig] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-config")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.DictionaryConfig] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/dictionary-config"), "Dictionary")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.DictionaryConfig(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.Dictionary](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.DictionaryConfig, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.Dictionary flatMap { scalaxb.toXML[org.gridvise.xmlbindings.Dictionary](_, Some("http://www.gridvise.org/dictionary-config"), Some("Dictionary"), __scope, false) })

  }

  trait DefaultXmlbindingsDictionaryFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.Dictionary] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.Dictionary] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-config")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.Dictionary] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.Dictionary(scalaxb.fromXML[String]((node \ "@className"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@fileName"), scalaxb.ElemName(node) :: stack)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.Dictionary, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "className", __obj.className.toString, attr)
      attr = scala.xml.Attribute(null, "fileName", __obj.fileName.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.Dictionary, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsProcessDisapearedFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.ProcessDisapeared] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.ProcessDisapeared] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/grid-event-dictionary")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.ProcessDisapeared] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.ProcessDisapeared(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.ProcessDisapeared, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.ProcessDisapeared, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsGridEventDictionaryFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.GridEventDictionary] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/grid-event-dictionary")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.GridEventDictionary] =
      phrase((scalaxb.ElemName(Some("http://www.gridvise.org/grid-event-dictionary"), "ProcessDisapeared")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.GridEventDictionary(scalaxb.fromXML[org.gridvise.xmlbindings.ProcessDisapeared](p1, scalaxb.ElemName(node) :: stack)) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.GridEventDictionary, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (scalaxb.toXML[org.gridvise.xmlbindings.ProcessDisapeared](__obj.ProcessDisapeared, Some("http://www.gridvise.org/grid-event-dictionary"), Some("ProcessDisapeared"), __scope, false))

  }

  trait DefaultXmlbindingsMemberIdFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.MemberId] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.MemberId] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-grid")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.MemberId] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.MemberId(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.MemberId, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.MemberId, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsRoleFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.Role] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.Role] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-grid")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.Role] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.Role(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.Role, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.Role, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsCacheConfigurationFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.CacheConfiguration] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.CacheConfiguration] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-grid")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.CacheConfiguration] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.CacheConfiguration(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.CacheConfiguration, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.CacheConfiguration, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsClusterNameFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.ClusterName] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.ClusterName] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-grid")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.ClusterName] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.ClusterName(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.ClusterName, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.ClusterName, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsPofConfigFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.PofConfig] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.PofConfig] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-grid")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.PofConfig] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.PofConfig(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.PofConfig, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.PofConfig, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsGridDictionaryFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.GridDictionary] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-grid")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.GridDictionary] =
      phrase((scalaxb.ElemName(Some("http://www.gridvise.org/dictionary-grid"), "MemberId")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/dictionary-grid"), "Role")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/dictionary-grid"), "CacheConfiguration")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/dictionary-grid"), "ClusterName")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/dictionary-grid"), "PofConfig")) ^^
      { case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
      org.gridvise.xmlbindings.GridDictionary(scalaxb.fromXML[org.gridvise.xmlbindings.MemberId](p1, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.Role](p2, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.CacheConfiguration](p3, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.ClusterName](p4, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.PofConfig](p5, scalaxb.ElemName(node) :: stack)) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.GridDictionary, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Seq.concat(scalaxb.toXML[org.gridvise.xmlbindings.MemberId](__obj.MemberId, Some("http://www.gridvise.org/dictionary-grid"), Some("MemberId"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.Role](__obj.Role, Some("http://www.gridvise.org/dictionary-grid"), Some("Role"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.CacheConfiguration](__obj.CacheConfiguration, Some("http://www.gridvise.org/dictionary-grid"), Some("CacheConfiguration"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.ClusterName](__obj.ClusterName, Some("http://www.gridvise.org/dictionary-grid"), Some("ClusterName"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.PofConfig](__obj.PofConfig, Some("http://www.gridvise.org/dictionary-grid"), Some("PofConfig"), __scope, false))

  }

  trait DefaultXmlbindingsJavaCommandFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.JavaCommand] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.JavaCommand] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-jvm")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.JavaCommand] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.JavaCommand(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.JavaCommand, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.JavaCommand, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsEndOfStacktraceFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.EndOfStacktrace] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.EndOfStacktrace] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-jvm")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.EndOfStacktrace] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.EndOfStacktrace(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.EndOfStacktrace, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.EndOfStacktrace, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsJvmDictionaryFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.JvmDictionary] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-jvm")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.JvmDictionary] =
      phrase((scalaxb.ElemName(Some("http://www.gridvise.org/dictionary-jvm"), "JavaCommand")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/dictionary-jvm"), "EndOfStacktrace")) ^^
      { case p1 ~ p2 =>
      org.gridvise.xmlbindings.JvmDictionary(scalaxb.fromXML[org.gridvise.xmlbindings.JavaCommand](p1, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.EndOfStacktrace](p2, scalaxb.ElemName(node) :: stack)) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.JvmDictionary, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Seq.concat(scalaxb.toXML[org.gridvise.xmlbindings.JavaCommand](__obj.JavaCommand, Some("http://www.gridvise.org/dictionary-jvm"), Some("JavaCommand"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.EndOfStacktrace](__obj.EndOfStacktrace, Some("http://www.gridvise.org/dictionary-jvm"), Some("EndOfStacktrace"), __scope, false))

  }

  trait DefaultXmlbindingsMemberPausedFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.MemberPaused] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.MemberPaused] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-grid")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.MemberPaused] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.MemberPaused(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.MemberPaused, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.MemberPaused, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsLogEventDictionaryFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.LogEventDictionary] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary-grid")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.LogEventDictionary] =
      phrase((scalaxb.ElemName(Some("http://www.gridvise.org/dictionary-grid"), "MemberPaused")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.LogEventDictionary(scalaxb.fromXML[org.gridvise.xmlbindings.MemberPaused](p1, scalaxb.ElemName(node) :: stack)) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.LogEventDictionary, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (scalaxb.toXML[org.gridvise.xmlbindings.MemberPaused](__obj.MemberPaused, Some("http://www.gridvise.org/dictionary-grid"), Some("MemberPaused"), __scope, false))

  }

  trait DefaultXmlbindingsDictionaryEntryableFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.DictionaryEntryable] {
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.DictionaryEntryable] = seq match {
      case node: scala.xml.Node =>     
        scalaxb.Helper.instanceType(node) match {
          
          case _ => Right(scalaxb.fromXML[org.gridvise.xmlbindings.DictionaryEntry](node, stack))
        }
      case _ => Left("reads failed: seq must be scala.xml.Node")  
    }
    
    def writes(__obj: org.gridvise.xmlbindings.DictionaryEntryable, __namespace: Option[String], __elementLabel: Option[String],
        __scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq = __obj match {
      case x: org.gridvise.xmlbindings.MemberPaused => scalaxb.toXML[org.gridvise.xmlbindings.MemberPaused](x, __namespace, __elementLabel, __scope, true)
      case x: org.gridvise.xmlbindings.PofConfig => scalaxb.toXML[org.gridvise.xmlbindings.PofConfig](x, __namespace, __elementLabel, __scope, true)
      case x: org.gridvise.xmlbindings.ClusterName => scalaxb.toXML[org.gridvise.xmlbindings.ClusterName](x, __namespace, __elementLabel, __scope, true)
      case x: org.gridvise.xmlbindings.CacheConfiguration => scalaxb.toXML[org.gridvise.xmlbindings.CacheConfiguration](x, __namespace, __elementLabel, __scope, true)
      case x: org.gridvise.xmlbindings.Role => scalaxb.toXML[org.gridvise.xmlbindings.Role](x, __namespace, __elementLabel, __scope, true)
      case x: org.gridvise.xmlbindings.MemberId => scalaxb.toXML[org.gridvise.xmlbindings.MemberId](x, __namespace, __elementLabel, __scope, true)
      case x: org.gridvise.xmlbindings.ProcessDisapeared => scalaxb.toXML[org.gridvise.xmlbindings.ProcessDisapeared](x, __namespace, __elementLabel, __scope, true)
      case x: org.gridvise.xmlbindings.EndOfStacktrace => scalaxb.toXML[org.gridvise.xmlbindings.EndOfStacktrace](x, __namespace, __elementLabel, __scope, true)
      case x: org.gridvise.xmlbindings.JavaCommand => scalaxb.toXML[org.gridvise.xmlbindings.JavaCommand](x, __namespace, __elementLabel, __scope, true)
      case x: org.gridvise.xmlbindings.DictionaryEntry => scalaxb.toXML[org.gridvise.xmlbindings.DictionaryEntry](x, __namespace, __elementLabel, __scope, false)
    }
  }

  trait DefaultXmlbindingsDictionaryEntryFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.DictionaryEntry] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.DictionaryEntry] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.DictionaryEntry] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.DictionaryEntry(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
        (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.DictionaryEntry, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
      __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.DictionaryEntry, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsLineFormat extends scalaxb.AttributeGroupFormat[org.gridvise.xmlbindings.Line] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/dictionary")
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.Line] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.Line(scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack),
      scalaxb.fromXML[String]((node \ "@lineMatch"), scalaxb.ElemName(node) :: stack),
      (node \ "@valueRegexp").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    def toAttribute(__obj: org.gridvise.xmlbindings.Line, __attr: scala.xml.MetaData, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = __attr
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
    attr = scala.xml.Attribute(null, "lineMatch", __obj.lineMatch.toString, attr)
    __obj.valueRegexp foreach { x => attr = scala.xml.Attribute(null, "valueRegexp", x.toString, attr) }
      attr
    }
  }

  trait DefaultXmlbindingsOverrideVar2Format extends scalaxb.XMLFormat[org.gridvise.xmlbindings.OverrideVar2] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.OverrideVar2] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.OverrideVar2] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.OverrideVar2(scalaxb.fromXML[String]((node \ "@name"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@dir"), scalaxb.ElemName(node) :: stack)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.OverrideVar2, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "name", __obj.name.toString, attr)
      attr = scala.xml.Attribute(null, "dir", __obj.dir.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.OverrideVar2, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsSystemVar2Format extends scalaxb.XMLFormat[org.gridvise.xmlbindings.SystemVar2] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.SystemVar2] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.SystemVar2] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.SystemVar2(scalaxb.fromXML[String]((node \ "@name"), scalaxb.ElemName(node) :: stack),
        (node \ "@description").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.SystemVar2, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "name", __obj.name.toString, attr)
      __obj.description foreach { x => attr = scala.xml.Attribute(null, "description", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.SystemVar2, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsServersFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.Servers] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.Servers] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "Server")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.Servers(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.Server](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.Servers, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.Server flatMap { scalaxb.toXML[org.gridvise.xmlbindings.Server](_, Some("http://www.gridvise.org/distributed-jvms"), Some("Server"), __scope, false) })

  }

  trait DefaultXmlbindingsServerFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.Server] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.Server] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "NodeGroupRef")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.Server(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.NodeGroupRef](_, scalaxb.ElemName(node) :: stack) },
        scalaxb.fromXML[String]((node \ "@hostname"), scalaxb.ElemName(node) :: stack)) })
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.Server, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "hostname", __obj.hostname.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.Server, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.NodeGroupRef flatMap { scalaxb.toXML[org.gridvise.xmlbindings.NodeGroupRef](_, Some("http://www.gridvise.org/distributed-jvms"), Some("NodeGroupRef"), __scope, false) })

  }

  trait DefaultXmlbindingsRequiredSystemVars2Format extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.RequiredSystemVars2] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.RequiredSystemVars2] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "SystemVar")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.RequiredSystemVars2(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.SystemVar2](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.RequiredSystemVars2, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.SystemVar flatMap { scalaxb.toXML[org.gridvise.xmlbindings.SystemVar2](_, Some("http://www.gridvise.org/distributed-jvms"), Some("SystemVar"), __scope, false) })

  }

  trait DefaultXmlbindingsOverrideSystemVars2Format extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.OverrideSystemVars2] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.OverrideSystemVars2] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "OverrideVar")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.OverrideSystemVars2(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.OverrideVar2](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.OverrideSystemVars2, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.OverrideVar flatMap { scalaxb.toXML[org.gridvise.xmlbindings.OverrideVar2](_, Some("http://www.gridvise.org/distributed-jvms"), Some("OverrideVar"), __scope, false) })

  }

  trait DefaultXmlbindingsOptionTypeFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.OptionType] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.OptionType] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.OptionType] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.OptionType(scalaxb.fromXML[String]((node \ "@name"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@value"), scalaxb.ElemName(node) :: stack)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.OptionType, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "name", __obj.name.toString, attr)
      attr = scala.xml.Attribute(null, "value", __obj.valueAttribute.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.OptionType, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsNodeGroupRefFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.NodeGroupRef] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.NodeGroupRef] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.NodeGroupRef] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.NodeGroupRef(scalaxb.fromXML[String]((node \ "@name"), scalaxb.ElemName(node) :: stack)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.NodeGroupRef, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "name", __obj.name.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.NodeGroupRef, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsJvmGroupFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.JvmGroup] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.JvmGroup] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "Jvm")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.JvmGroup(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.Jvm](_, scalaxb.ElemName(node) :: stack) },
        scalaxb.fromXML[String]((node \ "@name"), scalaxb.ElemName(node) :: stack)) })
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.JvmGroup, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "name", __obj.name.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.JvmGroup, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.Jvm flatMap { scalaxb.toXML[org.gridvise.xmlbindings.Jvm](_, Some("http://www.gridvise.org/distributed-jvms"), Some("Jvm"), __scope, false) })

  }

  trait DefaultXmlbindingsJvmGroupsFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.JvmGroups] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.JvmGroups] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "JvmGroup")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.JvmGroups(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.JvmGroup](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.JvmGroups, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.JvmGroup flatMap { scalaxb.toXML[org.gridvise.xmlbindings.JvmGroup](_, Some("http://www.gridvise.org/distributed-jvms"), Some("JvmGroup"), __scope, false) })

  }

  trait DefaultXmlbindingsJvmConfigsFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.JvmConfigs] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.JvmConfigs] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "JvmConfig")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.JvmConfigs(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.JvmConfig](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.JvmConfigs, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.JvmConfig flatMap { scalaxb.toXML[org.gridvise.xmlbindings.JvmConfig](_, Some("http://www.gridvise.org/distributed-jvms"), Some("JvmConfig"), __scope, false) })

  }

  trait DefaultXmlbindingsJvmConfigFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.JvmConfig] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.JvmConfig] =
      phrase((scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "JavaOptions")) ~ 
      opt(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "Classpath")) ^^
      { case p1 ~ p2 =>
      org.gridvise.xmlbindings.JvmConfig(scalaxb.fromXML[org.gridvise.xmlbindings.JavaOptions](p1, scalaxb.ElemName(node) :: stack),
        p2.headOption map { scalaxb.fromXML[org.gridvise.xmlbindings.Classpath](_, scalaxb.ElemName(node) :: stack) },
        scalaxb.fromXML[String]((node \ "@uniqueName"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@mainClass"), scalaxb.ElemName(node) :: stack),
        (node \ "@parent").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
        (node \ "@jvmArgs").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }) })
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.JvmConfig, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "uniqueName", __obj.uniqueName.toString, attr)
      attr = scala.xml.Attribute(null, "mainClass", __obj.mainClass.toString, attr)
      __obj.parent foreach { x => attr = scala.xml.Attribute(null, "parent", x.toString, attr) }
      __obj.jvmArgs foreach { x => attr = scala.xml.Attribute(null, "jvmArgs", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.JvmConfig, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Seq.concat(scalaxb.toXML[org.gridvise.xmlbindings.JavaOptions](__obj.JavaOptions, Some("http://www.gridvise.org/distributed-jvms"), Some("JavaOptions"), __scope, false),
        __obj.Classpath map { scalaxb.toXML[org.gridvise.xmlbindings.Classpath](_, Some("http://www.gridvise.org/distributed-jvms"), Some("Classpath"), __scope, false) } getOrElse {Nil})

  }

  trait DefaultXmlbindingsJvmFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.Jvm] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.Jvm] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.Jvm] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.Jvm(scalaxb.fromXML[Int]((node \ "@count"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@configRef"), scalaxb.ElemName(node) :: stack),
        (node \ "@delay").headOption map { scalaxb.fromXML[Int](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.Jvm, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "count", __obj.count.toString, attr)
      attr = scala.xml.Attribute(null, "configRef", __obj.configRef.toString, attr)
      __obj.delay foreach { x => attr = scala.xml.Attribute(null, "delay", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.Jvm, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsJavaOptionsFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.JavaOptions] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.JavaOptions] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "Option")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.JavaOptions(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.OptionType](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.JavaOptions, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.Option flatMap { scalaxb.toXML[org.gridvise.xmlbindings.OptionType](_, Some("http://www.gridvise.org/distributed-jvms"), Some("Option"), __scope, false) })

  }

  trait DefaultXmlbindingsDirFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.Dir] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.Dir] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.Dir] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.Dir((node \ "@systemVar").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) },
        (node \ "@relativePath").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.Dir, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      __obj.systemVar foreach { x => attr = scala.xml.Attribute(null, "systemVar", x.toString, attr) }
      __obj.relativePath foreach { x => attr = scala.xml.Attribute(null, "relativePath", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.Dir, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsClusterConfigFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.ClusterConfig] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.ClusterConfig] =
      phrase((scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "OverrideSystemVars")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "RequiredSystemVars")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "JvmConfigs")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "JvmGroups")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "Servers")) ^^
      { case p1 ~ p2 ~ p3 ~ p4 ~ p5 =>
      org.gridvise.xmlbindings.ClusterConfig(scalaxb.fromXML[org.gridvise.xmlbindings.OverrideSystemVars2](p1, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.RequiredSystemVars2](p2, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.JvmConfigs](p3, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.JvmGroups](p4, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.Servers](p5, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@name"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@mode"), scalaxb.ElemName(node) :: stack)) })
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.ClusterConfig, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "name", __obj.name.toString, attr)
      attr = scala.xml.Attribute(null, "mode", __obj.mode.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.ClusterConfig, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Seq.concat(scalaxb.toXML[org.gridvise.xmlbindings.OverrideSystemVars2](__obj.OverrideSystemVars, Some("http://www.gridvise.org/distributed-jvms"), Some("OverrideSystemVars"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.RequiredSystemVars2](__obj.RequiredSystemVars, Some("http://www.gridvise.org/distributed-jvms"), Some("RequiredSystemVars"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.JvmConfigs](__obj.JvmConfigs, Some("http://www.gridvise.org/distributed-jvms"), Some("JvmConfigs"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.JvmGroups](__obj.JvmGroups, Some("http://www.gridvise.org/distributed-jvms"), Some("JvmGroups"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.Servers](__obj.Servers, Some("http://www.gridvise.org/distributed-jvms"), Some("Servers"), __scope, false))

  }

  trait DefaultXmlbindingsClasspathFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.Classpath] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/distributed-jvms")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.Classpath] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/distributed-jvms"), "Dir")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.Classpath(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.Dir](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.Classpath, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.Dir flatMap { scalaxb.toXML[org.gridvise.xmlbindings.Dir](_, Some("http://www.gridvise.org/distributed-jvms"), Some("Dir"), __scope, false) })

  }

  trait DefaultXmlbindingsRunBookFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.RunBook] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.RunBook] =
      phrase((scalaxb.ElemName(Some("http://www.gridvise.org/runbook"), "OverrideSystemVars")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/runbook"), "RequiredSystemVars")) ~ 
      (scalaxb.ElemName(Some("http://www.gridvise.org/runbook"), "Activities")) ^^
      { case p1 ~ p2 ~ p3 =>
      org.gridvise.xmlbindings.RunBook(scalaxb.fromXML[org.gridvise.xmlbindings.OverrideSystemVars](p1, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.RequiredSystemVars](p2, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.Activities](p3, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@id"), scalaxb.ElemName(node) :: stack)) })
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.RunBook, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "id", __obj.id.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.RunBook, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Seq.concat(scalaxb.toXML[org.gridvise.xmlbindings.OverrideSystemVars](__obj.OverrideSystemVars, Some("http://www.gridvise.org/runbook"), Some("OverrideSystemVars"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.RequiredSystemVars](__obj.RequiredSystemVars, Some("http://www.gridvise.org/runbook"), Some("RequiredSystemVars"), __scope, false),
        scalaxb.toXML[org.gridvise.xmlbindings.Activities](__obj.Activities, Some("http://www.gridvise.org/runbook"), Some("Activities"), __scope, false))

  }

  trait DefaultXmlbindingsRequiredSystemVarsFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.RequiredSystemVars] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.RequiredSystemVars] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/runbook"), "SystemVar")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.RequiredSystemVars(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.SystemVar](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.RequiredSystemVars, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.SystemVar flatMap { scalaxb.toXML[org.gridvise.xmlbindings.SystemVar](_, Some("http://www.gridvise.org/runbook"), Some("SystemVar"), __scope, false) })

  }

  trait DefaultXmlbindingsOverrideSystemVarsFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.OverrideSystemVars] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.OverrideSystemVars] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/runbook"), "OverrideVar")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.OverrideSystemVars(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.OverrideVar](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.OverrideSystemVars, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.OverrideVar flatMap { scalaxb.toXML[org.gridvise.xmlbindings.OverrideVar](_, Some("http://www.gridvise.org/runbook"), Some("OverrideVar"), __scope, false) })

  }

  trait DefaultXmlbindingsOverrideVarFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.OverrideVar] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.OverrideVar] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.OverrideVar] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.OverrideVar(scalaxb.fromXML[String]((node \ "@name"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@dir"), scalaxb.ElemName(node) :: stack)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.OverrideVar, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "name", __obj.name.toString, attr)
      attr = scala.xml.Attribute(null, "dir", __obj.dir.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.OverrideVar, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsSystemVarFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.SystemVar] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.SystemVar] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.SystemVar] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.SystemVar(scalaxb.fromXML[String]((node \ "@name"), scalaxb.ElemName(node) :: stack),
        (node \ "@description").headOption map { scalaxb.fromXML[String](_, scalaxb.ElemName(node) :: stack) }))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.SystemVar, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "name", __obj.name.toString, attr)
      __obj.description foreach { x => attr = scala.xml.Attribute(null, "description", x.toString, attr) }
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.SystemVar, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Nil


  }

  trait DefaultXmlbindingsActivitiesFormat extends scalaxb.ElemNameParser[org.gridvise.xmlbindings.Activities] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    
    def parser(node: scala.xml.Node, stack: List[scalaxb.ElemName]): Parser[org.gridvise.xmlbindings.Activities] =
      phrase(rep(scalaxb.ElemName(Some("http://www.gridvise.org/runbook"), "Activity")) ^^
      { case p1 =>
      org.gridvise.xmlbindings.Activities(p1.toSeq map { scalaxb.fromXML[org.gridvise.xmlbindings.Activity](_, scalaxb.ElemName(node) :: stack) }: _*) })
    
    def writesChildNodes(__obj: org.gridvise.xmlbindings.Activities, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      (__obj.Activity flatMap { scalaxb.toXML[org.gridvise.xmlbindings.Activity](_, Some("http://www.gridvise.org/runbook"), Some("Activity"), __scope, false) })

  }

  trait DefaultXmlbindingsActivityFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.Activity] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.Activity] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.Activity] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.Activity(scalaxb.fromXML[String](node, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@id"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.ActivityTypeType]((node \ "@activityType"), scalaxb.ElemName(node) :: stack)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.Activity, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "id", __obj.id.toString, attr)
      attr = scala.xml.Attribute(null, "activityType", __obj.activityType.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.Activity, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Seq(scala.xml.Text(__obj.value.toString))


  }

  def buildXmlbindingsActivityTypeTypeFormat = new DefaultXmlbindingsActivityTypeTypeFormat {}
  trait DefaultXmlbindingsActivityTypeTypeFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.ActivityTypeType] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.ActivityTypeType] = seq match {
      case elem: scala.xml.Elem => Right(org.gridvise.xmlbindings.ActivityTypeType.fromString(elem.text, elem.scope))
      case _ => Right(org.gridvise.xmlbindings.ActivityTypeType.fromString(seq.text, scala.xml.TopScope))
    }
    
    def writes(__obj: org.gridvise.xmlbindings.ActivityTypeType, __namespace: Option[String], __elementLabel: Option[String],
        __scope: scala.xml.NamespaceBinding, __typeAttribute: Boolean): scala.xml.NodeSeq =
      scala.xml.Elem(scalaxb.Helper.getPrefix(__namespace, __scope).orNull, 
        __elementLabel getOrElse { sys.error("missing element label.") },
        scala.xml.Null, __scope, scala.xml.Text(__obj.toString))
  }

  trait DefaultXmlbindingsActivityTypeFormat extends scalaxb.XMLFormat[org.gridvise.xmlbindings.ActivityType] with scalaxb.CanWriteChildNodes[org.gridvise.xmlbindings.ActivityType] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    import scalaxb.ElemName._
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.ActivityType] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.ActivityType(scalaxb.fromXML[String](node, scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[String]((node \ "@id"), scalaxb.ElemName(node) :: stack),
        scalaxb.fromXML[org.gridvise.xmlbindings.ActivityTypeType]((node \ "@activityType"), scalaxb.ElemName(node) :: stack)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    override def writesAttribute(__obj: org.gridvise.xmlbindings.ActivityType, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = scala.xml.Null
      attr = scala.xml.Attribute(null, "id", __obj.id.toString, attr)
      attr = scala.xml.Attribute(null, "activityType", __obj.activityType.toString, attr)
      attr
    }

    def writesChildNodes(__obj: org.gridvise.xmlbindings.ActivityType, __scope: scala.xml.NamespaceBinding): Seq[scala.xml.Node] =
      Seq(scala.xml.Text(__obj.value.toString))


  }

  trait DefaultXmlbindingsActivityAttributesFormat extends scalaxb.AttributeGroupFormat[org.gridvise.xmlbindings.ActivityAttributes] {
    val targetNamespace: Option[String] = Some("http://www.gridvise.org/runbook")
    
    def reads(seq: scala.xml.NodeSeq, stack: List[scalaxb.ElemName]): Either[String, org.gridvise.xmlbindings.ActivityAttributes] = seq match {
      case node: scala.xml.Node => Right(org.gridvise.xmlbindings.ActivityAttributes(scalaxb.fromXML[String]((node \ "@id"), scalaxb.ElemName(node) :: stack),
      scalaxb.fromXML[org.gridvise.xmlbindings.ActivityTypeType]((node \ "@activityType"), scalaxb.ElemName(node) :: stack)))
      case _ => Left("reads failed: seq must be scala.xml.Node")
    }
    
    def toAttribute(__obj: org.gridvise.xmlbindings.ActivityAttributes, __attr: scala.xml.MetaData, __scope: scala.xml.NamespaceBinding): scala.xml.MetaData = {
      var attr: scala.xml.MetaData  = __attr
      attr = scala.xml.Attribute(null, "id", __obj.id.toString, attr)
    attr = scala.xml.Attribute(null, "activityType", __obj.activityType.toString, attr)
      attr
    }
  }


}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy