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. ) 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
- All
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 ('×'), (other) plus sign ('÷'), at-symbol, dollar sign, percentage sign, ampersand, slash, plus sign ('+'), comma, semicolon, open parenthesis, close parenthesis, open bracket, close bracket, open brace, close brace, smaller-than symbol, greater-than symbol, equals sign, single quote ('
'), double quote ('"'), 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )