object Names
Names, as per the XML specification. See for example https://www.w3.org/TR/REC-xml/#NT-Name.
Only characters in the Unicode BMP (max. \uFFFF) are considered. So the range from #x10000 to #xEFFFF is not recognized as valid name characters in this implementation.
The functions of this class must be fast, because they are typically called very many times during parsing of XPath expressions.
Classes like NCName lean on this object. An NCName is an XML name without colon.
- Alphabetic
- By Inheritance
- Names
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canBeName(s: String): Boolean
Returns true if the given string is a valid XML name.
Returns true if the given string is a valid XML name. Names starting with "xml" are not excluded, and names containing non-BMP characters are not included.
- def canBePartOfName(c: Char): Boolean
Returns true if the character can be a part of an XML name.
Returns true if the character can be a part of an XML name. Only 2-byte characters in the BMP are considered.
Some excluded characters are: multiplication sign ('\u00D7'), (other) plus sign ('\u00F7'), at-symbol, dollar sign, percentage sign, ampersand, slash, plus sign ('\u002B'), comma, semicolon, open parenthesis, close parenthesis, open bracket, close bracket, open brace, close brace, smaller-than symbol, greater-than symbol, equals sign, single quote ('\u0060'), double quote ('\u0022'), asterisk, exclamation mark, question mark, and '#'.
Note that these excluded characters are important to distinguish names from XPath language elements such as operators and (string and numeric) literals.
- def canBeStartOfName(c: Char): Boolean
Returns true if the character can be a start of an XML name.
Returns true if the character can be a start of an XML name. Only 2-byte characters in the BMP are considered.
It returns the same as method canBePartOfName, except that some characters are excluded, such as digits, dash, dot and combining diacritical marks.
- def canBeStartOfName(s: String): Boolean
Returns true if the given string can start valid XML names.
Returns true if the given string can start valid XML names. This is the same as saying that the string is a valid XML name, so
canBeName(s)is returned. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated