XmlName

zio.blocks.schema.xml.XmlName
See theXmlName companion object
final case class XmlName(localName: String, prefix: Option[String] = ..., namespace: Option[String] = ...)

Represents an XML qualified name with an optional namespace URI and prefix.

Value parameters

localName

The local part of the name (without prefix)

namespace

Optional namespace URI

prefix

Optional namespace prefix (used for display purposes)

Attributes

Companion
object
Source
XmlName.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def hasNamespace: Boolean

Returns true if this name has a namespace.

Returns true if this name has a namespace.

Attributes

Source
XmlName.scala
def namespaceOrEmpty: String

Returns the namespace URI or empty string if none.

Returns the namespace URI or empty string if none.

Attributes

Source
XmlName.scala
def qualifiedName: String

Returns the qualified name as "prefix:localName" or just "localName" if no prefix.

Returns the qualified name as "prefix:localName" or just "localName" if no prefix.

Attributes

Source
XmlName.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
XmlName.scala
def withNamespace(ns: String): XmlName

Creates a new XmlName with the given namespace.

Creates a new XmlName with the given namespace.

Attributes

Source
XmlName.scala
def withPrefix(p: String): XmlName

Creates a new XmlName with the given prefix.

Creates a new XmlName with the given prefix.

Attributes

Source
XmlName.scala

Creates a new XmlName without namespace.

Creates a new XmlName without namespace.

Attributes

Source
XmlName.scala

Creates a new XmlName without prefix.

Creates a new XmlName without prefix.

Attributes

Source
XmlName.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala