Attributes
- Companion
- class
- Source
- XmlPatch.scala
- Graph
-
- Supertypes
- Self type
-
XmlPatch.type
Members list
Type members
Classlikes
A single patch operation paired with the path to apply it at.
A single patch operation paired with the path to apply it at.
Value parameters
- operation
-
The operation to apply at the path
- path
-
The path indicating where to apply the operation
Attributes
- Source
- XmlPatch.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- XmlPatch.scala
- Supertypes
- Self type
-
Operation.type
Sealed trait representing a single patch operation.
Sealed trait representing a single patch operation.
Attributes
- Companion
- object
- Source
- XmlPatch.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- XmlPatch.scala
- Supertypes
- Self type
-
Position.type
Position enum for Add operation - where to insert the new content relative to the target.
Position enum for Add operation - where to insert the new content relative to the target.
Attributes
- Companion
- object
- Source
- XmlPatch.scala
- Supertypes
- Known subtypes
Inherited and Abstract types
The names of the product elements.
The name of the type.
Value members
Concrete methods
Creates a patch that adds content at the specified position.
Creates a patch that adds content at the specified position.
Value parameters
- content
-
The content to add
- path
-
The path to the target element
- position
-
Where to insert the content
Attributes
- Returns
-
A new patch with the add operation
- Source
- XmlPatch.scala
Creates a patch that removes the element at the path.
Creates a patch that removes the element at the path.
Value parameters
- path
-
The path to the element to remove
Attributes
- Returns
-
A new patch with the remove operation
- Source
- XmlPatch.scala
Creates a patch that removes an attribute from the target element.
Creates a patch that removes an attribute from the target element.
Value parameters
- name
-
The attribute name to remove
- path
-
The path to the target element
Attributes
- Returns
-
A new patch with the remove attribute operation
- Source
- XmlPatch.scala
Creates a patch that replaces the element at the path.
Creates a patch that replaces the element at the path.
Value parameters
- content
-
The replacement content
- path
-
The path to the element to replace
Attributes
- Returns
-
A new patch with the replace operation
- Source
- XmlPatch.scala
Creates a patch that sets an attribute on the target element.
Creates a patch that sets an attribute on the target element.
Value parameters
- name
-
The attribute name
- path
-
The path to the target element
- value
-
The attribute value
Attributes
- Returns
-
A new patch with the set attribute operation
- Source
- XmlPatch.scala
Concrete fields
Empty patch - identity element for composition.