Package net.carcdr.ycrdt
Interface YXmlNode
- All Known Subinterfaces:
YXmlElement,YXmlText
public interface YXmlNode
Marker interface for XML node types.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault YXmlElementCasts this node to an element.default YXmlTextasText()Casts this node to a text node.Returns the type of this node.
-
Method Details
-
getNodeType
-
asElement
Casts this node to an element.- Returns:
- this node as a YXmlElement
- Throws:
ClassCastException- if this node is not an element
-
asText
Casts this node to a text node.- Returns:
- this node as a YXmlText
- Throws:
ClassCastException- if this node is not a text node
-