Operation

zio.blocks.schema.xml.XmlPatch.Operation
See theOperation companion trait
object Operation

Attributes

Companion
trait
Source
XmlPatch.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Operation.type

Members list

Type members

Classlikes

final case class Add(content: Xml, position: Position) extends Operation

Add an element at the specified position relative to the target.

Add an element at the specified position relative to the target.

Value parameters

content

The XML content to add

position

Where to insert the content (Before, After, PrependChild, AppendChild)

Attributes

Source
XmlPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
Show all
case object Remove extends Operation

Remove the element at the target path.

Remove the element at the target path.

Attributes

Source
XmlPatch.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
Show all
Self type
Remove.type
final case class RemoveAttribute(name: String) extends Operation

Remove an attribute from the target element.

Remove an attribute from the target element.

Value parameters

name

The attribute name to remove

Attributes

Source
XmlPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
Show all
final case class Replace(content: Xml) extends Operation

Replace the element at the target path with new content.

Replace the element at the target path with new content.

Value parameters

content

The replacement XML content

Attributes

Source
XmlPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
Show all
final case class SetAttribute(name: String, value: String) extends Operation

Set an attribute on the target element.

Set an attribute on the target element.

Value parameters

name

The attribute name

value

The attribute value

Attributes

Source
XmlPatch.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala